From: Sujith Date: Wed, 14 Jul 2010 11:55:52 +0530 Subject: [ath9k-devel] ath9k_htc: how to read registers? In-Reply-To: <000001cb2319$bf590d30$3e0b2790$@schaefer@tu-dortmund.de> References: <000301cb2265$59d7fe80$0d87fb80$@schaefer@tu-dortmund.de> <000001cb2319$bf590d30$3e0b2790$@schaefer@tu-dortmund.de> Message-ID: <19517.22640.52388.150711@gargle.gargle.HOWL> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Falk-Moritz Schaefer wrote: > The REG_READ macro works fine, but I used it in Rx/Tx routines. This seems to be a bad point of time, because it results in a crash. > > Btw: is there any way to determine if a REG_READ is possible or not? > > Von: ath9k-devel-bounces at venema.h4ckr.net [mailto:ath9k-devel-bounces at venema.h4ckr.net] Im Auftrag von Falk-Moritz Schaefer > Gesendet: Dienstag, 13. Juli 2010 10:28 > An: ath9k-devel at venema.h4ckr.net > Betreff: [ath9k-devel] ath9k_htc: how to read registers? > > Hi all, > > I have a TL-WN721N USB device with AR9271 chipset. I would like to read registers. There is the ?ath9k_regread? function in ?htc_drv_init.c?, but how to use > it? > > I am especially interested in the AR_RCCNT register. Take a look at debug.c, read_file_regval(). You can port the "debug" debugfs file implementation from ath9k to ath9k_htc. Sujith