From: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
To: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
<linux-wireless@vger.kernel.org>,
Rodriguez Luis <rodrigue@qca.qualcomm.com>,
<ath9k-devel@lists.ath9k.org>,
Rajkumar Manoharan <rmanohar@qca.qualcomm.com>,
<vadivel@qca.qualcomm.com>, <rhu@qca.qualcomm.com>,
Senthil Balasubramanian <senthilb@qca.qualcomm.com>,
"Luis R. Rodriguez" <rodrigue@qca.qualcomm.com>
Subject: Re: [PATCH v3 01/10] ath9k_hw: Add register definitions for WoW support
Date: Tue, 26 Jun 2012 09:58:46 +0530 [thread overview]
Message-ID: <4FE93A7E.9050908@qca.qualcomm.com> (raw)
In-Reply-To: <20456.40340.61005.543469@gargle.gargle.HOWL>
Hi Sujith,
On Monday 25 June 2012 10:49 PM, Sujith Manoharan wrote:
> Mohammed Shafi Shajakhan wrote:
>> From: Mohammed Shafi Shajakhan<mohammed@qca.qualcomm.com>
>>
>> *MAC WoW registers
>>
>> back-off shift, MAC interrupt enable, magic packet enable,
>> pattern match enable, aifs, slot wait period, keep alive
>> frame failure count, beacon fail enable, beacon timeout,
>> keep alive timeout, auto keep alive disable,
>> keep alive fail disable and their corresponding
>> status registers. keep alive frame delay,
>> pattern end/byte offsets, transmit buffers for
>> keep alive frames and storing the user patterns
>>
>> *Power Management Control registers
>>
>> pme_d3cold_vaux, host_pme_enable, aux_pwr_detect,
>> power_state_mask, wow_pme_clear
>
> The commit log could be trimmed to just say "various WoW registers".
>
>> +/* AR_WOW_PATTERN register values */
>> +#define AR_WOW_BACK_OFF_SHIFT(x) ((x& 0xf)<< 28) /* in usecs */
>> +#define AR_WOW_MAC_INTR_EN 0x00040000
>> +#define AR_WOW_MAGIC_EN 0x00010000
>> +#define AR_WOW_PATTERN_EN(x) (x& 0xff)
>> +#define AR_WOW_PAT_FOUND_SHIFT 8
>> +#define AR_WOW_PATTERN_FOUND(x) (x& (0xff<< AR_WOW_PAT_FOUND_SHIFT))
>> +#define AR_WOW_PATTERN_FOUND_MASK ((0xff)<< AR_WOW_PAT_FOUND_SHIFT)
>> +#define AR_WOW_MAGIC_PAT_FOUND 0x00020000
>> +#define AR_WOW_MAC_INTR 0x00080000
>> +#define AR_WOW_KEEP_ALIVE_FAIL 0x00100000
>> +#define AR_WOW_BEACON_FAIL 0x00200000
>> +
>> +#define AR_WOW_STATUS(x) (x& (AR_WOW_PATTERN_FOUND_MASK | \
>> + AR_WOW_MAGIC_PAT_FOUND | \
>> + AR_WOW_KEEP_ALIVE_FAIL | \
>> + AR_WOW_BEACON_FAIL))
>> +#define AR_WOW_CLEAR_EVENTS(x) (x& ~(AR_WOW_PATTERN_EN(0xff) | \
>> + AR_WOW_MAGIC_EN | \
>> + AR_WOW_MAC_INTR_EN | \
>> + AR_WOW_BEACON_FAIL | \
>> + AR_WOW_KEEP_ALIVE_FAIL))
>> +
>
> Indentation is off in many places, please fix it.
>
thanks, i will check this out.
--
thanks,
shafi
next prev parent reply other threads:[~2012-06-26 4:28 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 14:12 [PATCH v3 00/10] Add support for WOW in ath9k Mohammed Shafi Shajakhan
2012-06-25 14:12 ` [PATCH v3 01/10] ath9k_hw: Add register definitions for WoW support Mohammed Shafi Shajakhan
2012-06-25 17:19 ` Sujith Manoharan
2012-06-26 4:28 ` Mohammed Shafi Shajakhan [this message]
2012-07-07 11:46 ` Mohammed Shafi
2012-06-25 14:12 ` [PATCH v3 02/10] ath9k: Add definitions and structures to support WoW Mohammed Shafi Shajakhan
2012-06-25 14:12 ` [PATCH v3 03/10] ath9k_hw: Add WoW hardware capability flags Mohammed Shafi Shajakhan
2012-06-25 14:12 ` [PATCH v3 04/10] ath9k_hw: advertise WoW support for capable chipsets Mohammed Shafi Shajakhan
2012-06-25 17:24 ` Sujith Manoharan
2012-06-26 4:34 ` Mohammed Shafi Shajakhan
2012-06-25 14:12 ` [PATCH v3 05/10] ath9k: advertise supported WoW flags to upper layer Mohammed Shafi Shajakhan
2012-06-25 14:12 ` [PATCH v3 06/10] ath9k_hw: INI changes for WoW for AR9002 chipsets Mohammed Shafi Shajakhan
2012-06-25 14:12 ` [PATCH v3 07/10] ath9k_hw: Add hardware code for WoW Mohammed Shafi Shajakhan
2012-06-25 18:44 ` Sujith Manoharan
2012-06-26 4:55 ` Mohammed Shafi Shajakhan
2012-06-25 14:12 ` [PATCH v3 08/10] ath: Add Wake-on-Wireless debug mask Mohammed Shafi Shajakhan
2012-06-25 14:12 ` [PATCH v3 09/10] ath9k: Add WoW related mac80211 callbacks Mohammed Shafi Shajakhan
2012-06-25 19:21 ` Sujith Manoharan
2012-06-26 5:24 ` Mohammed Shafi Shajakhan
2012-06-26 6:50 ` Johannes Berg
2012-06-26 7:28 ` Mohammed Shafi Shajakhan
2012-06-25 14:12 ` [PATCH v3 10/10] ath9k: do not disable hardware while wow is enabled Mohammed Shafi Shajakhan
2012-07-06 19:35 ` [PATCH v3 00/10] Add support for WOW in ath9k John W. Linville
2012-07-07 9:30 ` Mohammed Shafi Shajakhan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FE93A7E.9050908@qca.qualcomm.com \
--to=mohammed@qca.qualcomm.com \
--cc=ath9k-devel@lists.ath9k.org \
--cc=c_manoha@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=rhu@qca.qualcomm.com \
--cc=rmanohar@qca.qualcomm.com \
--cc=rodrigue@qca.qualcomm.com \
--cc=senthilb@qca.qualcomm.com \
--cc=vadivel@qca.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).