[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1dfe4c62-63d2-e2e0-c7c0-e5cd2922176a@deltatee.com>
Date: Fri, 1 Oct 2021 17:52:53 -0600
From: Logan Gunthorpe <logang@...tatee.com>
To: Kelvin.Cao@...rochip.com, helgaas@...nel.org
Cc: kurt.schwemmer@...rosemi.com, bhelgaas@...gle.com,
kelvincao@...look.com, linux-kernel@...r.kernel.org,
linux-pci@...r.kernel.org
Subject: Re: [PATCH 1/5] PCI/switchtec: Error out MRPC execution when no GAS
access
On 2021-10-01 4:58 p.m., Kelvin.Cao@...rochip.com wrote:
> On Fri, 2021-10-01 at 15:18 -0500, Bjorn Helgaas wrote:
>> Didn't notice this before, but the "check_access()" name is not very
>> helpful because it doesn't give a clue about what the return value
>> means. Does 0 mean no error? Does 1 mean no error? From reading
>> the
>> implementation, I can see that 0 is actually the error case, but I
>> can't tell from the name.
>
> Yes, will improve the naming, like change it to "has_gas_access()" in
> v2 if a v2 patchset is preferred.
I'd keep the GAS name out of the kernel. How about something along the
lines of is_firmware_running()? Maybe a comment for the function would
be good as well.
Logan
Powered by blists - more mailing lists