[PATCH 14/21] Introduce EEH device

2012-02-27 Thread Gavin Shan
Original EEH implementation depends on struct pci_dn heavily. However, EEH shouldn't depend on that actually because EEH needn't share much information with other PCI components. That's to say, EEH should have worked independently. The patch introduces struct eeh_dev so that EEH core components ne

Re: [PATCH 14/21] Introduce EEH device

2012-02-27 Thread Gavin Shan
> Hi Gavin, > > On Fri, 24 Feb 2012 17:38:11 +0800 Gavin Shan > wrote: > > > > diff --git a/arch/powerpc/include/asm/device.h > > b/arch/powerpc/include/asm/device.h > > index d57c08a..4668344 100644 > > --- a/arch/powerpc/include/asm/device.h > > +++ b/arch/powerpc/include/asm/device.h > > @@

Re: [PATCH 14/21] Introduce EEH device

2012-02-27 Thread Gavin Shan
> Hi Gavin, > > On Fri, 24 Feb 2012 17:38:11 +0800 Gavin Shan > wrote: > > > > +#define EEH_DEV_TO_OF_NODE(edev) (edev->dn) > > +#define EEH_DEV_TO_PCI_DEV(edev) (edev->pdev) > > +#define OF_NODE_TO_EEH_DEV(dn) ((struct eeh_dev *)(dn->edev)) > > +#define PCI_DEV_TO_EEH_DEV(pdev)

Re: [PATCH 14/21] Introduce EEH device

2012-02-24 Thread Stephen Rothwell
Hi Gavin, On Fri, 24 Feb 2012 17:38:11 +0800 Gavin Shan wrote: > > diff --git a/arch/powerpc/include/asm/device.h > b/arch/powerpc/include/asm/device.h > index d57c08a..4668344 100644 > --- a/arch/powerpc/include/asm/device.h > +++ b/arch/powerpc/include/asm/device.h > @@ -31,6 +31,9 @@ struct d

Re: [PATCH 14/21] Introduce EEH device

2012-02-24 Thread Stephen Rothwell
Hi Gavin, On Fri, 24 Feb 2012 17:38:11 +0800 Gavin Shan wrote: > > +#define EEH_DEV_TO_OF_NODE(edev) (edev->dn) > +#define EEH_DEV_TO_PCI_DEV(edev) (edev->pdev) > +#define OF_NODE_TO_EEH_DEV(dn) ((struct eeh_dev *)(dn->edev)) > +#define PCI_DEV_TO_EEH_DEV(pdev) ((struct

[PATCH 14/21] Introduce EEH device

2012-02-24 Thread Gavin Shan
Original EEH implementation depends on struct pci_dn heavily. However, EEH shouldn't depend on that actually because EEH needn't share much information with other PCI components. That's to say, EEH should have worked independently. The patch introduces struct eeh_dev so that EEH core components ne