Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194379
b: refs/heads/master
c: 1f3f061
h: refs/heads/master
i:
  194377: 9e0a693
  194375: 1074645
v: v3
  • Loading branch information
Senthil Balasubramanian authored and John W. Linville committed Apr 16, 2010
1 parent 9c9d953 commit 6352f15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ad7b806065f5791696a1c9a4c2665f6421cbbf05
refs/heads/master: 1f3f06184006dff1ec439c56dcee9a99ed93e985
13 changes: 10 additions & 3 deletions trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,25 @@ static void ath9k_hw_disablepcie(struct ath_hw *ah)
REG_WRITE(ah, AR_PCIE_SERDES2, 0x00000000);
}

/* This should work for all families including legacy */
static bool ath9k_hw_chip_test(struct ath_hw *ah)
{
struct ath_common *common = ath9k_hw_common(ah);
u32 regAddr[2] = { AR_STA_ID0, AR_PHY_BASE + (8 << 2) };
u32 regAddr[2] = { AR_STA_ID0 };
u32 regHold[2];
u32 patternData[4] = { 0x55555555,
0xaaaaaaaa,
0x66666666,
0x99999999 };
int i, j;
int i, j, loop_max;

for (i = 0; i < 2; i++) {
if (!AR_SREV_9300_20_OR_LATER(ah)) {
loop_max = 2;
regAddr[1] = AR_PHY_BASE + (8 << 2);
} else
loop_max = 1;

for (i = 0; i < loop_max; i++) {
u32 addr = regAddr[i];
u32 wrData, rdData;

Expand Down

0 comments on commit 6352f15

Please sign in to comment.