]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
hwmon: (pmbus/ibm-cffps) Fix LED blink behavior
authorEddie James <eajames@linux.ibm.com>
Wed, 6 Nov 2019 20:01:06 +0000 (14:01 -0600)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commitfe1ccdd5a8b7de04876385f9068c9222b33331ea
tree22a838ad806ce293ff96fee1a42bfbf76aef5fa3
parent01f049900f1c7ebe52101d2b53cb161c17d00bac
hwmon: (pmbus/ibm-cffps) Fix LED blink behavior

BugLink: https://bugs.launchpad.net/bugs/1862429
commit 92b39ad440968bab38eb6577d63c12994601ed94 upstream.

The LED blink_set function incorrectly did not tell the PSU LED to blink
if brightness was LED_OFF. Fix this, and also correct the LED_OFF
command data, which should give control of the LED back to the PSU
firmware. Also prevent I2C failures from getting the driver LED state
out of sync and add some dev_dbg statements.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20191106200106.29519-3-eajames@linux.ibm.com
Fixes: ef9e1cdf419a3 ("hwmon: (pmbus/cffps) Add led class device for power supply fault led")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/hwmon/pmbus/ibm-cffps.c