All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Ian Abbott <abbotti@mev.co.uk>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] mtd: spi-nor: cadence: fix csqpi corruption in cqspi_set_protocol
Date: Fri, 18 Sep 2020 11:46:46 +0200	[thread overview]
Message-ID: <20200918094646.GU4498@pengutronix.de> (raw)
In-Reply-To: <20200916162317.5270-1-abbotti@mev.co.uk>

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@mev.co.uk>
> ---
>  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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2020-09-18  9:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-16 16:23 [PATCH] mtd: spi-nor: cadence: fix csqpi corruption in cqspi_set_protocol Ian Abbott
2020-09-18  9:46 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200918094646.GU4498@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=abbotti@mev.co.uk \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.