]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arge_mdio: fix barriers; correctly check MII indicator register.
authorAdrian Chadd <adrian@FreeBSD.org>
Fri, 30 Oct 2015 23:59:52 +0000 (23:59 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Fri, 30 Oct 2015 23:59:52 +0000 (23:59 +0000)
commitf17acb5fbe6ff71043d0096502ad66080b79bd13
tree5cc6c833bebfa42c71ffe022ab72991c80feabd5
parent78e1370bbc3dc97f567dd355b9f612cb6c1268e6
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
sys/mips/atheros/if_arge.c