ar71xx: rb493g: fix gpio-mdio accesses under load
authorJonas Gorski <jogo@openwrt.org>
Wed, 17 Jun 2015 10:22:06 +0000 (10:22 +0000)
committerJonas Gorski <jogo@openwrt.org>
Wed, 17 Jun 2015 10:22:06 +0000 (10:22 +0000)
commitc0be01fbdb1e3c5342abe4aa308a8c4fbc91afa9
treef21422ca9e17cabb42e0e653d10e12330fd58a9d
parenta15fe843a204b1ded5a618170e2154682ad4920d
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>
Backport of r46012.

SVN-Revision: 46016
target/linux/ar71xx/patches-3.18/904-phy-mdio-bitbang-prevent-rescheduling-during-command.patch [new file with mode: 0644]