ipq40xx: abort ar40xx probe on missing PHYs
authorDavid Bauer <mail@david-bauer.net>
Sun, 22 Sep 2019 17:15:56 +0000 (19:15 +0200)
committerDavid Bauer <mail@david-bauer.net>
Wed, 25 Sep 2019 20:50:24 +0000 (22:50 +0200)
commita48ed75d6ca590746d24b14ade0778aa2eae70c7
treed7b59d83f26d0f8ce17f6a42861e6fa5b409939d
parent92953ae99f240a0b45ab66defde5f7b8eeb94e35
ipq40xx: abort ar40xx probe on missing PHYs

The ar40xx driver currently panics in case no QCA807x PHY has been
successfully probed. This happens when the external PHY is still
in reset when probing the ar40xx switch driver.

Note that this patch does not fix the root cause, ar40xx_probe now
simply fails instead of causing a kernel panic due to a nullpointer
dereference.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit e2c084cabc2b2a2fffc36aee3e48874f9862c74a)
target/linux/ipq40xx/patches-4.14/706-ar40xx-abort-probe-on-missig-phy.patch [new file with mode: 0644]