adrian be517d7ef4 arge_mdio: fix barriers; correctly check MII indicator register.
* use barriers in a slightly better fashion.  You can blame this
  glass of whiskey on putting barriers in the wrong spot.  Grr adrian.

* steal/rewrite the mdio busy check from ag7100 from openwrt and
  refactor the existing code out.  This is .. more correct.

This seems to fix the boot-to-boot variation that I've been seeing
and it quietens the switch port status flapping.

Tested:

* QCA9558 SoC (AP135.)

Obtained from:	Linux OpenWRT
2015-10-30 23:59:52 +00:00
..
2015-01-05 02:00:41 +00:00
2015-01-05 01:59:44 +00:00
2015-03-02 01:23:59 +00:00
2015-10-30 23:57:20 +00:00
2015-07-03 07:00:24 +00:00