ipq40xx: fix phy interrupt setting
authorChristian Lamparter <chunkeey@gmail.com>
Sat, 9 Mar 2019 18:05:17 +0000 (19:05 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Wed, 13 Mar 2019 15:25:34 +0000 (16:25 +0100)
commit784f2e73df750e79759a80b21e09094262359f80
treee3e86cb17d8645ac42c5d0af9abc8ccb42bfbbf0
parent39092ad9e93da633118cd5aaa2f1a636944339f1
ipq40xx: fix phy interrupt setting

This patch fixes a problem that was discovered during DSA
development. On the MR33, the link change events from the
external AR8035-PHY would never make it to the qca8k driver.

The issue turned out to be a misplaced memcpy that was copying
over the zero-initialized irq table, when it should have been
set to PHY_POLL. Hence this patch moves the memcpy after the
array has been initialized.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/ipq40xx/patches-4.14/700-net-add-qualcomm-mdio-and-phy.patch
target/linux/ipq40xx/patches-4.19/700-net-add-qualcomm-mdio-and-phy.patch