Boris BREZILLON
03a0e8a7c5
mtd: nand: sunxi: fix OOB handling in ->write_xxx() functions
...
The USER_DATA register cannot be accessed using byte accessors on A13
SoCs, thus triggering a bug when using memcpy_toio on this register.
Declare an helper macros to convert an OOB buffer into a suitable
USER_DATA value and vice-versa.
This patch also fixes an error in the oob_required logic (some OOB data
are not written even if the user required it) by removing the
oob_required condition, which is perfectly valid since the core already
fill ->oob_poi with FFs when oob_required is false.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com >
Cc: <stable@vger.kernel.org > # 3.19+
Fixes: 1fef62c142 ("mtd: nand: add sunxi NAND flash controller support")
Signed-off-by: Brian Norris <computersforpeace@gmail.com >
2015-09-21 13:36:42 -07:00
..
2015-09-11 16:13:47 -07:00
2015-09-10 13:29:01 -07:00
2015-09-03 16:55:55 -07:00
2015-08-14 17:27:17 -07:00
2015-09-11 19:11:06 -07:00
2015-08-18 09:08:47 +03:00
2015-09-11 12:33:03 -07:00
2015-08-28 21:09:14 +02:00
2015-09-08 16:48:55 -07:00
2015-09-08 18:19:17 -07:00
2015-09-10 17:59:04 -07:00
2015-09-04 11:35:03 -07:00
2015-09-11 19:11:06 -07:00
2015-09-11 19:11:06 -07:00
2015-09-10 13:29:01 -07:00
2015-08-03 14:33:05 +09:00
2015-09-04 11:10:18 -07:00
2015-09-11 16:21:12 -07:00
2015-08-31 15:49:19 -07:00
2015-09-10 13:29:01 -07:00
2015-09-04 15:49:32 -07:00
2015-09-11 16:42:39 -07:00
2015-09-04 12:02:11 -07:00
2015-09-10 13:29:01 -07:00
2015-08-05 11:46:44 -07:00
2015-09-11 16:13:47 -07:00
2015-08-05 13:30:15 -07:00
2015-09-08 16:16:26 -07:00
2015-08-15 22:10:26 -04:00
2015-09-04 10:07:45 -07:00
2015-09-11 19:00:42 -07:00
2015-09-11 19:17:28 -07:00
2015-09-11 15:21:34 -07:00
2015-09-08 11:36:56 -07:00
2015-09-08 14:35:59 -07:00
2015-09-04 11:40:40 -07:00
2015-09-03 16:41:38 -07:00
2015-09-05 18:11:04 -07:00
2015-09-11 18:15:18 -07:00
2015-09-11 16:42:39 -07:00
2015-09-08 17:22:35 -07:00
2015-08-26 07:11:45 -07:00
2015-09-04 15:49:32 -07:00
2015-09-11 15:12:59 -07:00
2015-09-08 16:33:16 -07:00
2015-09-21 13:36:42 -07:00
2015-09-11 19:29:00 -07:00
2015-09-04 10:07:45 -07:00
2015-09-07 15:27:12 -04:00
2015-09-08 14:35:59 -07:00
2015-08-05 13:44:24 -07:00
2015-09-08 16:16:26 -07:00
2015-09-10 13:29:01 -07:00
2015-07-25 12:48:05 -07:00
2015-09-10 13:29:01 -07:00
2015-09-03 16:01:03 +01:00
2015-07-31 15:01:14 +01:00
2015-09-04 10:07:45 -07:00
2015-09-04 10:22:09 -07:00
2015-09-11 16:13:47 -07:00
2015-08-10 23:07:06 -04:00
2015-09-11 16:13:47 -07:00
2015-08-29 01:46:40 +02:00
2015-09-09 10:55:32 -07:00
2015-08-13 10:12:54 +02:00
2015-09-08 16:48:55 -07:00
2015-09-01 14:48:40 +02:00
2015-09-05 19:37:31 +02:00
2015-09-10 13:29:01 -07:00
2015-09-11 19:00:42 -07:00
2015-07-29 10:08:09 +02:00
2015-09-10 17:59:04 -07:00
2015-08-31 14:45:45 +01:00
2015-09-01 14:33:35 -07:00
2015-09-11 19:11:06 -07:00
2015-09-11 19:00:42 -07:00
2015-09-11 20:06:59 -07:00
2015-09-10 16:21:11 -07:00
2015-08-05 13:25:59 -07:00
2015-09-01 18:46:42 -07:00
2015-07-24 15:14:04 -06:00
2015-08-09 16:28:09 -07:00
2015-09-10 18:19:42 -07:00
2015-09-08 13:32:11 +03:00
2015-09-01 18:46:42 -07:00
2015-09-11 15:12:59 -07:00
2015-09-10 18:19:42 -07:00
2015-09-03 16:27:01 -07:00
2015-09-04 10:22:09 -07:00