Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490130

Re: [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO driver.

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO driver.
Date 2016-09-23 16:00 +0200
Message-ID <skzbc-4lr-23@gated-at.bofh.it> (permalink)
References <sj9st-7HE-11@gated-at.bofh.it> <skuuR-1sk-7@gated-at.bofh.it> <skyoN-44f-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Sep 23, 2016 at 3:08 PM, Eric Anholt <eric@anholt.net> wrote:

> Sort of related: I also worry that we have races with the firmware for
> the platform GPIO bits, since both ARM and firmware are doing RMWs (or,
> even worse, maybe just Ws?) of the registers controlled by the pinctrl
> driver.  Hopefully I can get the firmware to pass control of devices
> like this over to Linux, with firmware making requests to us, but I
> don't know if that will happen and we may need to access other GPIOs
> using this interface :(

For the race with firmware I have no good solutions, it's just one of
those things I guess :(

When two kernel drivers compete about registers, say for example
one driver needs to RMW bits 0-5 and another driver needs to
RMW bits 7-11, the right solution is usually to use syscon
and then regmap-mmio will deal with the concurrency as part
of regmap_update_bits() etc.

Yours,
Linus Walleij

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO driver. Eric Anholt <eric@anholt.net> - 2016-09-19 18:20 +0200
  Re: [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO driver. Linus Walleij <linus.walleij@linaro.org> - 2016-09-23 11:00 +0200
    Re: [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO driver. Eric Anholt <eric@anholt.net> - 2016-09-23 15:10 +0200
      Re: [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO driver. Linus Walleij <linus.walleij@linaro.org> - 2016-09-23 16:00 +0200
      Re: [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO  driver. Stephen Warren <swarren@wwwdotorg.org> - 2016-09-26 18:50 +0200
  Re: [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware  GPIO driver. Stefan Wahren <stefan.wahren@i2se.com> - 2016-09-23 20:50 +0200
    Re: [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO  driver. Stephen Warren <swarren@wwwdotorg.org> - 2016-09-26 18:40 +0200
      Re: [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware  GPIO driver. Stefan Wahren <stefan.wahren@i2se.com> - 2016-09-26 20:50 +0200
        Re: [PATCH 1/3] dt-bindings: Add a binding for the RPi firmware GPIO  driver. Stephen Warren <swarren@wwwdotorg.org> - 2016-09-28 20:00 +0200

csiph-web