]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: usb: asix: ax88772: move embedded PHY detection as early as possible
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 23 Aug 2021 07:37:47 +0000 (09:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Aug 2021 11:39:41 +0000 (12:39 +0100)
commit7a141e64cf14099d84e530db0e86fcb2c489e341
tree73793bb8daf4af48ef88fb0c9f82d5242e081f0d
parent359f4cdd7d78fdf8c098713b05fee950a730f131
net: usb: asix: ax88772: move embedded PHY detection as early as possible

Some HW revisions need additional MAC configuration before the embedded PHY
can be enabled. If this is not done, we won't be able to get response
from the internal PHY.

This issue was detected on chipcode == AX_AX88772_CHIPCODE variant,
where ax88772_hw_reset() was executed with missing embd_phy flag.

Fixes: e532a096be0e ("net: usb: asix: ax88772: add phylib support")
Reported-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix.h
drivers/net/usb/asix_devices.c