apm821xx: MR24: fix ethernet phy detection on the MR24
authorChristian Lamparter <chunkeey@googlemail.com>
Wed, 7 Jun 2017 23:32:26 +0000 (23:32 +0000)
committerMathias Kresin <dev@kresin.me>
Sat, 24 Jun 2017 20:36:38 +0000 (22:36 +0200)
commit6adc757097ca966796ac213ba7f888d59b651661
tree5f6278096483ddb74c5e49f00c90f96b876fef98
parent4482063c34f6f6885de548d0b40f9ed28d00729b
apm821xx: MR24: fix ethernet phy detection on the MR24

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
This patch fixes a problem where the AR8035 PHY can't be
detected on the Cisco Meraki MR24, when the ethernet cable
is not connected during boot.

Russell Senior reported:
|This appears to be a problem during probing of the AR8035
|phy chip. When ethernet has no link, the phy detection fails,
|and eth0 is not created. Plugging ethernet later has no effect,
|because there is no interface as far as the kernel is
|concerned. The relevant part of the boot log looks like this:
|
|[    0.876611] /plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
|[    0.882532] /plb/opb/ethernet@ef600c00: reset timeout
|[    0.888546] /plb/opb/ethernet@ef600c00: can't find PHY!
(<https://bugs.lede-project.org/index.php?do=details&task_id=687>)

Fixes FS#687
Cc: Chris Blake <chrisrblake93@gmail.com>
Reported-by: Russell Senior <russell@personaltelco.net>
Fixes: 23fbb5a87c56e98 ("emac: Fix EMAC soft reset on 460EX/GT")
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
target/linux/apm821xx/patches-4.9/701-powerpc_ibm_apm82181_phyclk_fix.patch
target/linux/apm821xx/patches-4.9/702-powerpc_ibm_phy_add_dt_parser.patch
target/linux/apm821xx/patches-4.9/703-net-emac-fix-reset-timeout-with-AR8035-phy.patch [new file with mode: 0644]