From: Mark Brown Date: Thu, 18 Feb 2016 14:10:59 +0000 (+0000) Subject: Merge tag 'spi-fix-v4.5-rc4' into spi-imx X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=499e49b6d3a4c2ba21c175aa43a7d296724643c3;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git Merge tag 'spi-fix-v4.5-rc4' into spi-imx spi: Fixes for v4.5 A small clutch of driver specific fixes. The OMAP one is a bit worrying since it seems to be triggered by some changes in the runtime PM core code and I suspect there's other drivers across that are going to be using the same pattern outside of OMAP but nothing seems to be coming up in the testing people are doing. --- 499e49b6d3a4c2ba21c175aa43a7d296724643c3 diff --cc drivers/spi/spi-imx.c index 7ac206b8cc93,6a4ff27f4357..0313293323cc --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@@ -1006,8 -1008,12 +1006,10 @@@ static int spi_imx_dma_transfer(struct return ret; - no_dma: + rx_nodma: + dmaengine_terminate_all(master->dma_tx); + tx_nodma: - pr_warn_once("%s %s: DMA not available, falling back to PIO\n", - dev_driver_string(&master->dev), - dev_name(&master->dev)); + dev_warn_once(spi_imx->dev, "DMA not available, falling back to PIO\n"); return -EAGAIN; }