summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-lp8841-rtc.c
diff options
context:
space:
mode:
authorCarl Huang <cjhuang@codeaurora.org>2018-10-11 10:55:26 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-28 20:28:19 +0300
commit677273c9a28b4cb2e1fb3613ef49c153e519002b (patch)
tree27033c65c38fbbcfad08a71b0d3e3b4798332d7c /drivers/spi/spi-lp8841-rtc.c
parent7d6d2d93fa0af180eaa99eaeb9557efcc4ae94f4 (diff)
downloadlinux-677273c9a28b4cb2e1fb3613ef49c153e519002b.tar.xz
ath10k: allocate small size dma memory in ath10k_pci_diag_write_mem
[ Upstream commit 0738b4998c6d1caf9ca2447b946709a7278c70f1 ] ath10k_pci_diag_write_mem may allocate big size of the dma memory based on the parameter nbytes. Take firmware diag download as example, the biggest size is about 500K. In some systems, the allocation is likely to fail because it can't acquire such a large contiguous dma memory. The fix is to allocate a small size dma memory. In the loop, driver copies the data to the allocated dma memory and writes to the destination until all the data is written. Tested with QCA6174 PCI with firmware-6.bin_WLAN.RM.4.4.1-00119-QCARMSWP-1, this also affects QCA9377 PCI. Signed-off-by: Carl Huang <cjhuang@codeaurora.org> Reviewed-by: Brian Norris <briannorris@chomium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/spi/spi-lp8841-rtc.c')
0 files changed, 0 insertions, 0 deletions