diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2020-09-16 17:23:17 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-18 11:46:31 +0200 |
commit | 21297485a95c9127c862dd5efed5f69611442984 (patch) | |
tree | 79412ed28f6ce4cc4cb279a94b3c67c4d86203a6 /dts/src/arm/zynq-zturn.dts | |
parent | 5d2ae3b7ffb25cdc6bd4b36e039da296c992d00d (diff) | |
download | barebox-21297485a95c9127c862dd5efed5f69611442984.tar.gz barebox-21297485a95c9127c862dd5efed5f69611442984.tar.xz |
mtd: spi-nor: cadence: fix csqpi corruption in cqspi_set_protocol
cqspi_set_protocol() sets `inst_width`, `addr_width` and `data_width`
for the previous chip-select in `cqspi->current_cs`, but that is
initially set to -1, leading to corruption of other `cqspi->` members.
Change it to set `inst_width`, `addr_width` and `data_width` for the
chip-select associated with the `nor` parameter.
Fixes: 5085d2ef3fbf ("mtd: spi-nor: cadence: add cqspi_set_protocol")
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'dts/src/arm/zynq-zturn.dts')
0 files changed, 0 insertions, 0 deletions