]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: da9052-spi: Change read-mask to write-mask
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Wed, 25 Sep 2024 10:19:53 +0000 (12:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:00 +0000 (19:51 +0100)
commita82dbec6e882ed2117f3b1c99e8d83d1cd98c6b2
treeb79744ef7fd7a36d29195ce694751d5b0498c1d9
parentcac4995c03fee86fb005b7a9e7d4baeda33b6ce2
mfd: da9052-spi: Change read-mask to write-mask

[ Upstream commit 2e3378f6c79a1b3f7855ded1ef306ea4406352ed ]

Driver has mixed up the R/W bit.
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")
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Link: https://lore.kernel.org/r/20240925-da9052-v2-1-f243e4505b07@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/da9052-spi.c