diff options
author | Liu Jian <liujian56@huawei.com> | 2022-11-14 12:55:49 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-16 07:22:12 +0300 |
commit | c9b895c6878bdb6789dc1d7af60fd10f4a9f1937 (patch) | |
tree | f2f5cd9705a57c6fedaa38cfc07b20ad7cbc12d8 /net/x25/x25_dev.c | |
parent | 9d45921ee4cb364910097e7d1b7558559c2f9fd2 (diff) | |
download | linux-c9b895c6878bdb6789dc1d7af60fd10f4a9f1937.tar.xz |
net: ag71xx: call phylink_disconnect_phy if ag71xx_hw_enable() fail in ag71xx_open()
If ag71xx_hw_enable() fails, call phylink_disconnect_phy() to clean up.
And if phylink_of_phy_connect() fails, nothing needs to be done.
Compile tested only.
Fixes: 892e09153fa3 ("net: ag71xx: port to phylink")
Signed-off-by: Liu Jian <liujian56@huawei.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/20221114095549.40342-1-liujian56@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/x25/x25_dev.c')
0 files changed, 0 insertions, 0 deletions