# Re: \[PATCH\] net: phy: smsc: fix clk error handling

- From: Andrew Lunn \<andrew@lunn.ch\>
- Date: 2021-01-11 14:17:58 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/01/6230137
- Thread: https://ratatoskr.run/netdev/2021/01/6229315/t.md

```text
On Mon, Jan 11, 2021 at 09:59:32AM +0100, Marco Felsch wrote:
> Commit bedd8d78aba3 ("net: phy: smsc: LAN8710/20: add phy refclk in
> support") added the phy clk support. The commit already checks if
> clk_get_optional() throw an error but instead of returning the error it
> ignores it.
> 
> Fixes: bedd8d78aba3 ("net: phy: smsc: LAN8710/20: add phy refclk in support")
> Suggested-by: Jakub Kicinski <kuba@kernel.org>
> Signed-off-by: Marco Felsch <redacted>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
```
