spi: imx: Take in account bits per word instead of assuming 8-bits
authorStefan Moring <stefanmoring@gmail.com>
Sun, 17 Sep 2023 16:40:37 +0000 (18:40 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 18 Sep 2023 12:05:27 +0000 (13:05 +0100)
commit5f66db08cbd3ca471c66bacb0282902c79db9274
treeffe746319f00557b55968f226eaca79e9b608124
parent9855d60cfc720ff32355484c119acafd3c4dc806
spi: imx: Take in account bits per word instead of assuming 8-bits

The IMX spi driver has a hardcoded 8, breaking the driver for word
lengths other than 8.

Signed-off-by: Stefan Moring <stefanmoring@gmail.com>
Reported-by: Sebastian Reichel <sre@kernel.org>
Fixes: 15a6af94a277 ("spi: Increase imx51 ecspi burst length based on transfer length")
Tested-by: Sebastian Reichel <sre@kernel.org>
Link: https://lore.kernel.org/r/20230917164037.29284-1-stefanmoring@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c