]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
staging: octeon: repair "fixed-link" support
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Fri, 16 Oct 2020 10:18:57 +0000 (12:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2020 12:18:34 +0000 (13:18 +0100)
commit179f5dc36b0a1aa31538d7d8823deb65c39847b3
tree2af8fbad06e73a632d127e9ea5bbf5571ce3369b
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
staging: octeon: repair "fixed-link" support

The PHYs must be registered once in device probe function, not in device
open callback because it's only possible to register them once.

Fixes: a25e278020bf ("staging: octeon: support fixed-link phys")
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201016101858.11374-1-alexander.sverdlin@nokia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-mdio.c
drivers/staging/octeon/ethernet.c