[PATCH] generic check_legacy_ioport
arnd at arndb.de
Wed Apr 25 08:01:17 EST 2007
On Tuesday 24 April 2007, Olaf Hering wrote:
> > Do you think a device_type fdc, i8042 or ipmi will appear outside an isa
> > node?
> Does anyone know where those ipmi devices appear in the device-tree?
There are actually _no_ ipmi devices that we expect to appear here.
the reason why the check is in the ipmi driver is in order not to crash
on powerpc machines that load the ipmi driver but have no ipmi nodes
in the device tree.
The init function of the ipmi module will scan all buses (PCI, ACPI, OF,
...) until it finds any devices using regular probes. If it doesn't,
it will poke at "well-known" io-ports that are used by convention on
legacy i386 machines.
I don't think there are any powerpc machines where it can find something
there, but we decided to leave the code architecture independent in
case there ever are, and just to add the check_legacy_ioport call in there.
More information about the Linuxppc-dev