<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpio/gpiolib.c, branch linux-3.6.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.6.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.6.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-11-05T08:56:48Z</updated>
<entry>
<title>gpiolib: Don't return -EPROBE_DEFER to sysfs, or for invalid gpios</title>
<updated>2012-11-05T08:56:48Z</updated>
<author>
<name>Mathias Nyman</name>
</author>
<published>2012-10-25T11:03:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b4717878e2e70626855d5a6b4639a8e37599acc'/>
<id>urn:sha1:4b4717878e2e70626855d5a6b4639a8e37599acc</id>
<content type='text'>
commit ad2fab36d7922401c4576fb7ea9b21a47a29a17f upstream.

gpios requested with invalid numbers, or gpios requested from userspace via sysfs
should not try to be deferred on failure.

Signed-off-by: Mathias Nyman &lt;mathias.nyman@linux.intel.com&gt;
Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>gpiolib: Defer failed gpio requests by default</title>
<updated>2012-07-17T19:00:20Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2012-07-09T11:22:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e93545763021988def06fbda28fe5da133589a96'/>
<id>urn:sha1:e93545763021988def06fbda28fe5da133589a96</id>
<content type='text'>
Since users must be explicitly provided with a GPIO number in order to
request one the overwhelmingly common case for failing to request will
be that the required GPIO driver has not yet registered and we should
therefore defer until it has registered.

In order to avoid having to code this logic in individual drivers have
gpio_request() return -EPROBE_DEFER when failing to look up the GPIO.
Drivers which don't want this behaviour can override it if they desire.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>gpiolib: Remove 'const' from data argument of gpiochip_find()</title>
<updated>2012-05-19T05:01:05Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2012-05-19T05:01:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=07ce8ec7308ab3fa55fe2861671b157f857fff58'/>
<id>urn:sha1:07ce8ec7308ab3fa55fe2861671b157f857fff58</id>
<content type='text'>
Commit 3d0f7cf0 "gpio: Adjust of_xlate API to support multiple GPIO
chips" changed the api of gpiochip_find to drop const from the data
parameter of the match hook, but didn't also drop const from data
causing a build warning.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>gpiolib: quiet gpiochip_add boot message noise</title>
<updated>2012-05-19T04:12:50Z</updated>
<author>
<name>H Hartley Sweeten</name>
</author>
<published>2012-05-11T23:58:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee1c1e7d6451204e71ae6d815bfa918c57450391'/>
<id>urn:sha1:ee1c1e7d6451204e71ae6d815bfa918c57450391</id>
<content type='text'>
The pr_info message in gpiochip_add gets displayed for every
gpiochip registered. When first bringing up a system this
information could be helpful but for normal use it's just a
bunch of noise. Change the message to a pr_debug.

Signed-off-by: H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>gpio: Adjust of_xlate API to support multiple GPIO chips</title>
<updated>2012-05-18T22:48:36Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2012-05-17T19:54:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d0f7cf0f3633f92ddeb767eb59cab73963d4dee'/>
<id>urn:sha1:3d0f7cf0f3633f92ddeb767eb59cab73963d4dee</id>
<content type='text'>
This patch changes the of_xlate API to make it possible for multiple
gpio_chips to refer to the same device tree node.  This is useful for
banked GPIO controllers that use multiple gpio_chips for a single
device.  With this change the core code will try calling of_xlate on
each gpio_chip that references the device_node and will return the
gpio number for the first one to return 'true'.

Tested-by: Roland Stigge &lt;stigge@antcom.de&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>gpio: add flags to export GPIOs when requesting</title>
<updated>2012-04-06T04:24:06Z</updated>
<author>
<name>Wolfram Sang</name>
</author>
<published>2011-12-13T17:34:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc3a1f04f5040255cbc086c419e4237f29f89f88'/>
<id>urn:sha1:fc3a1f04f5040255cbc086c419e4237f29f89f88</id>
<content type='text'>
Introduce new flags to automatically export GPIOs when using the convenience
functions gpio_request_one() or gpio_request_array(). This eases support for
custom boards where lots of GPIOs need to be exported for customer
applications.

Signed-off-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>gpiolib: Add comments explaining the _cansleep() WARN_ON()s</title>
<updated>2012-03-05T15:05:08Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2012-02-17T18:46:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e4e449e82871c53ef3b22bd3a50fceabc0638926'/>
<id>urn:sha1:e4e449e82871c53ef3b22bd3a50fceabc0638926</id>
<content type='text'>
I've seen users getting very confused by the WARN_ON()s for can_sleep
GPIOs in the atomic-safe paths, the discoverability of the non-atomic
version of the API seems to be hampered by the fact that it's defined
in a header file not the .c file where the warnings are.

Add a couple of comments next to the warnings to help people on their
way.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Reviwed-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>gpio: gpiolib: Support for open source/emitter gpios</title>
<updated>2012-03-05T14:49:44Z</updated>
<author>
<name>Laxman Dewangan</name>
</author>
<published>2012-02-17T14:56:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25553ff0756c59b617af6bdd280c94e943164184'/>
<id>urn:sha1:25553ff0756c59b617af6bdd280c94e943164184</id>
<content type='text'>
Adding support for the open source gpio on which client
can specify the open source property through GPIO flag
GPIOF_OPEN_SOURCE at the time of gpio request.
The open source pins are normally pulled low and it
cannot be driven to output with value of 0 and so
when client request for setting the pin to LOW, the
gpio will be set to input direction to make pin in tristate
and hence PULL-DOWN on pins will make the state to LOW.
The open source pin can be driven to HIGH by setting output
with value of 1.

Signed-off-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviwed-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>gpio: gpiolib: Support for open drain/collector gpios</title>
<updated>2012-03-05T14:49:44Z</updated>
<author>
<name>Laxman Dewangan</name>
</author>
<published>2012-02-17T14:56:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aca5ce14eb773a75e5d935968b2e390dc5bd29c3'/>
<id>urn:sha1:aca5ce14eb773a75e5d935968b2e390dc5bd29c3</id>
<content type='text'>
Adding support for the open drain gpio on which client
can specify the open drain property through GPIO flag
GPIOF_OPEN_DRAIN at the time of gpio request.
The open drain pins are normally pulled high and it
cannot be driven to output with value of 1 and so
when client request for setting the pin to HIGH, the
gpio will be set to input direction to make pin in tristate
and hence PULL-UP on pins will make the state to HIGH.
The open drain pin can be driven to LOW by setting output
with value of 0.

Signed-off-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviwed-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>gpio: constify the data parameter to gpiochip_find()</title>
<updated>2012-03-02T22:56:03Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2012-03-02T22:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6e2cf6514066cdd5a0844b34760029a5a4870318'/>
<id>urn:sha1:6e2cf6514066cdd5a0844b34760029a5a4870318</id>
<content type='text'>
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;

</content>
</entry>
</feed>
