Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'regmap-fix-v6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap

Pull regmap fix from Mark Brown:
"The I2C bus was not taking account of the register and any padding
bytes when handling maximum write sizes supported by an I2C adaptor,
this patch from Jim Wylder fixes that"

* tag 'regmap-fix-v6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
regmap-i2c: Subtract reg size from max_write

+2 -1
+2 -1
drivers/base/regmap/regmap-i2c.c
··· 350 350 351 351 if (quirks->max_write_len && 352 352 (bus->max_raw_write == 0 || bus->max_raw_write > quirks->max_write_len)) 353 - max_write = quirks->max_write_len; 353 + max_write = quirks->max_write_len - 354 + (config->reg_bits + config->pad_bits) / BITS_PER_BYTE; 354 355 355 356 if (max_read || max_write) { 356 357 ret_bus = kmemdup(bus, sizeof(*bus), GFP_KERNEL);