]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: rework posting pci rx buffers
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 22 Aug 2014 12:33:14 +0000 (14:33 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 25 Aug 2014 08:31:47 +0000 (11:31 +0300)
commita599da32fe106c409e495b55f062c665d9ee3998
treef3603b906f383d3c33908ba32aafef90fd56db2e
parent00871f72d20d9fd83ae03ef1745940737e585d07
ath10k: rework posting pci rx buffers

It was possible on a host system running low on
memory to end up with no rx buffers on pci pipes.

This makes the driver more robust as it won't fail
to start if it can't allocate all rx buffers right
away. If it is fatal then upper layers will notice
trouble anyway.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/ce.c
drivers/net/wireless/ath/ath10k/ce.h
drivers/net/wireless/ath/ath10k/pci.c
drivers/net/wireless/ath/ath10k/pci.h