Commit 9b328f5f authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Mark Brown

spi: pxa2xx: Print DMA burst size only when DMA is enabled

Print DMA burst size only when DMA is enabled to avoid making
a false impression that DMA is enabled when it may be not.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://msgid.link/r/20240530151117.1130792-7-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c65174fd
...@@ -1434,7 +1434,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) ...@@ -1434,7 +1434,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)
if (IS_ERR(platform_info)) if (IS_ERR(platform_info))
return dev_err_probe(dev, PTR_ERR(platform_info), "missing platform data\n"); return dev_err_probe(dev, PTR_ERR(platform_info), "missing platform data\n");
} }
dev_dbg(dev, "DMA burst size set to %u\n", platform_info->dma_burst_size);
ssp = pxa2xx_spi_ssp_request(pdev); ssp = pxa2xx_spi_ssp_request(pdev);
if (IS_ERR(ssp)) if (IS_ERR(ssp))
...@@ -1516,6 +1515,8 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) ...@@ -1516,6 +1515,8 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)
controller->max_dma_len = MAX_DMA_LEN; controller->max_dma_len = MAX_DMA_LEN;
controller->max_transfer_size = controller->max_transfer_size =
pxa2xx_spi_max_dma_transfer_size; pxa2xx_spi_max_dma_transfer_size;
dev_dbg(dev, "DMA burst size set to %u\n", platform_info->dma_burst_size);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment