Skip to contentSkip to conversation

mfd: da9052-spi: change read-mask to write-mask

PATCH Superseded Marcus Folkesson 2 participants 3 messages Sep 18, 2024 – Sep 25, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: da9052-spi: change read-mask to write-mask

Actually, the LSB bit is set on write rather than read. Change it to avoid nasty things to happen.

---
 drivers/mfd/da9052-spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/da9052-spi.c +1 -1
index be5f2b34e18aebc7a9506123b366af5a5447df43..80fc5c0cac2fb0e5e99e6db8972f80ae4155b226 100644
@@ -37,7 +37,7 @@ static int da9052_spi_probe(struct spi_device *spi)
 	spi_set_drvdata(spi, da9052);
 
 	config = da9052_regmap_config;
-	config.read_flag_mask = 1;
+	config.write_flag_mask = 1;
 	config.reg_bits = 7;
 	config.pad_bits = 1;
 	config.val_bits = 8;

---
base-commit: 33cc938e65a98f1d29d0a18403dbbee050dcad9a
change-id: 20240918-da9052-df843a1b9d0e

Best regards,

Signature · 1 line
Marcus Folkesson <[email protected]>
#1 lore raw
Quoted 3 lines · Marcus Folkesson

Actually, the LSB bit is set on write rather than read. Change it to avoid nasty things to happen.

Fixes e9e9d3973594 ("mfd: da9052: Avoid setting read_flag_mask for da9052-i2c driver")
Quoted 1 line
maintainer
#2 lore raw
Quoted 5 lines · Marcus Folkesson
Quoted 3 lines · Marcus Folkesson

Actually, the LSB bit is set on write rather than read. Change it to avoid nasty things to happen.

Fixes e9e9d3973594 ("mfd: da9052: Avoid setting read_flag_mask for da9052-i2c driver")

Please resubmit the patch.

Quoted 1 line
Quoted 1 line
Signature · 1 line
Lee Jones [李琼斯]