[RFC] sysfs support for mtd

Siddharth Choudhuri siddh_c at yahoo.com
Thu Jul 19 20:17:36 EDT 2007


> > o I am not sure where an additional link from bus
> to
> > mtd should be added in the sysfs hierarchy. Should
> it
> > be /sys/bus/platform/devices ->
> ../../../devices/mtd
> > -OR-
> > /sys/bus/platform/ -> ../../devices/mtd 
> No idea, but I've always thought sysfs core
> automatically puts these
> links. All you have to do is to define your bus
> object which is
> "platform" bus, and the stuff will appear. Although
> I am not sure.
>  
Thanks for the suggestions. I added a link from
/sys/bus/platform/devices/mtd -> /sys/devices/mtd.
Link can be created in sysfs using a call to
sysfs_create_link() function.

I will send a patch after coding the suggestions and
running a few more tests. 

-sid



       
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/



More information about the linux-mtd mailing list