]> git.karo-electronics.de Git - karo-tx-linux.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, 4 Aug 2011 20:51:06 +0000 (13:51 -0700)
commit05e502b207b1801035e295c41bb1f99a2d7c5677
tree628f2f5ec743171f832df2fbaff0df6fe2694850
parent2fc7f3897fc994d1ba25151712c560f6d641a7b4
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>
drivers/hwmon/pmbus/lm25066.c