]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus/lm25066) Ignore byte writes to non-zero pages
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 30 Jul 2011 06:05:25 +0000 (23:05 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 11 Aug 2011 17:14:12 +0000 (10:14 -0700)
commit2a4f8dc127a8b096fa6e78ee89f012e7b0bfb4d9
treecef5521d2223fe2ab9a686699c52a4c2c6d045f2
parent6ddb9d9d14b86dd2be5a5e80420745e536bf2499
hwmon: (pmbus/lm25066) Ignore byte writes to non-zero pages

pmbus_clear_faults() attempts to clear faults on non-existing real pages.
As a result, the command error bit in the status register is set, and faults
are not really cleared.

All byte writes to non-zero pages are requests to clear the status register
on that page. Since non-zero pages are virtual and do not exist on the chip,
there is nothing to do, and such requests have to be ignored. This fixes
above problem.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/pmbus/lm25066.c