aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wl12xx
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2011-12-13 05:11:26 -0500
committerLuciano Coelho <coelho@ti.com>2012-04-12 01:44:00 -0400
commitf83985bb5f8f0f25d44ab7b108a709a52aa1c5e0 (patch)
tree10671a9822fb6ca2db95d03df2c305810bf2747e /drivers/net/wireless/ti/wl12xx
parent53d67a50cd17aca120dff20eb2a93e1665361688 (diff)
wlcore/wl12xx: turn no-Tx-align quirk into Tx-align
Inverting the quirk flag to indicate Tx-alignment. This aligns it with the similar Rx-side quirk. The call to wl1271_set_block_size() decides whether SDIO block size alignment can be used or not. In case we're using SPI, we can't use the block size alignment, so the function returns false. So we set the quirk when wl1271_set_block_size() returns true and let the wl12xx lower driver unset the bit for wl127x (since it doesn't support this quirk). Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl12xx')
-rw-r--r--drivers/net/wireless/ti/wl12xx/main.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/wireless/ti/wl12xx/main.c b/drivers/net/wireless/ti/wl12xx/main.c
index 6b187d066c51..00ecd2ad495a 100644
--- a/drivers/net/wireless/ti/wl12xx/main.c
+++ b/drivers/net/wireless/ti/wl12xx/main.c
@@ -272,9 +272,10 @@ static int wl12xx_identify_chip(struct wl1271 *wl)
272 wl1271_warning("chip id 0x%x (1271 PG10) support is obsolete", 272 wl1271_warning("chip id 0x%x (1271 PG10) support is obsolete",
273 wl->chip.id); 273 wl->chip.id);
274 274
275 wl->quirks |= WLCORE_QUIRK_NO_BLOCKSIZE_ALIGNMENT | 275 /* clear the alignment quirk, since we don't support it */
276 WLCORE_QUIRK_LEGACY_NVS; 276 wl->quirks &= ~WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN;
277 wl->plt_fw_name = WL127X_PLT_FW_NAME; 277
278 wl->quirks |= WLCORE_QUIRK_LEGACY_NVS;
278 wl->sr_fw_name = WL127X_FW_NAME_SINGLE; 279 wl->sr_fw_name = WL127X_FW_NAME_SINGLE;
279 wl->mr_fw_name = WL127X_FW_NAME_MULTI; 280 wl->mr_fw_name = WL127X_FW_NAME_MULTI;
280 281
@@ -287,8 +288,10 @@ static int wl12xx_identify_chip(struct wl1271 *wl)
287 wl1271_debug(DEBUG_BOOT, "chip id 0x%x (1271 PG20)", 288 wl1271_debug(DEBUG_BOOT, "chip id 0x%x (1271 PG20)",
288 wl->chip.id); 289 wl->chip.id);
289 290
290 wl->quirks |= WLCORE_QUIRK_NO_BLOCKSIZE_ALIGNMENT | 291 /* clear the alignment quirk, since we don't support it */
291 WLCORE_QUIRK_LEGACY_NVS; 292 wl->quirks &= ~WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN;
293
294 wl->quirks |= WLCORE_QUIRK_LEGACY_NVS;
292 wl->plt_fw_name = WL127X_PLT_FW_NAME; 295 wl->plt_fw_name = WL127X_PLT_FW_NAME;
293 wl->sr_fw_name = WL127X_FW_NAME_SINGLE; 296 wl->sr_fw_name = WL127X_FW_NAME_SINGLE;
294 wl->mr_fw_name = WL127X_FW_NAME_MULTI; 297 wl->mr_fw_name = WL127X_FW_NAME_MULTI;