From: Arnd Bergmann <arnd@arndb.de>
To: Scott Branden <sbranden@broadcom.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Brian Norris <computersforpeace@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: Adding OTP-only device to MTD or CHAR subsystem?
Date: Tue, 29 Dec 2015 00:38:21 +0100 [thread overview]
Message-ID: <3668194.4jROlECW6L@wuerfel> (raw)
In-Reply-To: <5681C3E4.4090506@broadcom.com>
On Monday 28 December 2015 15:21:08 Scott Branden wrote:
> Greg/Brian/Arnd,
>
> We have OTP device drivers for accessing OTP memory in our SoCs.
>
> I looking for the right place and model to place such OTP device drivers.
>
> 1) Should we follow the bfin-otp model in drivers/char? This doesn't
> seem like the right place to put it although following the bfin example
> is quite simple to implement. We actually had a custom set of Ioctl's
> that I changed to use the standard file access model used by the bfin
> driver. But a custom util is still needed to issue an OTPLOCK command.
> I'm guess mtd-utils has such abilities (or should).
>
> 2) Instead, should we start adding OTP-only drivers into the MTD
> subsystem? Onenand and CFI based MTD devices already have OTP
> programmable regions. If we created a new OTP device type in the MTD
> subsystem this looks like a good thing to do. mtd-utils could/should be
> used to access the OTP device then along with standard fileio operations.
>
> 3) Or some other suggestion of where to place OTP device drivers?
I think drivers/nvmem is now the right place for this.
Arnd
next prev parent reply other threads:[~2015-12-28 23:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-28 23:21 Adding OTP-only device to MTD or CHAR subsystem? Scott Branden
2015-12-28 23:38 ` Arnd Bergmann [this message]
2015-12-29 0:32 ` Scott Branden
2016-01-09 11:13 ` Srinivas Kandagatla
2016-01-13 22:05 ` Scott Branden
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=3668194.4jROlECW6L@wuerfel \
--to=arnd@arndb.de \
--cc=computersforpeace@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=sbranden@broadcom.com \
/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).