Re: Hard Drive light
- To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
- Cc: debian-powerpc@lists.debian.org
- Subject: Re: Hard Drive light
- From: Cedric Pradalier <cedric.pradalier@inrialpes.fr>
- Date: Sun, 23 Jan 2005 21:24:40 +1100
- Message-id: <[🔎] 20050123212440.778efb59.cedric.pradalier@inrialpes.fr>
- In-reply-to: <1103810224.19813.11.camel@gaston>
- References: <200412011807.00590.giusto@economia.unibo.it> <hhy8ghtc33.fsf@alsvidh.mathematik.uni-muenchen.de> <1102041104.5592.101.camel@gaston> <hhmzwvso6c.fsf@alsvidh.mathematik.uni-muenchen.de> <1102112556.5476.33.camel@gaston> <20041206002824.346402c8.cedric.pradalier@inrialpes.fr> <1103467688.5689.25.camel@gaston> <20041220084012.52850214.cedric.pradalier@inrialpes.fr> <1103525989.5319.28.camel@gaston> <20041220220403.4ef9d696.cedric.pradalier@inrialpes.fr> <1103558443.9064.4.camel@gaston> <20041223232129.36cdd988.cedric.pradalier@inrialpes.fr> <1103810224.19813.11.camel@gaston>
According to Benjamin Herrenschmidt, on Thu, 23 Dec 2004 14:57:03 +0100,
>
>
>>
>> Thanks for your help.
>>
>> I could not find how to attach the sys entry to the ide interface,
>> but now, it is attached to the bus owning the IDE, either macio or pci according
>> to which 'attach' function is called. On my ibook, it is macio and I have no way to
>test> if the pci entry works fine.
>
>At the end of pmac_ide_setup_device(), after probe_hwif_init() (and
>after the test for !present) you have the fully probed hwif which should
>contain a device structure you can attach to, though it's not clear how
>to hook a cleanup function... but then, you probably don't need one
>neither, modularity isn't quite supported on ide pmac. Avoid attaching
>anything to the mediabay tho, that will cause more problems as the media
>bay is sort-of hotplug.
>
>> In accord with popular demand, the blink by default is ON, and it can be disabled with
>> boot parameter ide_core.noblink, or through the /sys/bus/(macio|pci)/*/blinking_led
>> interface.
>>
>> With the christmas break, I will not be able to work on that for a couple of week.
>> So if there is still modifications to do, they will have to wait, (or I don't mind if
>> someone else handle them :).
>
>Ok, well, I may do my own changes, depends on how much time I can spare.
>
>Ben.
>
Hi ben,
Did you have time to have a look at that ? As far as I can see, I actually attached to the
only struct device in the hwif. So it might be what you wanted.
Cedric
Reply to: