]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: sophgo: Fix incorrect use of bus width value macros
authorLongbin Li <looong.bin@gmail.com>
Mon, 17 Nov 2025 09:05:39 +0000 (17:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:05 +0000 (14:03 +0100)
commit77d179867bcc1f8f48bcfc5cdbcf40ba3ab86ead
tree08c987f1ce8480a435c3c3008905813bfc2bc600
parentd8995c4d86ac692dcc766531ee7c9b8c56ecf5a0
spi: sophgo: Fix incorrect use of bus width value macros

[ Upstream commit d9813cd23d5a7b254cc1b1c1ea042634d8da62e6 ]

The previous code initialized the 'reg' value with specific bus-width
values (BUS_WIDTH_2_BIT and BUS_WIDTH_4_BIT), which introduces ambiguity.
Replace them with BUS_WIDTH_MASK to express the intention clearly.

Fixes: de16c322eefb ("spi: sophgo: add SG2044 SPI NOR controller driver")
Signed-off-by: Longbin Li <looong.bin@gmail.com>
Link: https://patch.msgid.link/20251117090559.78288-1-looong.bin@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-sg2044-nor.c