Skip to content
/ linux Public

Commit 0747b61

Browse files
marcusfolkessonSasha Levin
authored andcommitted
Revert "mfd: da9052-spi: Change read-mask to write-mask"
[ Upstream commit 12daa9c ] This reverts commit 2e3378f. Almost every register in this chip can be customized via OTP memory. Somehow the value for R19, which decide if the flag is set on read or write operation, seems to have been overwritten for the chip the original patch were written for. Revert the change to follow the default behavior. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Link: https://patch.msgid.link/20251124-da9052-revert-v1-1-fbeb2c894002@gmail.com Signed-off-by: Lee Jones <lee@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a5da823 commit 0747b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/da9052-spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static int da9052_spi_probe(struct spi_device *spi)
3737
spi_set_drvdata(spi, da9052);
3838

3939
config = da9052_regmap_config;
40-
config.write_flag_mask = 1;
40+
config.read_flag_mask = 1;
4141
config.reg_bits = 7;
4242
config.pad_bits = 1;
4343
config.val_bits = 8;

0 commit comments

Comments
 (0)