]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add some debugging code to print out if registers are touched whilst the
authoradrian <adrian@FreeBSD.org>
Thu, 20 Mar 2014 05:10:17 +0000 (05:10 +0000)
committeradrian <adrian@FreeBSD.org>
Thu, 20 Mar 2014 05:10:17 +0000 (05:10 +0000)
commit41d35ab20283515e91ccb55bd26b9cea24f75f8e
tree903d12817a06261ec943a7eb3e88f56cb9410c8b
parent91585205976a530182e788c76eb47eb581659281
Add some debugging code to print out if registers are touched whilst the
device is asleep.

This doesn't avoid logging errors for things that are actually OK to
access whilst the chip is asleep (eg, the RTC registers (0x7000->0x70ff
on the AR5416 and later.)

But, this is a pretty good indicator if things are accessed incorrectly.

Tested:

* AR5416, STA
sys/dev/ath/ah_osdep.c