<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/leds, branch v3.2.38</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/leds?h=v3.2.38</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/leds?h=v3.2.38'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-01-03T03:32:51Z</updated>
<entry>
<title>drivers/leds/leds-lp5521.c: fix lp5521_read() error handling</title>
<updated>2013-01-03T03:32:51Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2012-05-29T22:07:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b3655a9d1a642787986b0d8fbc4f1ca14a6c010e'/>
<id>urn:sha1:b3655a9d1a642787986b0d8fbc4f1ca14a6c010e</id>
<content type='text'>
commit 5bc9ad774c063f6b41965e7314f2c26aa5e465a0 upstream.

Gcc 4.6.2 complains that:

  drivers/leds/leds-lp5521.c: In function `lp5521_load_program':
  drivers/leds/leds-lp5521.c:214:21: warning: `mode' may be used uninitialized in this function [-Wuninitialized]
  drivers/leds/leds-lp5521.c: In function `lp5521_probe':
  drivers/leds/leds-lp5521.c:788:5: warning: `buf' may be used uninitialized in this function [-Wuninitialized]
  drivers/leds/leds-lp5521.c:740:6: warning: `ret' may be used uninitialized in this function [-Wuninitialized]

These are real problems if lp5521_read() returns an error.  When that
happens we should handle it, instead of ignoring it or doing a bitwise
OR with all the other error codes and continuing.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Cc: Milo &lt;Milo.Kim@ti.com&gt;
Cc: Richard Purdie &lt;rpurdie@rpsys.net&gt;
Cc: Bryan Wu &lt;bryan.wu@canonical.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>drivers/leds/leds-lp5521.c: ret may be uninitialized</title>
<updated>2013-01-03T03:32:50Z</updated>
<author>
<name>Srinidhi KASAGAR</name>
<email>srinidhi.kasagar@stericsson.com</email>
</author>
<published>2012-03-23T22:02:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=322c19a92f16994516d4dfbb6acd9db846fd7bd2'/>
<id>urn:sha1:322c19a92f16994516d4dfbb6acd9db846fd7bd2</id>
<content type='text'>
commit 42960b76d2c6a44d7e8000f4eb9a4ca1780059ff upstream.

Fix it by assigning the lp5521_read return value.

Signed-off-by: srinidhi kasagar &lt;srinidhi.kasagar@stericsson.com&gt;
Cc: Milo(Woogyom) Kim &lt;milo.kim@ti.com&gt;
Cc: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Cc: Arun MURTHY &lt;arun.murthy@stericsson.com&gt;
Cc: Richard Purdie &lt;rpurdie@rpsys.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>drivers/leds/leds-lp5521.c: fix typo</title>
<updated>2013-01-03T03:32:50Z</updated>
<author>
<name>Masanari Iida</name>
<email>standby24x7@gmail.com</email>
</author>
<published>2012-03-23T22:02:06Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4b9c9729bc89903d6a6226cf8471ba7f6d6aac9f'/>
<id>urn:sha1:4b9c9729bc89903d6a6226cf8471ba7f6d6aac9f</id>
<content type='text'>
commit 3a2fd4a14112452eb5c1a079ac8b3f4842762afe upstream.

"reseting" -&gt; "resetting"

Signed-off-by: Masanari Iida &lt;standby24x7@gmail.com&gt;
Cc: Richard Purdie &lt;rpurdie@rpsys.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>Revert "leds: save the delay values after a successful call to blink_set()"</title>
<updated>2011-11-16T00:41:50Z</updated>
<author>
<name>Johan Hovold</name>
<email>jhovold@gmail.com</email>
</author>
<published>2011-11-15T22:35:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cb871513f656bdfc48b185b55f37857b5c750c40'/>
<id>urn:sha1:cb871513f656bdfc48b185b55f37857b5c750c40</id>
<content type='text'>
Revert commit 6123b0e274503a0d3588e84fbe07c9aa01bfaf5d.

The problem this patch intends to solve has alreadqy been fixed by
commit 7a5caabd090b ("drivers/leds/ledtrig-timer.c: fix broken sysfs
delay handling").

Signed-off-by: Johan Hovold &lt;jhovold@gmail.com&gt;
Cc: Antonio Ospite &lt;ospite@studenti.unina.it&gt;
Cc: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Cc: Richard Purdie &lt;rpurdie@rpsys.net&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux</title>
<updated>2011-11-07T03:44:47Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-11-07T03:44:47Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=32aaeffbd4a7457bf2f7448b33b5946ff2a960eb'/>
<id>urn:sha1:32aaeffbd4a7457bf2f7448b33b5946ff2a960eb</id>
<content type='text'>
* 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
  Revert "tracing: Include module.h in define_trace.h"
  irq: don't put module.h into irq.h for tracking irqgen modules.
  bluetooth: macroize two small inlines to avoid module.h
  ip_vs.h: fix implicit use of module_get/module_put from module.h
  nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
  include: replace linux/module.h with "struct module" wherever possible
  include: convert various register fcns to macros to avoid include chaining
  crypto.h: remove unused crypto_tfm_alg_modname() inline
  uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
  pm_runtime.h: explicitly requires notifier.h
  linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
  miscdevice.h: fix up implicit use of lists and types
  stop_machine.h: fix implicit use of smp.h for smp_processor_id
  of: fix implicit use of errno.h in include/linux/of.h
  of_platform.h: delete needless include &lt;linux/module.h&gt;
  acpi: remove module.h include from platform/aclinux.h
  miscdevice.h: delete unnecessary inclusion of module.h
  device_cgroup.h: delete needless include &lt;linux/module.h&gt;
  net: sch_generic remove redundant use of &lt;linux/module.h&gt;
  net: inet_timewait_sock doesnt need &lt;linux/module.h&gt;
  ...

Fix up trivial conflicts (other header files, and  removal of the ab3550 mfd driver) in
 - drivers/media/dvb/frontends/dibx000_common.c
 - drivers/media/video/{mt9m111.c,ov6650.c}
 - drivers/mfd/ab3550-core.c
 - include/linux/dmaengine.h
</content>
</entry>
<entry>
<title>Merge branch 'for-next' of git://git.infradead.org/users/sameo/mfd-2.6</title>
<updated>2011-11-03T16:40:51Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-11-03T16:40:51Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a0a4194c943bc64dd7b6e26cccb036cb26b81363'/>
<id>urn:sha1:a0a4194c943bc64dd7b6e26cccb036cb26b81363</id>
<content type='text'>
* 'for-next' of git://git.infradead.org/users/sameo/mfd-2.6: (80 commits)
  mfd: Fix missing abx500 header file updates
  mfd: Add missing &lt;linux/io.h&gt; include to intel_msic
  x86, mrst: add platform support for MSIC MFD driver
  mfd: Expose TurnOnStatus in ab8500 sysfs
  mfd: Remove support for early drop ab8500 chip
  mfd: Add support for ab8500 v3.3
  mfd: Add ab8500 interrupt disable hook
  mfd: Convert db8500-prcmu panic() into pr_crit()
  mfd: Refactor db8500-prcmu request_clock() function
  mfd: Rename db8500-prcmu init function
  mfd: Fix db5500-prcmu defines
  mfd: db8500-prcmu voltage domain consumers additions
  mfd: db8500-prcmu reset code retrieval
  mfd: db8500-prcmu tweak for modem wakeup
  mfd: Add db8500-pcmu watchdog accessor functions for watchdog
  mfd: hwacc power state db8500-prcmu accessor
  mfd: Add db8500-prcmu accessors for PLL and SGA clock
  mfd: Move to the new db500 PRCMU API
  mfd: Create a common interface for dbx500 PRCMU drivers
  mfd: Initialize DB8500 PRCMU regs
  ...

Fix up trivial conflicts in
	arch/arm/mach-imx/mach-mx31moboard.c
	arch/arm/mach-omap2/board-omap3beagle.c
	arch/arm/mach-u300/include/mach/irqs.h
	drivers/mfd/wm831x-spi.c
</content>
</entry>
<entry>
<title>drivers/leds/leds-lp5521.c: check if reset is successful</title>
<updated>2011-11-01T00:30:55Z</updated>
<author>
<name>Srinidhi KASAGAR</name>
<email>srinidhi.kasagar@stericsson.com</email>
</author>
<published>2011-11-01T00:12:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b3c49c05b737887443c894c66635ae68dcdf0027'/>
<id>urn:sha1:b3c49c05b737887443c894c66635ae68dcdf0027</id>
<content type='text'>
Make sure that the reset is successful by issuing a dummy read to R
channel current register and check its default value.  On some platforms,
without this dummy read, any further access to {R/G/B}_EXEC will not have
any impact.

[akpm@linux-foundation.org: fix up code comment]
Signed-off-by: srinidhi kasagar &lt;srinidhi.kasagar@stericsson.com&gt;
Tested-by: Naga Radhesh &lt;naga.radheshy@stericsson.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Cc: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>leds: turn the blink_timer off before starting to blink</title>
<updated>2011-11-01T00:30:55Z</updated>
<author>
<name>Antonio Ospite</name>
<email>ospite@studenti.unina.it</email>
</author>
<published>2011-11-01T00:12:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=488bc35bf40df89d37486c1826b178a2fba36ce7'/>
<id>urn:sha1:488bc35bf40df89d37486c1826b178a2fba36ce7</id>
<content type='text'>
Depending on the implementation of the hardware blinking function in
blink_set(), the led can support hardware blinking for some values of
delay_on and delay_off and fall-back to software blinking for some other
values.

Turning off the blink_timer unconditionally before starting to blink
make sure that a sequence like:

  OFF
  hardware blinking
  software blinking
  hardware blinking

does not leave the software blinking timer active.

Signed-off-by: Antonio Ospite &lt;ospite@studenti.unina.it&gt;
Reviewed-by: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Cc: Richard Purdie &lt;rpurdie@rpsys.net&gt;
Cc: &lt;stable@kernel.org&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>leds: save the delay values after a successful call to blink_set()</title>
<updated>2011-11-01T00:30:55Z</updated>
<author>
<name>Antonio Ospite</name>
<email>ospite@studenti.unina.it</email>
</author>
<published>2011-11-01T00:12:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6123b0e274503a0d3588e84fbe07c9aa01bfaf5d'/>
<id>urn:sha1:6123b0e274503a0d3588e84fbe07c9aa01bfaf5d</id>
<content type='text'>
When calling the hardware blinking function implemented by blink_set(),
the delay_on and delay_off values are not preserved across calls.

Fix that and make the "timer" trigger work as expected when hardware
blinking is available.

BEFORE the fix:
  $ cd /sys/class/leds/someled
  $ echo timer &gt; trigger
  $ cat delay_on delay_off
  0
  0
  $ echo 100 &gt; delay_on
  $ cat delay_on delay_off
  0
  0
  $ echo 100 &gt; delay_off
  $ cat delay_on delay_off
  0
  0

AFTER the fix:
  $ cd /sys/class/leds/someled
  $ echo timer &gt; trigger
  $ cat delay_on delay_off
  0
  0
  $ echo 100 &gt; delay_on
  $ cat delay_on delay_off
  100
  0
  $ echo 100 &gt; delay_off
  $ cat delay_on delay_off
  100
  100

Signed-off-by: Antonio Ospite &lt;ospite@studenti.unina.it&gt;
Reviewed-by: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Cc: Richard Purdie &lt;rpurdie@rpsys.net&gt;
Cc: &lt;stable@kernel.org&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>drivers/leds/leds-gpio.c: use gpio_get_value_cansleep() when initializing</title>
<updated>2011-11-01T00:30:55Z</updated>
<author>
<name>David Daney</name>
<email>david.daney@cavium.com</email>
</author>
<published>2011-11-01T00:12:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=dabc69c24271bd6ac126e3dda4f2d72234da81df'/>
<id>urn:sha1:dabc69c24271bd6ac126e3dda4f2d72234da81df</id>
<content type='text'>
I get the following warning:

------------[ cut here ]------------
WARNING: at drivers/gpio/gpiolib.c:1559 __gpio_get_value+0x90/0x98()
Modules linked in:
Call Trace:
[&lt;ffffffff81440950&gt;] dump_stack+0x8/0x34
[&lt;ffffffff81141478&gt;] warn_slowpath_common+0x78/0xa0
[&lt;ffffffff812f0958&gt;] __gpio_get_value+0x90/0x98
[&lt;ffffffff81434f04&gt;] create_gpio_led+0xdc/0x194
[&lt;ffffffff8143524c&gt;] gpio_led_probe+0x290/0x36c
[&lt;ffffffff8130e8b0&gt;] driver_probe_device+0x78/0x1b0
[&lt;ffffffff8130eaa8&gt;] __driver_attach+0xc0/0xc8
[&lt;ffffffff8130d7ac&gt;] bus_for_each_dev+0x64/0xb0
[&lt;ffffffff8130e130&gt;] bus_add_driver+0x1c8/0x2a8
[&lt;ffffffff8130f100&gt;] driver_register+0x90/0x180
[&lt;ffffffff81100438&gt;] do_one_initcall+0x38/0x160

---[ end trace ee38723fbefcd65c ]---

My GPIOs are on an I2C port expander, so we must use the *_cansleep()
variant of the GPIO functions.  This is was not being done in
create_gpio_led().

We can change gpio_get_value() to gpio_get_value_cansleep() because it is
only called from the platform_driver probe function, which is a context
where we can sleep.

Only tested on my gpio_cansleep() system, but it seems safe for all
systems.

Signed-off-by: David Daney &lt;david.daney@cavium.com&gt;
Cc: Richard Purdie &lt;rpurdie@rpsys.net&gt;
Acked-by: Trent Piepho &lt;tpiepho@gmail.com&gt;
Cc: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
