]> 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)
commit41a75c51509e91d2631aa8c8e5e7b92c13970906
tree73793bb8daf4af48ef88fb0c9f82d5242e081f0d
parentd50fc6fcfb8761ea16ee7a02cf97a87589064d3a
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: 1259b629c90b ("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