ar71xx: fix regression in 74x164 initialization with 4.9
authorFelix Fietkau <nbd@nbd.name>
Thu, 9 Nov 2017 23:51:44 +0000 (00:51 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 9 Nov 2017 23:53:10 +0000 (00:53 +0100)
commit645b163cfcace58d62539bf3b7ed52d9a1033966
treededf0bf25e83b2c94f1e41ebbcf46706c66ff390
parent5cd48280fd78b3cacdab14ca89fc17e58f642e68
ar71xx: fix regression in 74x164 initialization with 4.9

The memcpy of the init data relies on chip->registers to be initialized,
which only happens later in the code. Move this initialization further
down to make it work.
This was breaking PCIe/USB on some MikroTik RouterBoard devices.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ar71xx/patches-4.9/451-gpio-74x164-improve-platform-device-support.patch