spi: bcm-qspi: fix calculation of address length
authorRafał Miłecki <rafal@milecki.pl>
Thu, 11 Oct 2018 07:40:22 +0000 (09:40 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 11 Oct 2018 14:00:28 +0000 (15:00 +0100)
commit0976eda7915507fe94e07870c19d717c9994b57a
tree89b69a9bbf6063cc926439c994f01f7d1cd097c1
parentc949a8e8b43f2c75567269bcc9a50d704ae3c420
spi: bcm-qspi: fix calculation of address length

During implementation of the new API bcm_qspi_bspi_set_flex_mode() has
been modified breaking calculation of address length. An unnecessary
multiplication was added breaking flash reads.

Fixes: 5f195ee7d830 ("spi: bcm-qspi: Implement the spi_mem interface")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-bcm-qspi.c