]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (pmbus/mpq8785) fix VOUT_MODE mismatch during identification
authorCarl Lee <carl.lee@amd.com>
Tue, 10 Feb 2026 07:26:34 +0000 (15:26 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 10 Feb 2026 15:14:45 +0000 (07:14 -0800)
commit9e33c1dba22431bea9b2bf48adf56859e52fc7ec
tree6692b9503f7a288f3faacf7808ebf4ed2e205113
parent8bde3e395a85017f12af2b0ba5c3684f5af9c006
hwmon: (pmbus/mpq8785) fix VOUT_MODE mismatch during identification

When MPQ8785 reports VOUT_MODE as VID mode, mpq8785_identify()
configures the driver for direct mode. The subsequent
pmbus_identify_common() check then fails due to a mismatch
between the reported mode and the configured mode, causing
device initialization to fail.

Override the reported VOUT_MODE to direct mode to keep the
driver configuration consistent with the reported mode and
allow successful device initialization.

This does not change how voltages are interpreted, but avoids
a false identification failure caused by mismatched mode
handling.

Fixes: f20b4a931130c ("hwmon: Add driver for MPS MPQ8785 Synchronous Step-Down Converter")
Signed-off-by: Carl Lee <carl.lee@amd.com>
Link: https://lore.kernel.org/r/20260210-dt-bindings-hwmon-pmbus-mpq8785-add-mpq8786-support-v3-1-84636ccfe76f@amd.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/mpq8785.c