From: Gavin Shan <shangw@linux.vnet.ibm.com>
To: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Cc: bhelgaas@google.com, paulus@samba.org,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
shangw@linux.vnet.ibm.com
Subject: Re: [PATCH 1/2] EEH/OF: checking for CONFIG_EEH is not needed
Date: Fri, 4 Jan 2013 10:24:39 +0800 [thread overview]
Message-ID: <20130104022439.GA15123@shangw.(null)> (raw)
In-Reply-To: <1356721999-25159-1-git-send-email-cascardo@linux.vnet.ibm.com>
On Fri, Dec 28, 2012 at 05:13:18PM -0200, Thadeu Lima de Souza Cascardo wrote:
>The functions used are already defined as empty inline functions for the
>case where EEH is disabled.
>
>Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Acked-by: Gavin Shan <shangw@linux.vnet.ibm.com>
>---
> arch/powerpc/kernel/of_platform.c | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
>diff --git a/arch/powerpc/kernel/of_platform.c b/arch/powerpc/kernel/of_platform.c
>index 2049f2d..c5fc6b2 100644
>--- a/arch/powerpc/kernel/of_platform.c
>+++ b/arch/powerpc/kernel/of_platform.c
>@@ -71,10 +71,8 @@ static int __devinit of_pci_phb_probe(struct platform_device *dev)
> eeh_dev_phb_init_dynamic(phb);
>
> /* Register devices with EEH */
>-#ifdef CONFIG_EEH
> if (dev->dev.of_node->child)
> eeh_add_device_tree_early(dev->dev.of_node);
>-#endif /* CONFIG_EEH */
>
> /* Scan the bus */
> pcibios_scan_phb(phb);
>@@ -88,9 +86,7 @@ static int __devinit of_pci_phb_probe(struct platform_device *dev)
> pcibios_claim_one_bus(phb->bus);
>
> /* Finish EEH setup */
>-#ifdef CONFIG_EEH
> eeh_add_device_tree_late(phb->bus);
>-#endif
>
> /* Add probed PCI devices to the device model */
> pci_bus_add_devices(phb->bus);
Thanks,
Gavin
next prev parent reply other threads:[~2013-01-04 2:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-27 16:34 [PATCH] ppc/EEH: fix crash when adding a device in a slot with DDW Thadeu Lima de Souza Cascardo
2012-12-27 16:34 ` Thadeu Lima de Souza Cascardo
2012-12-28 5:18 ` Gavin Shan
2012-12-28 12:06 ` Thadeu Lima de Souza Cascardo
2012-12-28 12:06 ` Thadeu Lima de Souza Cascardo
2012-12-28 19:13 ` [PATCH 1/2] EEH/OF: checking for CONFIG_EEH is not needed Thadeu Lima de Souza Cascardo
2012-12-28 19:13 ` Thadeu Lima de Souza Cascardo
2013-01-04 2:24 ` Gavin Shan [this message]
2012-12-28 19:13 ` [PATCH 2/2] ppc/EEH: fix crash when adding a device in a slot with DDW Thadeu Lima de Souza Cascardo
2012-12-28 19:13 ` Thadeu Lima de Souza Cascardo
2013-01-04 3:19 ` Gavin Shan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='20130104022439.GA15123@shangw.(null)' \
--to=shangw@linux.vnet.ibm.com \
--cc=bhelgaas@google.com \
--cc=cascardo@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.