ar71xx: rb493g: fix gpio-mdio accesses under load
authorjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 17 Jun 2015 09:55:13 +0000 (09:55 +0000)
committerjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 17 Jun 2015 09:55:13 +0000 (09:55 +0000)
commitc6fa8b04a2e8449b2568912228f6e56434eec0fd
tree15fa75aba4c5814f2ae1baf565b3d957b34b69d3
parent5603e83223a4bd5b3c97e7168fa69b3a3e215671
ar71xx: rb493g: fix gpio-mdio accesses under load

It seems that there are maximum timings for mdio accesses that can be
hit when the system is under load and the thread is scheduled during
a read or write access. Since there is no way of knowing if this
happens as there is not even a parity bit, try to work around it
by disabling interrupts during any gpio-mdio accesses.

Performance impact seems to be neglectable, as mdio accesses are not
that often.

Hopefully fixes #19500.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46012 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/patches-3.18/904-phy-mdio-bitbang-prevent-rescheduling-during-command.patch [new file with mode: 0644]