summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-06-21 19:25:43 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2023-06-21 19:25:43 +0200
commite075d681a27eea6e3722749dda10cf3c4ddfc9fc (patch)
treec012872071dbdc23c7ab4ec7dec7cebf2bfd5f91 /drivers/base
parentMerge tag 'mm-hotfixes-stable-2023-06-20-12-31' of git://git.kernel.org/pub/s... (diff)
parentregmap: spi-avmm: Fix regmap_bus max_raw_write (diff)
downloadlinux-e075d681a27eea6e3722749dda10cf3c4ddfc9fc.tar.xz
linux-e075d681a27eea6e3722749dda10cf3c4ddfc9fc.zip
Merge tag 'regmap-fix-v6.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap
Pull regmap fix from Mark Brown: "One more fix for v6.4 The earlier fix to take account of the register data size when limiting raw register writes exposed the fact that the Intel AVMM bus was incorrectly specifying too low a limit on the maximum data transfer, it is only capable of transmitting one register so had set a transfer size limit that couldn't fit both the value and the the register address into a single message" * tag 'regmap-fix-v6.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap: regmap: spi-avmm: Fix regmap_bus max_raw_write
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/regmap/regmap-spi-avmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-spi-avmm.c b/drivers/base/regmap/regmap-spi-avmm.c
index 4c2b94b3e30b..6af692844c19 100644
--- a/drivers/base/regmap/regmap-spi-avmm.c
+++ b/drivers/base/regmap/regmap-spi-avmm.c
@@ -660,7 +660,7 @@ static const struct regmap_bus regmap_spi_avmm_bus = {
.reg_format_endian_default = REGMAP_ENDIAN_NATIVE,
.val_format_endian_default = REGMAP_ENDIAN_NATIVE,
.max_raw_read = SPI_AVMM_VAL_SIZE * MAX_READ_CNT,
- .max_raw_write = SPI_AVMM_VAL_SIZE * MAX_WRITE_CNT,
+ .max_raw_write = SPI_AVMM_REG_SIZE + SPI_AVMM_VAL_SIZE * MAX_WRITE_CNT,
.free_context = spi_avmm_bridge_ctx_free,
};