[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <37509c44-64fe-4140-c776-53c3346cbfe5@gmail.com>
Date: Thu, 19 Jul 2018 10:55:06 -0500
From: "Alex G." <mr.nuke.me@...il.com>
To: Sinan Kaya <okaya@...nel.org>, bhelgaas@...gle.com,
keith.busch@...el.com
Cc: alex_gagniuc@...lteam.com, austin_bolen@...l.com,
shyam_iyer@...l.com, Frederick Lawler <fred@...dlawl.com>,
Oza Pawandeep <poza@...eaurora.org>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] PCI/AER: Do not clear AER bits if we don't own AER
On 07/17/2018 10:41 AM, Sinan Kaya wrote:
>
> On 7/17/2018 8:31 AM, Alexandru Gagniuc wrote:
>> + if (pcie_aer_get_firmware_first(dev))
>> + return -EIO;
>
> Can you move this to closer to the caller pci_aer_init()?
I could move it there. although pci_cleanup_aer_error_status_regs() is
called directly from pci_restore_state. Of course, aer_cap should be
zero in this case, and we'd still bail out.
I find the intent clearer if we check it here rather than having to do
the mental parsing of the state of aer_cap.
Alex
Powered by blists - more mailing lists