[v1,3/3] spi: pxa2xx: Debug print DMA burst and threshold
diff mbox series

Message ID 20190226092441.49198-3-andriy.shevchenko@linux.intel.com
State New
Headers show
Series
  • [v1,1/3] dt-bindings: Add dma-burst-sz property for spi-pxa2xx
Related show

Commit Message

Andy Shevchenko Feb. 26, 2019, 9:24 a.m. UTC
It's useful during debug to see what DMA burst and threshold sizes are.

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

Patch
diff mbox series

diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index 393e020c757a..534460a29432 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -1339,6 +1339,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 and threshold set to %u, %u\n",
+			chip->dma_burst_size, chip->dma_threshold);
 	}
 
 	switch (drv_data->ssp_type) {