Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'hwmon-for-v6.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging

Pull hwmon fixes from Guenter Roeck:

- pmbus/mp2975: Fix driver initialization

- gigabyte_waterforce: Add missing unlock in error handling path

* tag 'hwmon-for-v6.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
hwmon: (pmbus/mp2975) Correct comment inside 'mp2975_read_byte_data'
hwmon: (pmbus/mp2975) Fix driver initialization for MP2975 device
hwmon: gigabyte_waterforce: Fix locking bug in waterforce_get_status()

+17 -1
+1 -1
drivers/hwmon/gigabyte_waterforce.c
··· 146 146 /* Send command for getting status */ 147 147 ret = waterforce_write_expanded(priv, get_status_cmd, GET_STATUS_CMD_LENGTH); 148 148 if (ret < 0) 149 - return ret; 149 + goto unlock_and_return; 150 150 151 151 ret = wait_for_completion_interruptible_timeout(&priv->status_report_received, 152 152 msecs_to_jiffies(STATUS_VALIDITY));
+16
drivers/hwmon/pmbus/mp2975.c
··· 126 126 127 127 #define to_mp2975_data(x) container_of(x, struct mp2975_data, info) 128 128 129 + static int mp2975_read_byte_data(struct i2c_client *client, int page, int reg) 130 + { 131 + switch (reg) { 132 + case PMBUS_VOUT_MODE: 133 + /* 134 + * Report direct format as configured by MFR_DC_LOOP_CTRL. 135 + * Unlike on MP2971/MP2973 the reported VOUT_MODE isn't automatically 136 + * internally updated, but always reads as PB_VOUT_MODE_VID. 137 + */ 138 + return PB_VOUT_MODE_DIRECT; 139 + default: 140 + return -ENODATA; 141 + } 142 + } 143 + 129 144 static int 130 145 mp2975_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg, 131 146 u16 mask) ··· 884 869 PMBUS_HAVE_IIN | PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT | 885 870 PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP | PMBUS_HAVE_POUT | 886 871 PMBUS_HAVE_PIN | PMBUS_HAVE_STATUS_INPUT | PMBUS_PHASE_VIRTUAL, 872 + .read_byte_data = mp2975_read_byte_data, 887 873 .read_word_data = mp2975_read_word_data, 888 874 #if IS_ENABLED(CONFIG_SENSORS_MP2975_REGULATOR) 889 875 .num_regulators = 1,