[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e01aa311ea176d182610059f10d900bda7ff93ec.camel@wdc.com>
Date: Sun, 25 May 2025 02:38:35 +0000
From: Wilfred Mallawa <wilfred.mallawa@....com>
To: "cassel@...nel.org" <cassel@...nel.org>,
"manivannan.sadhasivam@...aro.org" <manivannan.sadhasivam@...aro.org>
CC: "lukas@...ner.de" <lukas@...ner.de>, "kw@...ux.com" <kw@...ux.com>,
"bhelgaas@...gle.com" <bhelgaas@...gle.com>, "linux-arm-msm@...r.kernel.org"
<linux-arm-msm@...r.kernel.org>, "linux-pci@...r.kernel.org"
<linux-pci@...r.kernel.org>, "lpieralisi@...nel.org" <lpieralisi@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/2] PCI: Rename host_bridge::reset_slot() to
host_bridge::reset_root_port()
On Sat, 2025-05-24 at 22:57 +0200, Niklas Cassel wrote:
> On Sun, May 25, 2025 at 12:23:04AM +0530, Manivannan Sadhasivam
> wrote:
> > The callback is supposed to reset the root port, hence it should be
> > named
> > as 'reset_root_port'. This also warrants renaming the rest of the
> > instances
> > of 'reset slot' as 'reset root port' in the drivers.
> >
> > Suggested-by: Lukas Wunner <lukas@...ner.de>
> > Signed-off-by: Manivannan Sadhasivam
> > <manivannan.sadhasivam@...aro.org>
> > ---
> > drivers/pci/controller/dwc/pcie-dw-rockchip.c | 8 ++++----
> > drivers/pci/controller/dwc/pcie-qcom.c | 8 ++++----
> > drivers/pci/controller/pci-host-common.c | 20 +++++++++------
> > ----
> > drivers/pci/pci.c | 6 +++---
> > include/linux/pci.h | 2 +-
> > 5 files changed, 22 insertions(+), 22 deletions(-)
> >
> > diff --git a/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> > b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> > index 193e97adf228..0cc7186758ce 100644
> > --- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> > +++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> > @@ -85,7 +85,7 @@ struct rockchip_pcie_of_data {
> > const struct pci_epc_features *epc_features;
> > };
> >
> > -static int rockchip_pcie_rc_reset_slot(struct pci_host_bridge
> > *bridge,
> > +static int rockchip_pcie_rc_reset_root_port(struct pci_host_bridge
> > *bridge,
> > struct pci_dev *pdev);
> >
> > static int rockchip_pcie_readl_apb(struct rockchip_pcie *rockchip,
> > u32 reg)
> > @@ -261,7 +261,7 @@ static int rockchip_pcie_host_init(struct
> > dw_pcie_rp *pp)
> > rockchip);
> >
> > rockchip_pcie_enable_l0s(pci);
> > - pp->bridge->reset_slot = rockchip_pcie_rc_reset_slot;
> > + pp->bridge->reset_root_port = rockchip_pcie_rc_reset_slot;
>
> You just renamed the function to rockchip_pcie_rc_reset_root_port(),
> but you seem to use the old name here, so I would guess that this
> will
> not compile.
>
> With the function pointer renamed, this patch looks good to me:
> Reviewed-by: Niklas Cassel <cassel@...nel.org>
>
Reviewed-by: Wilfred Mallawa <wilfred.mallawa@....com>
>
Powered by blists - more mailing lists