aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-pci-wrap.c
diff options
context:
space:
mode:
authorChu Lin <[email protected]>2020-07-09 04:06:12 +0000
committerGuenter Roeck <[email protected]>2020-07-09 14:02:35 +0000
commit6d1d41c075a1a54ba03370e268171fec20e06563 (patch)
tree0c11b3f334f291397aedbed5c68baaf43f15d9cb /drivers/usb/cdns3/cdns3-pci-wrap.c
parenthwmon: (emc2103) fix unable to change fan pwm1_enable attribute (diff)
downloadkernel-6d1d41c075a1a54ba03370e268171fec20e06563.tar.gz
kernel-6d1d41c075a1a54ba03370e268171fec20e06563.zip
hwmon: (adm1275) Make sure we are reading enough data for different chips
Issue: When PEC is enabled, binding adm1272 to the adm1275 would fail due to PEC error. See below: adm1275: probe of xxxx failed with error -74 Diagnosis: Per the datasheet of adm1272, adm1278, adm1293 and amd1294, PMON_CONFIG (0xd4) is 16bits wide. On the other hand, PMON_CONFIG (0xd4) for adm1275 is 8bits wide. The driver should not assume everything is 8bits wide and read only 8bits from it. Solution: If it is adm1272, adm1278, adm1293 and adm1294, use i2c_read_word. Else, use i2c_read_byte Testing: Binding adm1272 to the driver. The change is only tested on adm1272. Signed-off-by: Chu Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions