From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/6] mtd: physmap_of: add a hook for Versatile write protection
Date: Tue, 26 Jan 2016 11:37:08 +0000 [thread overview]
Message-ID: <20160126113707.GL10826@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1453806725-4880-3-git-send-email-linus.walleij@linaro.org>
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.
next prev parent reply other threads:[~2016-01-26 11:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-26 11:11 [PATCH 0/6] Versatile flash protection in DT Linus Walleij
2016-01-26 11:12 ` [PATCH 1/6] mtd: augment the "arm,versatile-flash" bindings Linus Walleij
2016-01-26 22:02 ` Rob Herring
2016-01-26 11:12 ` [PATCH 2/6] mtd: physmap_of: add a hook for Versatile write protection Linus Walleij
2016-01-26 11:37 ` Russell King - ARM Linux [this message]
2016-01-27 9:25 ` Linus Walleij
2016-02-13 13:19 ` Linus Walleij
2016-02-22 13:09 ` Linus Walleij
2016-03-05 17:09 ` Linus Walleij
2016-03-31 8:17 ` Linus Walleij
2016-01-26 11:12 ` [PATCH 3/6] ARM: versatile: move flash registration to the device tree Linus Walleij
2016-01-26 11:12 ` [PATCH 4/6] ARM: integrator: move flash registration to " Linus Walleij
2016-01-26 11:12 ` [PATCH 5/6] ARM: realview: add flash devices to the PB1176 DTS Linus Walleij
2016-01-26 11:12 ` [PATCH 6/6] ARM: realview: fix up PB11MP flash compat strings Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160126113707.GL10826@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).