Skip to content
Snippets Groups Projects
Commit 9e347728 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (pmbus) Detect if chip is write protected


If a chip is write protected, we can not change any limits, and we can
not clear status flags. This may be the reason why clearing status flags
is reported to not work for some chips. Detect the condition in the pmbus
core. If the chip is write protected, set limit attributes as read-only,
and set the flag indicating that the status flag should be ignored.

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent d21ed22b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment