]> git.baikalelectronics.ru Git - kernel.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)
commit6788f8bc13d664dcd6bad2d3cec2763a438ad117
tree73793bb8daf4af48ef88fb0c9f82d5242e081f0d
parent489b6cc0d1e00d3f07ddabd2716a75e896138bea
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: 3ce7841abdc9 ("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