[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: IDE LED support on powerpc



On Fri, 2005-11-11 at 21:45 +1000, Cedric Pradalier wrote:

> I was the one working on a patch. 
> The main issue was that Ben wanted to attach it to the IDE
> driver in /sys. I could not find how to do it properly but
> I can find back the patch. 

Look at include/linux/device.h, look for device_attribute. You should be
able to create a device attribute and attach it to the struct device
that is either in the pci_dev or the macio_dev (depending on what type
of probing it's using).

> For a command line parameter:
> http://cedric.pradalier.free.fr/ibook2/pmac-rtblink.diff.gz
> 
> Also for a sysctl entry in /sys/devices/ide-pmac/blinking_led
> http://lists.debian.org/debian-powerpc/2004/12/msg00182.html
> 
> This was againt 2.6.9
> 
> There was not a huge motivation so I let it be... I'm not
> very pushy so the patch I make tend to sink into
> oblivion... remember the adm103x thermal driver for ibook2?
> 
> ;)
> --
> Cedric
> 
> 



Reply to: