spi: npcm-fiu: Fix UMA reads when dummy.nbytes == 0
authorWilliam A. Kennington III <william@wkennington.com>
Fri, 22 Sep 2023 18:28:12 +0000 (11:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 13:10:59 +0000 (14:10 +0100)
commitc6f6a505277fb62a938eee37d4a3626a7a72364d
treebed45ac8085cb35a6e51d17409c3ad075c28aa98
parent6a7a2d5a08642b46e210fc7b7103e9424167ff4b
spi: npcm-fiu: Fix UMA reads when dummy.nbytes == 0

[ Upstream commit 2ec8b010979036c2fe79a64adb6ecc0bd11e91d1 ]

We don't want to use the value of ilog2(0) as dummy.buswidth is 0 when
dummy.nbytes is 0. Since we have no dummy bytes, we don't need to
configure the dummy byte bits per clock register value anyway.

Signed-off-by: "William A. Kennington III" <william@wkennington.com>
Link: https://lore.kernel.org/r/20230922182812.2728066-1-william@wkennington.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-npcm-fiu.c