[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKgT0Udc3e1fJG4wGWrQUj+YmO=ntR7-7snp7vVBfpO-GaCHvQ@mail.gmail.com>
Date: Mon, 8 Feb 2021 09:06:05 -0800
From: Alexander Duyck <alexander.duyck@...il.com>
To: Heiner Kallweit <hkallweit1@...il.com>
Cc: Raju Rangoju <rajur@...lsio.com>, Jakub Kicinski <kuba@...nel.org>,
David Miller <davem@...emloft.net>,
Bjorn Helgaas <bhelgaas@...gle.com>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next v2 1/3] cxgb4: remove unused vpd_cap_addr
On Fri, Feb 5, 2021 at 2:29 PM Heiner Kallweit <hkallweit1@...il.com> wrote:
>
> Supposedly this is a leftover from T3 driver heritage. cxgb4 uses the
> PCI core VPD access code that handles detection of VPD capabilities.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@...il.com>
Instead of starting with the "Supposedly this is" it might be better
to word it along the lines of "This is likely". The "Supposedly" makes
it sound like you heard this as a rumor from somebody else.
Other than that nit about the description the change looks good to me.
Reviewed-by: Alexander Duyck <alexanderduyck@...com>
> ---
> drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 -
> drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 --
> 2 files changed, 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
> index 8e681ce72..314f8d806 100644
> --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
> +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
> @@ -414,7 +414,6 @@ struct pf_resources {
> };
>
> struct pci_params {
> - unsigned int vpd_cap_addr;
> unsigned char speed;
> unsigned char width;
> };
> diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
> index 9f1965c80..6264bc66a 100644
> --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
> +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
> @@ -3201,8 +3201,6 @@ static void cxgb4_mgmt_fill_vf_station_mac_addr(struct adapter *adap)
> int err;
> u8 *na;
>
> - adap->params.pci.vpd_cap_addr = pci_find_capability(adap->pdev,
> - PCI_CAP_ID_VPD);
> err = t4_get_raw_vpd_params(adap, &adap->params.vpd);
> if (err)
> return;
> --
> 2.30.0
>
>
Powered by blists - more mailing lists