S25FL1 FLASH driver: Fix return value from the bwrite() method

This commit is contained in:
Gregory Nutt 2015-11-07 11:26:53 -06:00
parent 41337324ba
commit b2bdba0824
4 changed files with 7 additions and 5 deletions

View File

@ -10881,7 +10881,7 @@
device (2015-08-24).
* networking: Correct return value from psock_tcp_accept(). From
SaeHie Park (2015-08-25).
* drivers/mtd/st25fl1.c: Add a driver for ST25L1*K QuadSPI parts
* drivers/mtd/s25fl1.c: Add a driver for ST25L1*K QuadSPI parts
(2015-08-25).
* include/nuttx/spi/qspi.h: Develop a new interface for QSPI, at
least the way that QSPI is implemented on the SAMV71. Originally
@ -11071,4 +11071,6 @@
* arch/arm/src/samv7: Add a call to can_txready() to the MCAN driver
(2015-11-03).
* arch/arm/src/samv7: Add MPU and protected build support (2015-11-06).
* arch/arm/src/samv7: The QSPI FLASH driver is now functional. This
driver operates in the memory-mapped, Serial Memory Mode (SMM)
(2015-11-07).

2
arch

@ -1 +1 @@
Subproject commit dd5268721c6a5c05ebd441556d3fddeb4b1d0509
Subproject commit 2137b6c754118003664432d16dd4b69685939c74

@ -1 +1 @@
Subproject commit 449de6ca27fc922687fe586aa65742cffbf2bc2e
Subproject commit 8e4edaaa0293ae3ca1517f6798694d8e96c553bb

View File

@ -1289,7 +1289,7 @@ static ssize_t st25fl1_bwrite(FAR struct mtd_dev_s *dev, off_t startblock,
st25fl1_unlock(priv->qspi);
return ret;
return ret < 0 ? ret : nblocks;
}
/************************************************************************************