lkml.org 
[lkml]   [2018]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] PCI/AER: Clear uncorrectable error status for device
From
Date
On 9/18/2018 4:20 AM, Oza Pawandeep wrote:
> +++ b/drivers/pci/pcie/err.c
> @@ -265,6 +265,8 @@ static pci_ers_result_t broadcast_error_message(struct pci_dev *dev,
> * The error is non fatal so the bus is ok; just invoke
> * the callback for the function that logged the error.
> */
> + if (cb == report_resume)
> + pci_cleanup_aer_uncorrect_error_status(dev);
> cb(dev, &result_data);
> }

In order to follow the existing behavior (drivers are calling
pci_cleanup_aer_uncorrect_error_status() right before return),
you should probably move the pci_cleanup_aer_uncorrect_error_status
after

cb(dev, &result_data);

line.

\
 
 \ /
  Last update: 2018-09-18 16:31    [W:0.083 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site