1. 10 May, 2022 1 commit
    • Randy Dunlap's avatar
      hwmon: (ltq-cputemp) restrict it to SOC_XWAY · 151d6dcb
      Randy Dunlap authored
      Building with SENSORS_LTQ_CPUTEMP=y with SOC_FALCON=y causes build
      errors since FALCON does not support the same features as XWAY.
      
      Change this symbol to depend on SOC_XWAY since that provides the
      necessary interfaces.
      
      Repairs these build errors:
      
      ../drivers/hwmon/ltq-cputemp.c: In function 'ltq_cputemp_enable':
      ../drivers/hwmon/ltq-cputemp.c:23:9: error: implicit declaration of function 'ltq_cgu_w32'; did you mean 'ltq_ebu_w32'? [-Werror=implicit-function-declaration]
         23 |         ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) | CGU_TEMP_PD, CGU_GPHY1_CR);
      ../drivers/hwmon/ltq-cputemp.c:23:21: error: implicit declaration of function 'ltq_cgu_r32'; did you mean 'ltq_ebu_r32'? [-Werror=implicit-function-declaration]
         23 |         ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) | CGU_TEMP_PD, CGU_GPHY1_CR);
      ../drivers/hwmon/ltq-cputemp.c: In function 'ltq_cputemp_probe':
      ../drivers/hwmon/ltq-cputemp.c:92:31: error: 'SOC_TYPE_VR9_2' undeclared (first use in this function)
         92 |         if (ltq_soc_type() != SOC_TYPE_VR9_2)
      
      Fixes: 7074d0a9 ("hwmon: (ltq-cputemp) add cpu temp sensor driver")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Cc: Florian Eckert <fe@dev.tdt.de>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Jean Delvare <jdelvare@suse.com>
      Cc: linux-hwmon@vger.kernel.org
      Link: https://lore.kernel.org/r/20220509234740.26841-1-rdunlap@infradead.orgSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      151d6dcb
  2. 03 May, 2022 1 commit
    • Camel Guo's avatar
      hwmon: (tmp401) Add OF device ID table · 3481551f
      Camel Guo authored
      This driver doesn't have of_match_table. This makes the kernel module
      tmp401.ko lack alias patterns (e.g: of:N*T*Cti,tmp411) to match DT node
      of the supported devices hence this kernel module will not be
      automatically loaded.
      
      After adding of_match_table to this driver, the folllowing alias will be
      added into tmp401.ko.
      $ modinfo drivers/hwmon/tmp401.ko
      filename: drivers/hwmon/tmp401.ko
      ......
      author:         Hans de Goede <hdegoede@redhat.com>
      alias:          of:N*T*Cti,tmp435C*
      alias:          of:N*T*Cti,tmp435
      alias:          of:N*T*Cti,tmp432C*
      alias:          of:N*T*Cti,tmp432
      alias:          of:N*T*Cti,tmp431C*
      alias:          of:N*T*Cti,tmp431
      alias:          of:N*T*Cti,tmp411C*
      alias:          of:N*T*Cti,tmp411
      alias:          of:N*T*Cti,tmp401C*
      alias:          of:N*T*Cti,tmp401
      ......
      
      Fixes: af503716 ("i2c: core: report OF style module alias for devices registered via OF")
      Signed-off-by: default avatarCamel Guo <camel.guo@axis.com>
      Link: https://lore.kernel.org/r/20220503114333.456476-1-camel.guo@axis.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      3481551f
  3. 27 Apr, 2022 1 commit
  4. 25 Apr, 2022 1 commit
    • Adam Wujek's avatar
      hwmon: (pmbus) disable PEC if not enabled · 75d2b2b0
      Adam Wujek authored
      Explicitly disable PEC when the client does not support it.
      The problematic scenario is the following. A device with enabled PEC
      support is up and running and a kernel driver is loaded.
      Then the driver is unloaded (or device unbound), the HW device
      is reconfigured externally (e.g. by i2cset) to advertise itself as not
      supporting PEC. Without a new code, at the second load of the driver
      (or bind) the "flags" variable is not updated to avoid PEC usage. As a
      consequence the further communication with the device is done with
      the PEC enabled, which is wrong and may fail.
      
      The implementation first disable the I2C_CLIENT_PEC flag, then the old
      code enable it if needed.
      
      Fixes: 4e5418f7 ("hwmon: (pmbus_core) Check adapter PEC support")
      Signed-off-by: default avatarAdam Wujek <dev_public@wujek.eu>
      Link: https://lore.kernel.org/r/20220420145059.431061-1-dev_public@wujek.euSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      75d2b2b0
  5. 18 Apr, 2022 1 commit
  6. 13 Apr, 2022 1 commit
  7. 08 Apr, 2022 1 commit
  8. 04 Apr, 2022 2 commits
  9. 03 Apr, 2022 8 commits
  10. 02 Apr, 2022 23 commits