Re: [PATCH v2 07/13] powerpc/eeh: Clean up pci_ers_result handling

2018-06-04 Thread Michael Ellerman
Sam Bobroff writes: > On Sat, Jun 02, 2018 at 01:40:46AM +1000, Michael Ellerman wrote: >> Sam Bobroff writes: >> >> > As EEH event handling progresses, a cumulative result of type >> > pci_ers_result is built up by (some of) the eeh_report_*() functions >> > using either: >> >if (rc ==

Re: [PATCH v2 07/13] powerpc/eeh: Clean up pci_ers_result handling

2018-06-03 Thread Sam Bobroff
On Sat, Jun 02, 2018 at 01:40:46AM +1000, Michael Ellerman wrote: > Sam Bobroff writes: > > > As EEH event handling progresses, a cumulative result of type > > pci_ers_result is built up by (some of) the eeh_report_*() functions > > using either: > > if (rc == PCI_ERS_RESULT_NEED_RESET) *res

Re: [PATCH v2 07/13] powerpc/eeh: Clean up pci_ers_result handling

2018-06-01 Thread Michael Ellerman
Sam Bobroff writes: > As EEH event handling progresses, a cumulative result of type > pci_ers_result is built up by (some of) the eeh_report_*() functions > using either: > if (rc == PCI_ERS_RESULT_NEED_RESET) *res = rc; > if (*res == PCI_ERS_RESULT_NONE) *res = rc; > or: > if

[PATCH v2 07/13] powerpc/eeh: Clean up pci_ers_result handling

2018-05-24 Thread Sam Bobroff
As EEH event handling progresses, a cumulative result of type pci_ers_result is built up by (some of) the eeh_report_*() functions using either: if (rc == PCI_ERS_RESULT_NEED_RESET) *res = rc; if (*res == PCI_ERS_RESULT_NONE) *res = rc; or: if ((*res == PCI_ERS_RESULT_NONE)