spi: aspeed: Workaround AST2500 limitations
authorCédric Le Goater <clg@kaod.org>
Mon, 9 May 2022 17:56:11 +0000 (19:56 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 16 May 2022 11:59:18 +0000 (12:59 +0100)
commit5785eedee42c34cfec496199a80fa8ec9ddcf7fe
treef62ea39098a44c8e8adc55395175a3d8dbcd5f99
parentbb084f94e1bca4a5c4f689d7aa9b410220c1ed71
spi: aspeed: Workaround AST2500 limitations

It is not possible to configure a full 128MB window for a chip of the
same size on the AST2500 SPI controller. For this case, the maximum
window size is restricted to 120MB for CE0.

Reviewed-by: Joel Stanley <joel@jms.id.au>
Tested-by: Joel Stanley <joel@jms.id.au>
Tested-by: Tao Ren <rentao.bupt@gmail.com>
Tested-by: Jae Hyun Yoo <quic_jaehyoo@quicinc.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Link: https://lore.kernel.org/r/20220509175616.1089346-7-clg@kaod.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-aspeed-smc.c