Bug#396193: [Yaird-devel] Bug#396193: Patch to recognize openfirmware drivers

Jonas Smedegaard dr at jones.dk
Fri Mar 30 21:53:37 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sven Luther wrote:
> On Fri, Mar 30, 2007 at 09:24:25PM +0200, Jonas Smedegaard wrote:

>> Bernhard R. Link wrote:
>>
>>> Attached patch teaches yaird to recognize openfirmware devices,
>>> as they appear in linux 2.6.18.
>>>
>>> This makes my sparc with sbus devices work again with yaird and in
>>> theory it should also make it not choke on ebus devices the bugreport
>>> I'm sending this to is about.
>> Thanks alot for your work - and sorry for my late response.
>>
>> Unfortunately, it seems to me that your patch will interfere with
>> PowerPC machines, that also use OpenFirmware. Looking briefly on a
>> Macintosh at hand, it contains devspec files in sysfs too, but not the
>> modules.ofmap that your patch seems to rely on.
>>
>> Could anyone check if I am right - and perhaps figure out a sane way to
>> deal with the different openfirmware implementations?
> 
> The future of powerpc plateform drivers, with the move to arch=powerpc, and
> everything relying on an openfirmware-like device tree, is to go the
> plateform_of way. This does include the powermacs, which is the primary
> development plateform of benjamin herrenschmidt, among others, who was
> involved in the openfirmware driver move.
> 
> As thus, adding support for the openfirmware plateform devices is needed to
> continue to have hotplug support for those devices, and vital for yaird.

Thanks for the detailed info, Sven.

I did notice shortly after firing off that email that indeed the ofmap
file is present for a 2.6.18 kernel, only not for that ancient 2.6.8
kernel I was looking at at first.

This raises another question: It seems to me that this patch will fail
for kernels that offers devspec in sysfs but does not ship with a
modules.ofmap file.

If so, applying this patch will cause yaird to stop working on older
kernels that worked before.


Kind regards,

 - Jonas

- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGDXjRn7DbMsAkQLgRAjvHAJ0XN369PphyV7oVRoAuA67kk6i3zACgoRiV
Lyp7NAZ3tNtX6otrwCz0qpg=
=+xZE
-----END PGP SIGNATURE-----




More information about the Yaird-devel mailing list