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)
committerMark Brown <broonie@kernel.org>
Mon, 2 Oct 2023 14:03:19 +0000 (15:03 +0100)
commit2ec8b010979036c2fe79a64adb6ecc0bd11e91d1
treec4e6878969a99759ff194ffd9f85b62b69df3dba
parent1a8196a93e493c0a50b800cb09cef60b124eee15
spi: npcm-fiu: Fix UMA reads when dummy.nbytes == 0

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>
drivers/spi/spi-npcm-fiu.c