Home
last modified time | relevance | path

Searched hist:"7 d1f1bf699efc9b0f0e92c910dc667a4511943f5" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/spi/
H A Dspi-pxa2xx-dma.cdiff 7d1f1bf699efc9b0f0e92c910dc667a4511943f5 Thu Mar 24 08:35:42 CDT 2016 Andy Shevchenko <andriy.shevchenko@linux.intel.com> spi: pxa2xx: handle error of pxa2xx_spi_dma_prepare()

If by some reason pxa2xx_spi_dma_prepare() fails we have not to ignore its
error. In such case we abort the transfer and return the error to upper
level.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[Jarkko: Avoid leaking TX descriptors in case RX descriptor allocation
fails. Noted by Robert Jarzmik <robert.jarzmik@free.fr>.
Unmap also buffers in case of failure.]
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
H A Dspi-pxa2xx.cdiff 7d1f1bf699efc9b0f0e92c910dc667a4511943f5 Thu Mar 24 08:35:42 CDT 2016 Andy Shevchenko <andriy.shevchenko@linux.intel.com> spi: pxa2xx: handle error of pxa2xx_spi_dma_prepare()

If by some reason pxa2xx_spi_dma_prepare() fails we have not to ignore its
error. In such case we abort the transfer and return the error to upper
level.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[Jarkko: Avoid leaking TX descriptors in case RX descriptor allocation
fails. Noted by Robert Jarzmik <robert.jarzmik@free.fr>.
Unmap also buffers in case of failure.]
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>