mbox series

[v2,0/4] hwmon: (it87) Add access control for SMBus

Message ID 20230416042510.1929077-1-frank@crawford.emu.id.au (mailing list archive)
Headers show
Series hwmon: (it87) Add access control for SMBus | expand

Message

Frank Crawford April 16, 2023, 4:25 a.m. UTC
Some chips support Environmental Controller access through SMBus.
On those chips, it is possible that an Embedded Controller accesses
Environmental Controller chip registers at any time. There is no real
means for synchronization. On banked chips, this can and will result in
access errors with unpredictable result.

Disable SMBus access while reading or writing environmental controller
registers to work around the problem.

---

Changes since v1:
 * Reorder patches within patchset.
 * Remove spaces before tab.

Frank Crawford (4):
  Some chips support Environmental Controller access through SMBus.
    Disable SMBus access while reading or writing environmental
    controller registers.
  Test for error in call to it87_update_device and return error.
  Add calls to smbus_enable/smbus_disable as required.
  Disable/enable SMBus access for IT8622E chipset.

 drivers/hwmon/it87.c | 288 +++++++++++++++++++++++++++++++++++--------
 1 file changed, 240 insertions(+), 48 deletions(-)