Skip to content

regmap: Redo fixes for raw I/O length restrictions

Mark Brown linux-patches 1 version New

Get series with b4
b4 am [email protected] change-id 20230708-regmap-max-transfer-dadeb827143f

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2regmap: Drop initial version of maximum transfer length fixesdrivers/base/regmap/regmap-spi-avmm.c drivers/base/regmap/regmap.c+3 -50 replies
2/2regmap: Account for register length in SMBus I/O limitsdrivers/base/regmap/regmap-i2c.c+4 -40 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/2] regmap: Redo fixes for raw I/O length restrictions

During the v6.4 release there was an attempt to address the fact that the specification of maximum I/O sizes for raw buses in the core does not take account of the register or pad bits in the maxium length. After this was merged it was realised that there are number of custom bus implementations in drivers which were relying on the prior behavior in various ways.

This should be factored out into the core but that will require coordination with all the buses involved so let's fall back to the original interface and add the accounting to the I2C bus where the omission was originally observed.

---
Mark Brown (2):
regmap: Drop initial version of maximum transfer length fixes
regmap: Account for register length in SMBus I/O limits

 drivers/base/regmap/regmap-i2c.c      | 8 ++++----
 drivers/base/regmap/regmap-spi-avmm.c | 2 +-
 drivers/base/regmap/regmap.c          | 6 ++----
 3 files changed, 7 insertions(+), 9 deletions(-)

---
base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
change-id: 20230708-regmap-max-transfer-dadeb827143f

Best regards,

Signature · 1 line
Mark Brown <[email protected]>