spi: pxa2xx: Debug print DMA burst size
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 Mar 2019 15:48:43 +0000 (17:48 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 20 Mar 2019 17:21:32 +0000 (17:21 +0000)
It's useful during debug to see what DMA burst size is.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c

index 461c6b796b8f78dbf13a320ecb5acd06174d2f73..f008836f7e27951975e86f7ab4d13cabf4504127 100644 (file)
@@ -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) {