diff mbox

[01/22] wl1271: Workaround for reference clock setting on boot.

Message ID 1255427279-1224-2-git-send-email-luciano.coelho@nokia.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Luciano Coelho Oct. 13, 2009, 9:47 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/net/wireless/wl12xx/wl1271_init.c b/drivers/net/wireless/wl12xx/wl1271_init.c
index e45af07..9abe062 100644
--- a/drivers/net/wireless/wl12xx/wl1271_init.c
+++ b/drivers/net/wireless/wl12xx/wl1271_init.c
@@ -196,7 +196,14 @@  static int wl1271_init_general_parms(struct wl1271 *wl)
 
 	gen_parms->id = TEST_CMD_INI_FILE_GENERAL_PARAM;
 
-	gen_parms->ref_clk = REF_CLK_38_4_E;
+	/*
+	 * FIXME: The firmware crashes on boot with REF_CLK_38_4_E as clock.
+	 *        according to TI engineers, ref clk 5 is an unofficial
+	 *        38.4 XTAL clock config, which seems to boot the device.
+	 *        Restore correct value once the real problem source is
+	 *        identified.
+	 */
+	gen_parms->ref_clk = 5; /* REF_CLK_38_4_E; */
 	/* FIXME: magic numbers */
 	gen_parms->settling_time = 5;
 	gen_parms->clk_valid_on_wakeup = 0;