Re: [PATCH net-next] net: stmmac: platform: use optional clk/reset get APIs

2020-11-11 Thread Jakub Kicinski
On Wed, 11 Nov 2020 10:10:33 +0800 Jisheng Zhang wrote: > On Mon, 9 Nov 2020 11:57:13 -0800 Jakub Kicinski wrote: > > On Mon, 9 Nov 2020 16:09:10 +0800 Jisheng Zhang wrote: > > > @@ -596,14 +595,10 @@ stmmac_probe_config_dt(struct platform_device > > > *pdev, const char **mac) > > >

Re: [PATCH net-next] net: stmmac: platform: use optional clk/reset get APIs

2020-11-10 Thread Jisheng Zhang
On Mon, 9 Nov 2020 11:57:13 -0800 Jakub Kicinski wrote: > > > On Mon, 9 Nov 2020 16:09:10 +0800 Jisheng Zhang wrote: > > @@ -596,14 +595,10 @@ stmmac_probe_config_dt(struct platform_device *pdev, > > const char **mac) > > dev_dbg(&pdev->dev, "PTP rate %d\n", plat->clk_ptp_rate);

Re: [PATCH net-next] net: stmmac: platform: use optional clk/reset get APIs

2020-11-09 Thread Jakub Kicinski
On Mon, 9 Nov 2020 16:09:10 +0800 Jisheng Zhang wrote: > @@ -596,14 +595,10 @@ stmmac_probe_config_dt(struct platform_device *pdev, > const char **mac) > dev_dbg(&pdev->dev, "PTP rate %d\n", plat->clk_ptp_rate); > } > > - plat->stmmac_rst = devm_reset_control_get(&pdev->d

[PATCH net-next] net: stmmac: platform: use optional clk/reset get APIs

2020-11-09 Thread Jisheng Zhang
Use the devm_reset_control_get_optional() and devm_clk_get_optional() rather than open coding them. Signed-off-by: Jisheng Zhang --- .../ethernet/stmicro/stmmac/stmmac_platform.c | 21 +++ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/net/ethernet/stmicro