Re: [PATCH] mtd: spi-nor: cadence: fix csqpi corruption in cqspi_set_protocol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <abbotti@xxxxxxxxx>
> ---
>  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
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux