net: pcs: xpcs: Use devm_clk_get_optional
Subsystems (3)
PATCH 1/1 net: pcs: xpcs: Use devm_clk_get_optional
Synopsys DesignWare XPCS CSR clock is optional,
so it is better to use devm_clk_get_optional
instead of devm_clk_get.
--- drivers/net/pcs/pcs-xpcs-plat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/pcs/pcs-xpcs-plat.c +1 -1
@@ -280,7 +280,7 @@ static int xpcs_plat_init_clk(struct dw_xpcs_plat *pxpcs)struct device *dev = &pxpcs->pdev->dev;int ret; - pxpcs->cclk =devm_clk_get (dev,"csr" ); + pxpcs->cclk =devm_clk_get_optional (dev,"csr" );if (IS_ERR (pxpcs->cclk))return dev_err_probe (dev,PTR_ERR (pxpcs->cclk),"Failed to get CSR clock\n" );
Signature · 1 line
2.43.0
Quoted 5 lines · Jack Ping CHNG
Synopsys DesignWare XPCS CSR clock is optional,
so it is better to usedevm_clk_get_optional
instead ofdevm_clk_get.Signed-off-by Jack Ping CHNG <[email protected]>
Please read:
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
You need to indicate what tree the patch is for in the Subject: line.
Andrew
Quoted 31 lines
-----Original Message-----
From: Andrew Lunn <[email protected]>
Sent: Monday, 14 July 2025 11:22 am
To: Jack Ping Chng <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Yi xin Zhu <[email protected]>; Suresh Nagaraj <[email protected]>
Subject: Re: [PATCH] net: pcs: xpcs: Usedevm_clk_get_optionalThis email was sent from outside of MaxLinear.
Quoted 4 lines · Jack Ping CHNG
Synopsys DesignWare XPCS CSR clock is optional, so it is better to use
devm_clk_get_optionalinstead ofdevm_clk_get.Signed-off-by Jack Ping CHNG <[email protected]>Please read:
https://www.ker/
nel.org%2Fdoc%2Fhtml%2Flatest%2Fprocess%2Fmaintainer- netdev.html&data=05%7C02%7Cjchng%40maxlinear.com%7C886c34c316bd44 46ca9108ddc285a138%7Cdac2800513e041b882807663835f2b1d%7C0%7C0%7 C638880601486449721%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOn RydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3 D%3D%7C0%7C%7C%7C&sdata=g%2BS4nOWPMRXUHR01haZGoySgGTFr%2Ba NlzI9r0v%2B%2FjLc%3D&reserved=0
Quoted 5 lines
You need to indicate what tree the patch is for in the Subject: line.
Reviewed-by Andrew Lunn <[email protected]>Andrew
Thanks, I will do that.