diff mbox series

[v5,2/2] spi: pxa2xx: Debug print DMA burst size

Message ID 20190319154843.74684-3-andriy.shevchenko@linux.intel.com (mailing list archive)
State Mainlined, archived
Commit 000c6af41775910007463d9a18f9e79fc0f9c8f4
Headers show
Series spi: pxa2xx: Adjust DMA burst size per platform | expand

Commit Message

Andy Shevchenko March 19, 2019, 3:48 p.m. UTC
It's useful during debug to see what DMA burst size is.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/spi/spi-pxa2xx.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jarkko Nikula March 20, 2019, 7:19 a.m. UTC | #1
On 3/19/19 5:48 PM, Andy Shevchenko wrote:
> It's useful during debug to see what DMA burst size is.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>   drivers/spi/spi-pxa2xx.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
diff mbox series

Patch

diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index 461c6b796b8f..f008836f7e27 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -1333,6 +1333,9 @@  static int setup(struct spi_device *spi)
 			dev_warn(&spi->dev,
 				 "in setup: DMA burst size reduced to match bits_per_word\n");
 		}
+		dev_dbg(&spi->dev,
+			"in setup: DMA burst size set to %u\n",
+			chip->dma_burst_size);
 	}
 
 	switch (drv_data->ssp_type) {