[PATCH] nand: sunxi: fix write to USER_DATA reg

Maxime Ripard maxime.ripard at free-electrons.com
Thu Jul 30 03:07:26 PDT 2015


On Thu, Jul 30, 2015 at 12:01:06PM +0200, Boris Brezillon wrote:
> 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 a temporary u32 variable to store the USER_DATA value and access
> the register with writel.
> 
> Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>

Acked-by: Maxime Ripard <maxime.ripard at free-electrons.com>
Tested-by: Maxime Ripard <maxime.ripard at free-electrons.com>

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20150730/0938438b/attachment.sig>


More information about the linux-mtd mailing list