hw/ssi: imx_spi: Round up the burst length to be multiple of 8
commit24bf8ef3f5300943940fd054763f92808f8481a0
authorBin Meng <bin.meng@windriver.com>
Fri, 29 Jan 2021 13:23:21 +0000 (29 21:23 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 2 Feb 2021 17:00:55 +0000 (2 17:00 +0000)
tree68c5d0a975dcb78a517a3928f7cad2aa81a16a9c
parent50dc25932eb31fca15104968e596b7035ce9ece1
hw/ssi: imx_spi: Round up the burst length to be multiple of 8

Current implementation of the imx spi controller expects the burst
length to be multiple of 8, which is the most common use case.

In case the burst length is not what we expect, log it to give user
a chance to notice it, and round it up to be multiple of 8.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-id: 20210129132323.30946-9-bmeng.cn@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ssi/imx_spi.c