Re: [PATCH 5/5] powerpc/eeh_sysfs: Make clearing EEH_DEV_SYSFS saner

2019-07-15 Thread Sam Bobroff
On Mon, Jul 15, 2019 at 06:56:12PM +1000, Oliver O'Halloran wrote: > The eeh_sysfs_remove_device() function is supposed to clear the > EEH_DEV_SYSFS flag since it indicates the EEH sysfs entries have been added > for a pci_dev. > > When the sysfs files are removed eeh_remove_device() the eeh_dev a

[PATCH 5/5] powerpc/eeh_sysfs: Make clearing EEH_DEV_SYSFS saner

2019-07-15 Thread Oliver O'Halloran
The eeh_sysfs_remove_device() function is supposed to clear the EEH_DEV_SYSFS flag since it indicates the EEH sysfs entries have been added for a pci_dev. When the sysfs files are removed eeh_remove_device() the eeh_dev and the pci_dev have already been de-associated. This then causes the pci_dev_