public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: fthain@telegraphics.com.au (Finn Thain)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] misc: atmel-secumod: Driver for Atmel "security module".
Date: Fri, 29 Jan 2016 11:13:05 +1100 (AEDT)	[thread overview]
Message-ID: <alpine.LNX.2.00.1601291055520.23683@nippy.intranet> (raw)
In-Reply-To: <CALnQHM13cGnoma_3erb0oCnRD0sYGGNF1E1cgzCJHrEXbvJpRQ@mail.gmail.com>


On Mon, 25 Jan 2016, David Mosberger wrote:

> On Mon, Jan 25, 2016 at 4:09 AM, Alexandre Belloni 
> <alexandre.belloni@free-electrons.com> wrote:
> 
> > I know this does more than that but I think those thre sections should 
> > be registered using the nvmem framework. The sysfs file creation and 
> > accesses then comes for free.
> 
> I think Finn's patches would have to go in for that first, since the 
> existing nvram code is a mess. Even with Finn's patches in, I think it 
> could go either way.

I think Alexandre is speaking of the nvmem subsystem (not nvram).
Documentation/devicetree/bindings/nvmem
Documentation/nvmem
drivers/nvmem

> I'm not exactly sure how some of the features of the security module 
> would be used: key management, auto erasing, there is a strange "backup 
> mode" vs "normal mode" which is not well documented, etc.  So I think it 
> may well end up being sufficiently different to warrant a separate 
> driver.

nvmem is not a subsystem I am familiar with, so it's not immediately clear 
to me what your driver would look like if re-written that way.

Maybe it would become simpler. But if you did end up needing a separate 
misc driver as well, maybe use of the nvmem framework would actually 
increase complexity.

It would depend on your requirements. But I would focus on the actual 
requirement rather than uncertain future possibilities.

> 
> > Another idea is also to expose it using a genpool so it can be 
> > accessed as sram from inside the kernel.
> 
> That may be a fine idea, but as far as our application is concerned, we 
> need user-level access to the battery-backed RAM.

Right. I don't see how adding a memory allocator would help either.

-- 

> 
> Best regards,
> 
>   --david
> 

  reply	other threads:[~2016-01-29  0:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21  3:57 [PATCH] misc: atmel-secumod: Driver for Atmel "security module" David Mosberger-Tang
2016-01-25 11:09 ` Alexandre Belloni
2016-01-25 16:24   ` David Mosberger
2016-01-29  0:13     ` Finn Thain [this message]
2016-01-31 11:34       ` Alexandre Belloni
2016-05-23 12:04         ` Boris Brezillon
2016-05-23 12:53           ` Boris Brezillon
2016-05-23 13:59             ` Alexandre Belloni
2016-05-10 19:02 ` [PATCH] drivers: nvmem: atmel-secumod: New driver for Atmel Secumod nvram David Mosberger-Tang
2016-05-12  5:06   ` Finn Thain
2016-05-16 20:17     ` David Mosberger-Tang
2016-05-18 16:42       ` Rob Herring
2016-05-18 20:46         ` David Mosberger
2016-05-18 21:06         ` David Mosberger-Tang
2016-05-20 19:21           ` Rob Herring
2016-05-23  8:50           ` Srinivas Kandagatla

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=alpine.LNX.2.00.1601291055520.23683@nippy.intranet \
    --to=fthain@telegraphics.com.au \
    --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