Zhang Run 6eea3527e6 net: usb: asix: ax88772_bind return error when hw_reset fail
The ax88772_bind() should return error code immediately when the PHY
was not reset properly through ax88772a_hw_reset().
Otherwise, The asix_get_phyid() will block when get the PHY
Identifier from the PHYSID1 MII registers through asix_mdio_read()
due to the PHY isn't ready. Furthermore, it will produce a lot of
error message cause system crash.As follows:
asix 1-1:1.0 (unnamed net_device) (uninitialized): Failed to write
 reg index 0x0000: -71
asix 1-1:1.0 (unnamed net_device) (uninitialized): Failed to send
 software reset: ffffffb9
asix 1-1:1.0 (unnamed net_device) (uninitialized): Failed to write
 reg index 0x0000: -71
asix 1-1:1.0 (unnamed net_device) (uninitialized): Failed to enable
 software MII access
asix 1-1:1.0 (unnamed net_device) (uninitialized): Failed to read
 reg index 0x0000: -71
asix 1-1:1.0 (unnamed net_device) (uninitialized): Failed to write
 reg index 0x0000: -71
asix 1-1:1.0 (unnamed net_device) (uninitialized): Failed to enable
 software MII access
asix 1-1:1.0 (unnamed net_device) (uninitialized): Failed to read
 reg index 0x0000: -71
...

Signed-off-by: Zhang Run <zhang.run@zte.com.cn>
Reviewed-by: Yang Wei <yang.wei9@zte.com.cn>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-01-24 22:33:11 -08:00
..
2019-01-20 10:24:30 +12:00
2019-01-19 07:17:19 +12:00
2019-01-20 09:12:50 +12:00
2018-12-31 17:32:35 -08:00
2018-12-29 08:20:44 -07:00
2019-01-05 11:28:39 -08:00
2019-01-19 05:46:00 +12:00
2018-12-28 20:54:57 -08:00
2019-01-11 00:15:04 +01:00
2019-01-15 06:24:36 +12:00
2019-01-18 17:17:20 +12:00
2019-01-05 11:30:37 -08:00
2019-01-15 06:24:36 +12:00
2019-01-15 06:26:28 +12:00
2019-01-20 09:12:50 +12:00
2019-01-19 07:26:16 +12:00
2019-01-05 11:23:17 -08:00
2018-12-29 13:03:29 -08:00
2019-01-01 13:24:31 -08:00
2019-01-20 09:15:04 +12:00
2019-01-14 05:49:35 +12:00
2018-12-31 13:06:30 -08:00
2019-01-14 05:47:48 +12:00
2018-12-28 20:54:57 -08:00
2019-01-14 05:45:28 +12:00
2019-01-19 05:43:05 +12:00
2019-01-19 05:53:41 +12:00
2018-12-29 13:40:29 -08:00