projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b056397
)
ath6kl: don't set hi_refclk_hz if hardware version doesn't need it
author
Kalle Valo
<kvalo@qca.qualcomm.com>
Tue, 17 Jun 2014 09:41:04 +0000
(12:41 +0300)
committer
Kalle Valo
<kvalo@qca.qualcomm.com>
Mon, 14 Jul 2014 13:03:21 +0000
(16:03 +0300)
Needed for ar6004 hw3.0 support.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/init.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath6kl/init.c
b/drivers/net/wireless/ath/ath6kl/init.c
index ed086ead260164496b216fbcfc91d0d17abc3576..a0400a12b59247eeaf881a4f0bd105b4035923ff 100644
(file)
--- a/
drivers/net/wireless/ath/ath6kl/init.c
+++ b/
drivers/net/wireless/ath/ath6kl/init.c
@@
-624,9
+624,12
@@
int ath6kl_configure_target(struct ath6kl *ar)
return status;
/* Configure target refclk_hz */
- status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz, ar->hw.refclk_hz);
- if (status)
- return status;
+ if (ar->hw.refclk_hz != 0) {
+ status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz,
+ ar->hw.refclk_hz);
+ if (status)
+ return status;
+ }
return 0;
}