Skip to contentSkip to conversation

ipmi: check, if default ports are accessible on PPC

PATCH New Corey Minyard 1 participant 1 message Mar 2, 2007 IPMI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipmi: check, if default ports are accessible on PPC

From: Christian Krafft <[email protected]>

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.

drivers/char/ipmi/ipmi_si_intf.c +5 -0
Index: linux/drivers/char/ipmi/ipmi_si_intf.c
===================================================================
@@ -2580,6 +2580,11 @@ static __devinit void default_find_bmc(v
 		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;