linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath5k: Set TSF fix
@ 2009-03-02 22:29 Alina Friedrichsen
  2009-03-02 22:44 ` Bob Copeland
  0 siblings, 1 reply; 11+ messages in thread
From: Alina Friedrichsen @ 2009-03-02 22:29 UTC (permalink / raw)
  To: linux-wireless, linville, johannes

The old code doesn't work correctly e.g. on newer chipsets like AR5418+=
AR2122 and AR5416+AR2133.

Signed-off-by: Alina Friedrichsen <x-alina@gmx.net>
---
diff -urN wireless-testing.orig/drivers/net/wireless/ath5k/pcu.c wirele=
ss-testing/drivers/net/wireless/ath5k/pcu.c
--- wireless-testing.orig/drivers/net/wireless/ath5k/pcu.c	2009-01-23 2=
2:54:07.000000000 +0100
+++ wireless-testing/drivers/net/wireless/ath5k/pcu.c	2009-01-24 08:47:=
16.000000000 +0100
@@ -657,9 +657,8 @@
 {
 	ATH5K_TRACE(ah->ah_sc);
=20
-	ath5k_hw_reg_write(ah, 0x00000000, AR5K_TSF_L32);
-	ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32);
 	ath5k_hw_reg_write(ah, tsf64 & 0xffffffff, AR5K_TSF_L32);
+	ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32);
 }
=20
 /**

--=20
Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL
f=FCr nur 17,95 =BF/mtl.!* http://dsl.gmx.de/?ac=3DOM.AD.PD003K11308T45=
69a
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH] ath5k: Set TSF fix
@ 2009-01-24  8:12 Alina Friedrichsen
  2009-01-25 16:41 ` Bob Copeland
  0 siblings, 1 reply; 11+ messages in thread
From: Alina Friedrichsen @ 2009-01-24  8:12 UTC (permalink / raw)
  To: linux-wireless, linville, johannes

It seems that some Atheros hardware more like this code for setting the=
 TSF.

Signed-off-by: Alina Friedrichsen <x-alina@gmx.net>
---
diff -urN wireless-testing.orig/drivers/net/wireless/ath5k/pcu.c wirele=
ss-testing/drivers/net/wireless/ath5k/pcu.c
--- wireless-testing.orig/drivers/net/wireless/ath5k/pcu.c	2009-01-23 2=
2:54:07.000000000 +0100
+++ wireless-testing/drivers/net/wireless/ath5k/pcu.c	2009-01-24 08:47:=
16.000000000 +0100
@@ -657,9 +657,8 @@
 {
 	ATH5K_TRACE(ah->ah_sc);
=20
-	ath5k_hw_reg_write(ah, 0x00000000, AR5K_TSF_L32);
-	ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32);
 	ath5k_hw_reg_write(ah, tsf64 & 0xffffffff, AR5K_TSF_L32);
+	ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32);
 }
=20
 /**

--=20
NUR NOCH BIS 31.01.! GMX FreeDSL - Telefonanschluss + DSL=20
f=FCr nur 16,37 EURO/mtl.!* http://dsl.gmx.de/?ac=3DOM.AD.PD003K11308T4=
569a
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-03-03 21:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02 22:29 [PATCH] ath5k: Set TSF fix Alina Friedrichsen
2009-03-02 22:44 ` Bob Copeland
2009-03-02 23:02   ` Alina Friedrichsen
2009-03-02 23:31     ` Bob Copeland
2009-03-03 21:45       ` Alina Friedrichsen
  -- strict thread matches above, loose matches on Subject: below --
2009-01-24  8:12 Alina Friedrichsen
2009-01-25 16:41 ` Bob Copeland
2009-01-25 16:45   ` Johannes Berg
2009-01-25 16:47     ` Bob Copeland
2009-01-26 14:01       ` Alina Friedrichsen
2009-01-27 21:25         ` John W. Linville

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).