hwmon: (pmbus/mp2975) Fix IRQ masking
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Mon, 18 Mar 2024 17:44:05 +0000 (23:14 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 28 Apr 2024 17:07:34 +0000 (10:07 -0700)
commitc7506a2b5a8233c32bd05353aac7c7b3af05d85f
treec27b99c2e1df97b3ee75c7ec6570248f263ea461
parentdf43ade4cb49f5b4a18bf9e737117dfbb7dbd21a
hwmon: (pmbus/mp2975) Fix IRQ masking

The MP2971/MP2973 use a custom 16bit register format for
SMBALERT_MASK which doesn't follow the PMBUS specification.

Map the PMBUS defined bits used by the common code onto the custom
format used by MPS and since the SMBALERT_MASK is currently never read
by common code only implement the mapping for write transactions.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
Link: https://lore.kernel.org/r/20240318174406.3782306-1-naresh.solanki@9elements.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/mp2975.c