spi: cadence: fix static checker warning
authorParshuram Thombare <pthombar@cadence.com>
Mon, 4 Oct 2021 08:38:24 +0000 (10:38 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 Oct 2021 14:31:38 +0000 (15:31 +0100)
commit79bffb1e97a349238a0b5535c9356e48b987b8bd
tree50c04eda3c1d66ec3e87003928b571fa36113685
parentacde408188491ab8965c10bf82bb06600599cdd4
spi: cadence: fix static checker warning

This patch fixes Smatch static checker warning.
CDNS_XSPI_CMD_REG_5 is used in ACMD mode and currently
only STIG mode is enabled which doesn't use CDNS_XSPI_CMD_REG_5
and hence everything was working in STIG mode.
Since plan is to use same function cdns_xspi_trigger_command()
in ACMD mode, increasing size of the array passed to it.

Fixes: a16cc8077627 ("spi: cadence: add support for Cadence XSPI controller")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/linux-spi/20210930134231.GA14363@kili/
Signed-off-by: Parshuram Thombare <pthombar@cadence.com>
Link: https://lore.kernel.org/r/1633336704-22735-1-git-send-email-pthombar@cadence.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-xspi.c