[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200109191423.10589-1-miquel.raynal@bootlin.com>
Date: Thu, 9 Jan 2020 20:14:23 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Tudor.Ambarus@...rochip.com, john.garry@...wei.com,
vigneshr@...com, richard@....at, miquel.raynal@...tlin.com
Cc: linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] mtd: spi-nor: Fix the writing of the Status Register on micron flashes
On Tue, 2019-12-03 at 14:50:01 UTC, wrote:
> From: Tudor Ambarus <tudor.ambarus@...rochip.com>
>
> Micron flashes do not support 16 bit writes on the Status Register.
> According to micron datasheets, when using the Write Status Register
> (01h) command, the chip select should be driven LOW and held LOW until
> the eighth bit of the last data byte has been latched in, after which
> it must be driven HIGH. If CS is not driven HIGH, the command is not
> executed, flag status register error bits are not set, and the write enable
> latch remains set to 1. This fixes the lock operations on micron flashes.
>
> Reported-by: John Garry <john.garry@...wei.com>
> Fixes: 39d1e3340c73 ("mtd: spi-nor: Fix clearing of QE bit on lock()/unlock()")
> Signed-off-by: Tudor Ambarus <tudor.ambarus@...rochip.com>
> Tested-by: John Garry <john.garry@...wei.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks.
Miquel
Powered by blists - more mailing lists