Kamal Dasu
a4bfcab309
mtd: nand: brcmnand: Check flash #WP pin status before nand erase/program
...
commit 9d2ee0a60b8bd9bef2a0082c533736d6a7b39873 upstream.
On brcmnand controller v6.x and v7.x, the #WP pin is controlled through
the NAND_WP bit in CS_SELECT register.
The driver currently assumes that toggling the #WP pin is
instantaneously enabling/disabling write-protection, but it actually
takes some time to propagate the new state to the internal NAND chip
logic. This behavior is sometime causing data corruptions when an
erase/program operation is executed before write-protection has really
been disabled.
Fixes: 27c5b17cd1 ("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller")
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com >
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-07-05 14:40:31 +02:00
..
2017-06-07 12:07:47 +02:00
2016-10-24 19:37:48 +02:00
2017-06-14 15:06:00 +02:00
2016-12-05 14:53:46 -05:00
2017-03-30 09:41:27 +02:00
2017-06-17 06:41:51 +02:00
2017-03-12 06:41:52 +01:00
2017-07-05 14:40:20 +02:00
2017-05-20 14:28:41 +02:00
2017-01-19 20:18:07 +01:00
2017-07-05 14:40:22 +02:00
2017-07-05 14:40:30 +02:00
2017-04-12 12:41:16 +02:00
2017-07-05 14:40:30 +02:00
2016-10-15 09:26:12 -07:00
2017-05-20 14:28:37 +02:00
2017-05-20 14:28:41 +02:00
2017-03-12 06:41:44 +01:00
2017-06-29 13:00:31 +02:00
2017-04-18 07:11:50 +02:00
2017-01-19 20:18:03 +01:00
2016-11-03 14:46:39 +01:00
2017-04-21 09:31:20 +02:00
2017-07-05 14:40:18 +02:00
2017-07-05 14:40:25 +02:00
2017-07-05 14:40:24 +02:00
2017-03-30 09:41:27 +02:00
2017-05-14 14:00:13 +02:00
2017-03-30 09:41:27 +02:00
2017-07-05 14:40:30 +02:00
2017-04-12 12:41:17 +02:00
2017-06-24 07:11:17 +02:00
2017-07-05 14:40:30 +02:00
2017-06-29 13:00:29 +02:00
2017-07-05 14:40:30 +02:00
2016-10-27 18:43:43 -07:00
2017-06-17 06:41:58 +02:00
2017-03-26 13:05:58 +02:00
2017-05-14 14:00:15 +02:00
2016-10-07 14:42:05 -07:00
2016-11-14 22:07:38 +01:00
2017-07-05 14:40:18 +02:00
2017-06-24 07:11:15 +02:00
2017-03-15 10:02:45 +08:00
2016-10-17 15:43:05 +02:00
2017-06-24 07:11:14 +02:00
2017-06-24 07:11:16 +02:00
2017-06-07 12:07:47 +02:00
2017-07-05 14:40:31 +02:00
2017-07-05 14:40:30 +02:00
2016-10-31 10:25:22 -06:00
2017-02-23 17:44:36 +01:00
2017-07-05 14:40:25 +02:00
2017-06-17 06:41:55 +02:00
2016-10-07 21:23:40 -07:00
2017-06-29 13:00:31 +02:00
2016-10-10 20:16:43 -07:00
2017-06-17 06:41:54 +02:00
2017-06-17 06:41:48 +02:00
2016-11-11 08:45:08 -08:00
2016-10-17 15:50:07 +01:00
2017-05-14 14:00:19 +02:00
2017-07-05 14:40:24 +02:00
2017-07-05 14:40:23 +02:00
2017-05-14 14:00:15 +02:00
2017-01-19 20:18:07 +01:00
2016-10-11 15:06:32 -07:00
2016-10-13 10:20:06 -04:00
2017-04-21 09:31:22 +02:00
2016-10-19 08:11:43 -07:00
2017-07-05 14:40:29 +02:00
2017-03-12 06:41:50 +01:00
2016-10-22 18:31:42 +09:00
2017-01-26 08:24:44 +01:00
2017-04-21 09:31:24 +02:00
2017-06-07 12:07:43 +02:00
2017-07-05 14:40:24 +02:00
2017-01-26 08:24:45 +01:00
2017-07-05 14:40:28 +02:00
2017-01-09 08:32:16 +01:00
2017-06-24 07:11:14 +02:00
2017-06-29 13:00:30 +02:00
2017-01-09 08:32:18 +01:00
2017-06-24 07:11:14 +02:00
2017-07-05 14:40:26 +02:00
2017-05-25 15:44:46 +02:00
2017-07-05 14:40:23 +02:00
2017-06-17 06:41:57 +02:00
2017-04-21 09:31:21 +02:00
2016-10-19 08:11:43 -07:00
2017-03-31 10:31:45 +02:00
2017-03-12 06:41:50 +01:00
2017-03-12 06:41:48 +01:00
2017-07-05 14:40:28 +02:00
2017-07-05 14:40:22 +02:00
2017-05-20 14:28:35 +02:00