lkml.org 
[lkml]   [2008]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/1] [Blackfin] char driver for Blackfin on-chip OTP memory
    On 01/30/2008 01:39 PM, Robin Getz wrote:
    > On Wed 30 Jan 2008 06:00, Jiri Slaby pondered:
    >> On 01/30/2008 11:36 AM, Bryan Wu wrote:
    >>> From: Mike Frysinger <michael.frysinger@analog.com>
    >>>
    >>> initial char driver for otp memory
    >>> (only read supported atm ... needs real examples/docs for write support)
    >>>
    >>> Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
    >>> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
    >
    >>> + bfin_otp_class = class_create(THIS_MODULE, "otp");
    >>> + device_create(bfin_otp_class, NULL, bfin_otp_dev_node, "otp");
    >> Anyway, wouldn't be easier/better to use misc.c functionality here
    >> (misc_register() et al.)?
    >
    > OTP (one time programmable) memory are not registers, they are small blocks
    > (8k bytes) of non violate on chip memory, for storing things that you don't
    > want other people to look at via a PCB level probe. (like keys), or things
    > that are just helpful - like MAC addresses.

    Sorry, misc_register() allows you to get rid of the chrdev initialization
    including class creation. Maybe I'm not understanding what you are trying to
    explain me?


    \
     
     \ /
      Last update: 2008-01-30 14:11    [W:2.333 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site