]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore/wl12xx/wl18xx: don't use TX align quirk for wl127x
authorLuciano Coelho <coelho@ti.com>
Mon, 4 Jun 2012 21:02:25 +0000 (00:02 +0300)
committerLuciano Coelho <coelho@ti.com>
Tue, 5 Jun 2012 13:07:16 +0000 (16:07 +0300)
commit7b2a3171b8e0fd61936a95cc904555c77147c0ad
tree32b41a3b7d44344c0253453e912e55db3a416f81
parentdfea7482f2e18183356bb74c53590d8a3a0e6c52
wlcore/wl12xx/wl18xx: don't use TX align quirk for wl127x

Commit 4afc37 (wlcore: reorder identify_chip and get_hw_info) broke
support for wl127x chips.

When we moved the identify_chip operation to an earlier stage (ie. to
the probe function), we broke wl127x support because during HW init we
would set the WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN.

To avoid this, set this quirk in the identify_chip operations and only
force it to be unset if the bus module doesn't support it.  We were
doing the opposite and setting the flag if the bus module supports it.

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wl12xx/main.c
drivers/net/wireless/ti/wl18xx/main.c
drivers/net/wireless/ti/wlcore/main.c