From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Sun, 6 Dec 2015 11:33:08 +0800 Subject: [U-Boot] [PATCH v2 2/2] altera_qspi: fix erase and write error code In-Reply-To: <1448960876-22615-2-git-send-email-thomas@wytron.com.tw> References: <1448797103-30524-1-git-send-email-thomas@wytron.com.tw> <1448960876-22615-1-git-send-email-thomas@wytron.com.tw> <1448960876-22615-2-git-send-email-thomas@wytron.com.tw> Message-ID: <5663AC74.50501@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2015?12?01? 17:07, Thomas Chou wrote: > Fix erase and write error code, which should be "protected". > >>>From the "Embedded Peripherals IP User Guide" of Altera, > > The "Illegal write" flag indicates that a write instruction is > targeting a protected sector on the flash memory. This bit is > set to indicate that the IP has cancelled a write instruction. > > The "Illegal erase" flag indicates that an erase instruction has > been set to a protected sector on the flash memory. This bit is > set to indicate that the IP has cancelled the erase instruction. > > Signed-off-by: Thomas Chou > --- > v2 > add description as suggested by Marek. > > drivers/mtd/altera_qspi.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Applied to u-boot-nios.