Skip to content

i2c octeon & thunderx bug fixes

Jan Glauber linux-i2c linux-mips 1 version Applied

Status from this message: Applied to for-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 14 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4i2c: octeon: thunderx: TWSI software reset in recoverydrivers/i2c/busses/i2c-octeon-core.c+3 -01 reply
2/4i2c: octeon: thunderx: Remove double-check after interruptdrivers/i2c/busses/i2c-octeon-core.c+2 -411 reply
3/4i2c: octeon: thunderx: Limit register access retriesdrivers/i2c/busses/i2c-octeon-core.c drivers/i2c/busses/i2c-octeon-core.h+19 -64 replies
4/4i2c: octeon: thunderx: Add I2C_CLASS_HWMONdrivers/i2c/busses/i2c-octeon-platdrv.c drivers/i2c/busses/i2c-thunderx-pcidrv.c+2 -08 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] i2c octeon & thunderx bug fixes

Hi Wolfram,

Patches #1 & #2 contain the fixes that didn't make 4.9. We've double-checked that they are working on Octeon MIPS cn71xx, so I hope there are no surprises this time.

Patch #3 is my original attempt on limiting the number of retries for the i2c device register access. As I found out we need to keep this simple, because these functions are called very early in the i2c driver and also from all types of context.

Patch #4 addresses a bug report I got. I haven't seen this myself, but apparently depending on probing method and/or hardware type ipmi_ssif can fail to detect the IPMI device. Setting the class in the adapter solves the problem and seems harmless.

Tested on MIPS Octeon CN71xx and ARM64 ThunderX on 4.9-rc8.

thanks,
Jan

-----------------------

Jan Glauber (4):
i2c: octeon: thunderx: TWSI software reset in recovery
i2c: octeon: thunderx: Remove double-check after interrupt
i2c: octeon: thunderx: Limit register access retries
i2c: octeon: thunderx: Add I2C_CLASS_HWMON

 drivers/i2c/busses/i2c-octeon-core.c     | 50 +++++---------------------------
 drivers/i2c/busses/i2c-octeon-core.h     | 21 ++++++++++----
 drivers/i2c/busses/i2c-octeon-platdrv.c  |  1 +
 drivers/i2c/busses/i2c-thunderx-pcidrv.c |  1 +
 4 files changed, 26 insertions(+), 47 deletions(-)
Signature · 1 line
2.9.0.rc0.21.g7777322