rsi: buffer full check optimization
authorKarun Eagalapati <karun256@gmail.com>
Thu, 3 Aug 2017 14:29:02 +0000 (19:59 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 8 Aug 2017 11:46:03 +0000 (14:46 +0300)
commitd64dd2a172d875962f8ae35af3bbd9aa1c679039
tree778f69aeeea78cf82da9eac31962c5055c738710
parent23e414cca1f7331189d0165a3874f0b0453bf308
rsi: buffer full check optimization

We get buffer full event from firmware whenever Tx queue is full
Host should stop writing packets after this and resume after
buffer free event.
Buffer status checking is optimized for once in 4 times if
BUFF_FULL condition is not set, otherwise once for every
packet.

Signed-off-by: Karun Eagalapati <karun256@gmail.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c
drivers/net/wireless/rsi/rsi_sdio.h