From: Ido Yariv Date: Tue, 1 Mar 2011 13:14:39 +0000 (+0200) Subject: wl12xx: Do end-of-transactions transfers only if needed X-Git-Tag: v2.6.39-rc1~468^2~88^2^2~47^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=606ea9fa0b2c01ffafb6beae92ea8e2b1473520b;p=pandora-kernel.git wl12xx: Do end-of-transactions transfers only if needed On newer hardware revisions, there is no need to write the host's counter at the end of a RX transaction. The same applies to writing the number of packets at the end of a TX transaction. It is generally a good idea to avoid unnecessary SDIO/SPI transfers. Throughput and CPU usage are improved when avoiding these. Send the host's RX counter and the TX packet count only if needed, based on the hardware revision. [Changed WL12XX_QUIRK_END_OF_TRANSACTION to use BIT(0) -- Luca] Signed-off-by: Ido Yariv Signed-off-by: Ohad Ben-Cohen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho --- Reading git-diff-tree failed