* [PATCH linux-next v1] PCI: rockchip: Improve error handling in clock return value
@ 2025-01-06 15:30 Anand Moon
2025-01-15 17:40 ` Manivannan Sadhasivam
0 siblings, 1 reply; 4+ messages in thread
From: Anand Moon @ 2025-01-06 15:30 UTC (permalink / raw)
To: Shawn Lin, Lorenzo Pieralisi, Krzysztof Wilczyński,
Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas, Heiko Stuebner
Cc: Dan Carpenter, linux-pci, linux-rockchip, linux-arm-kernel,
linux-kernel
Updates the error message to include the actual return value of
devm_clk_bulk_get_all, which provides more context for debugging
and troubleshooting the root cause of clock retrieval failures.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202501040409.SUV09R80-lkp@intel.com/
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
drivers/pci/controller/pcie-rockchip.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/pci/controller/pcie-rockchip.c b/drivers/pci/controller/pcie-rockchip.c
index fea867c24f75..ca6163f9d2dd 100644
--- a/drivers/pci/controller/pcie-rockchip.c
+++ b/drivers/pci/controller/pcie-rockchip.c
@@ -99,7 +99,8 @@ int rockchip_pcie_parse_dt(struct rockchip_pcie *rockchip)
rockchip->num_clks = devm_clk_bulk_get_all(dev, &rockchip->clks);
if (rockchip->num_clks < 0)
- return dev_err_probe(dev, err, "failed to get clocks\n");
+ return dev_err_probe(dev, rockchip->num_clks,
+ "failed to get clocks\n");
return 0;
}
--
2.47.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH linux-next v1] PCI: rockchip: Improve error handling in clock return value
2025-01-06 15:30 [PATCH linux-next v1] PCI: rockchip: Improve error handling in clock return value Anand Moon
@ 2025-01-15 17:40 ` Manivannan Sadhasivam
2025-01-15 17:48 ` Bjorn Helgaas
0 siblings, 1 reply; 4+ messages in thread
From: Manivannan Sadhasivam @ 2025-01-15 17:40 UTC (permalink / raw)
To: Anand Moon
Cc: Shawn Lin, Lorenzo Pieralisi, Krzysztof Wilczyński,
Rob Herring, Bjorn Helgaas, Heiko Stuebner, Dan Carpenter,
linux-pci, linux-rockchip, linux-arm-kernel, linux-kernel
On Mon, Jan 06, 2025 at 09:00:38PM +0530, Anand Moon wrote:
Subject should include the word 'fix' not 'improve'
> Updates the error message to include the actual return value of
s/Updates/Update (imperative form)
> devm_clk_bulk_get_all, which provides more context for debugging
> and troubleshooting the root cause of clock retrieval failures.
>
Btw, it is not just updating the error message, it also returns the actual error
code.
- Mani
> Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> Closes: https://lore.kernel.org/r/202501040409.SUV09R80-lkp@intel.com/
> Signed-off-by: Anand Moon <linux.amoon@gmail.com>
> ---
> drivers/pci/controller/pcie-rockchip.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pci/controller/pcie-rockchip.c b/drivers/pci/controller/pcie-rockchip.c
> index fea867c24f75..ca6163f9d2dd 100644
> --- a/drivers/pci/controller/pcie-rockchip.c
> +++ b/drivers/pci/controller/pcie-rockchip.c
> @@ -99,7 +99,8 @@ int rockchip_pcie_parse_dt(struct rockchip_pcie *rockchip)
>
> rockchip->num_clks = devm_clk_bulk_get_all(dev, &rockchip->clks);
> if (rockchip->num_clks < 0)
> - return dev_err_probe(dev, err, "failed to get clocks\n");
> + return dev_err_probe(dev, rockchip->num_clks,
> + "failed to get clocks\n");
>
> return 0;
> }
> --
> 2.47.1
>
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH linux-next v1] PCI: rockchip: Improve error handling in clock return value
2025-01-15 17:40 ` Manivannan Sadhasivam
@ 2025-01-15 17:48 ` Bjorn Helgaas
2025-01-15 18:22 ` Anand Moon
0 siblings, 1 reply; 4+ messages in thread
From: Bjorn Helgaas @ 2025-01-15 17:48 UTC (permalink / raw)
To: Manivannan Sadhasivam
Cc: Anand Moon, Shawn Lin, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Heiko Stuebner, Dan Carpenter, linux-pci, linux-rockchip,
linux-arm-kernel, linux-kernel
On Wed, Jan 15, 2025 at 11:10:12PM +0530, Manivannan Sadhasivam wrote:
> On Mon, Jan 06, 2025 at 09:00:38PM +0530, Anand Moon wrote:
>
> Subject should include the word 'fix' not 'improve'
>
> > Updates the error message to include the actual return value of
>
> s/Updates/Update (imperative form)
>
> > devm_clk_bulk_get_all, which provides more context for debugging
> > and troubleshooting the root cause of clock retrieval failures.
>
> Btw, it is not just updating the error message, it also returns the
> actual error code.
Already squashed into
https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?id=abdd4c8ea7d7,
sorry I didn't mention that here.
> > Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> > Closes: https://lore.kernel.org/r/202501040409.SUV09R80-lkp@intel.com/
> > Signed-off-by: Anand Moon <linux.amoon@gmail.com>
> > ---
> > drivers/pci/controller/pcie-rockchip.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/pci/controller/pcie-rockchip.c b/drivers/pci/controller/pcie-rockchip.c
> > index fea867c24f75..ca6163f9d2dd 100644
> > --- a/drivers/pci/controller/pcie-rockchip.c
> > +++ b/drivers/pci/controller/pcie-rockchip.c
> > @@ -99,7 +99,8 @@ int rockchip_pcie_parse_dt(struct rockchip_pcie *rockchip)
> >
> > rockchip->num_clks = devm_clk_bulk_get_all(dev, &rockchip->clks);
> > if (rockchip->num_clks < 0)
> > - return dev_err_probe(dev, err, "failed to get clocks\n");
> > + return dev_err_probe(dev, rockchip->num_clks,
> > + "failed to get clocks\n");
> >
> > return 0;
> > }
> > --
> > 2.47.1
> >
>
> --
> மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH linux-next v1] PCI: rockchip: Improve error handling in clock return value
2025-01-15 17:48 ` Bjorn Helgaas
@ 2025-01-15 18:22 ` Anand Moon
0 siblings, 0 replies; 4+ messages in thread
From: Anand Moon @ 2025-01-15 18:22 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Manivannan Sadhasivam, Shawn Lin, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Heiko Stuebner, Dan Carpenter, linux-pci, linux-rockchip,
linux-arm-kernel, linux-kernel
Hi Mani/ Bjon,
On Wed, 15 Jan 2025 at 23:18, Bjorn Helgaas <helgaas@kernel.org> wrote:
>
> On Wed, Jan 15, 2025 at 11:10:12PM +0530, Manivannan Sadhasivam wrote:
> > On Mon, Jan 06, 2025 at 09:00:38PM +0530, Anand Moon wrote:
> >
> > Subject should include the word 'fix' not 'improve'
> >
> > > Updates the error message to include the actual return value of
> >
> > s/Updates/Update (imperative form)
> >
> > > devm_clk_bulk_get_all, which provides more context for debugging
> > > and troubleshooting the root cause of clock retrieval failures.
> >
> > Btw, it is not just updating the error message, it also returns the
> > actual error code.
correct.
>
> Already squashed into
> https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?id=abdd4c8ea7d7,
> sorry I didn't mention that here.
>
Thanks,
I will focus on improving my communication skills and delivering impactful
commit messages in the future.
Thank
-Anand
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-01-15 18:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-06 15:30 [PATCH linux-next v1] PCI: rockchip: Improve error handling in clock return value Anand Moon
2025-01-15 17:40 ` Manivannan Sadhasivam
2025-01-15 17:48 ` Bjorn Helgaas
2025-01-15 18:22 ` Anand Moon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).