On Wed, Sep 16, 2020 at 05:23:17PM +0100, Ian Abbott wrote:
> 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 <[email protected]>
> ---
>  drivers/mtd/spi-nor/cadence-quadspi.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to