mtd: bcm47xxsflash: use uncached MMIO access for BCM53573
authorRafał Miłecki <rafal@milecki.pl>
Mon, 15 Aug 2016 12:21:28 +0000 (14:21 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 8 Nov 2016 02:17:37 +0000 (18:17 -0800)
commit64ad46379fcf14f437553f654d1adcd3d0e0d7f9
treec36430fc2ec91a9b6d7fb07148552de48e88cf9e
parent0e2ce9d3fcba5f92dd6c2b27d82690e49d0c0854
mtd: bcm47xxsflash: use uncached MMIO access for BCM53573

BCM53573 is a new series of Broadcom's SoCs. It's based on ARM and uses
this old ChipCommon-based flash access. Early tests resulted in flash
corruptions that were tracked down to using cached MMIO for flash read
access. Switch to ioremap_nocache conditionally to support BCM53573 and
don't break performance on old MIPS devices.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/bcm47xxsflash.c