[PATCH 2/6] mtd: physmap_of: add a hook for Versatile write protection

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Jan 26 03:37:08 PST 2016


On Tue, Jan 26, 2016 at 12:12:01PM +0100, Linus Walleij wrote:
> Solve this by looking for the arm,versatile-flash compatible
> string in the flash device tree node. In the driver,
> add a special hook to check for the various Versatile syscons and
> register a callback for .set_vpp() if this compatible is present.

You are aware that the "write enable" applies to all flash devices
on the board, and not just NOR flash.  What that means is if you
have drivers for the other flash devices, you need to have a way
to enable writes when _any_ driver wants write access.

So, it shouldn't be part of the flash driver at all.

-- 
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.



More information about the linux-mtd mailing list