Re: [PATCH v1 2/3] spi: pxa2xx: Introduce dma-burst-sz property support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/26/19 11:24 AM, Andy Shevchenko wrote:
Some masters may have different DMA burst size than hard coded default.
In such case respect the value given by dma-burst-size property.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
  drivers/spi/spi-pxa2xx-dma.c   | 4 +++-
  drivers/spi/spi-pxa2xx-pci.c   | 8 +++++++-
  drivers/spi/spi-pxa2xx.c       | 5 ++++-
  include/linux/spi/pxa2xx_spi.h | 1 +
  4 files changed, 15 insertions(+), 3 deletions(-)
...
@@ -1566,9 +1568,10 @@ pxa2xx_spi_init_pdata(struct platform_device *pdev)
  	ssp->pdev = pdev;
  	ssp->port_id = pxa2xx_spi_get_port_id(adev);
- pdata->is_slave = of_property_read_bool(pdev->dev.of_node, "spi-slave");
+	pdata->is_slave = device_property_read_bool(dev, "spi-slave");

Unrelated change. Not sure is it worth of its own patch.

--
Jarkko



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux