projects/linux·commit 4ff31d77

[PATCH] ipmi: check, if default ports are accessible on PPC

4ff31d77 · Christian Krafft <[email protected]> · 2007-03-05 00:30:48 -08:00

ipmi_si_intf tries to access default ports, if no device could be found
elsewhere.  On PPC we have a function to check, if these legacy IO ports
are accessible.  This patch adds a check for these ports on PPC.  This
patch fixes a breakage of IPMI module on PPC machines without a BMC.

Signed-off-by: Christian Krafft <[email protected]>
Acked-by: Michael Ellerman <[email protected]>
Signed-off-by: Corey Minyard <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
4ff31d7757f57074ccfef352b9d156023914fb2b
Parents
a8fa74ab

Changes

1 files changed · +5 −0

FileStatusAddDelContent
drivers/char/ipmi/ipmi_si_intf.cmodified+5−0View file

drivers/char/ipmi/ipmi_si_intf.c

View file
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index a7b33d2..e221465 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -2478,6 +2478,11 @@ static __devinit void default_find_bmc(void)
if (!info)
return;
+#ifdef CONFIG_PPC_MERGE
+ if (check_legacy_ioport(ipmi_defaults[i].port))
+ continue;
+#endif
+
info->addr_source = NULL;
info->si_type = ipmi_defaults[i].type;