drivers/bch: delay the sector flush

Delay the sector flush to avoid multiple earse/write operations in sequence write

Change-Id: If4331b7fc8d2c2061325533212b28e826141b411
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2020-07-13 18:46:39 +08:00
committed by Xiang Xiao
parent e5f6dafe1f
commit ed3cddb684
-9
View File
@@ -184,14 +184,5 @@ ssize_t bchlib_write(FAR void *handle, FAR const char *buffer, size_t offset,
byteswritten += len;
}
/* Finally, flush any cached writes to the device as well */
ret = bchlib_flushsector(bch);
if (ret < 0)
{
ferr("ERROR: Flush failed: %d\n", ret);
return ret;
}
return byteswritten;
}