From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992486AbXCBOiW (ORCPT ); Fri, 2 Mar 2007 09:38:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S2992487AbXCBOiW (ORCPT ); Fri, 2 Mar 2007 09:38:22 -0500 Received: from mta16.adelphia.net ([68.168.78.211]:33422 "EHLO mta16.adelphia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992486AbXCBOiV (ORCPT ); Fri, 2 Mar 2007 09:38:21 -0500 Date: Fri, 2 Mar 2007 08:38:19 -0600 From: Corey Minyard To: Linux Kernel , Andrew Morton Cc: Christian Krafft , Michael Ellerman Subject: [PATCH] ipmi: check, if default ports are accessible on PPC Message-ID: <20070302143818.GA5224@localdomain> Reply-To: minyard@acm.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Krafft 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 Acked-by: Michael Ellerman Signed-off-by: Corey Minyard Index: linux/drivers/char/ipmi/ipmi_si_intf.c =================================================================== --- linux.orig/drivers/char/ipmi/ipmi_si_intf.c +++ 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;