devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v1 PATCH 0/2] PCI: get DMA configuration from parent device
@ 2014-12-18 22:07 Murali Karicheri
  2014-12-18 22:07 ` [RFC v1 PATCH 1/2] of/pci: add of_pci_dma_configure() update dma configuration Murali Karicheri
  2014-12-18 22:07 ` [RFC v1 PATCH 2/2] PCI: update dma configuration from DT Murali Karicheri
  0 siblings, 2 replies; 15+ messages in thread
From: Murali Karicheri @ 2014-12-18 22:07 UTC (permalink / raw)
  To: bhelgaas, linux-pci, linux-kernel, grant.likely, robh+dt,
	devicetree, arnd, linux-arm-kernel
  Cc: Murali Karicheri

PCI devices on Keystone doesn't have correct dma_pfn_offset set. This patch
add capability to set the dma configuration such as dma-mask, dma_pfn_offset,
and dma ops etc using the same information from DT. The prior RFCs and
discussions are available at [1] and [2] below.

This patch make use of a recent dma API addeded to latest master and I could
only compile this as the latest kernel doesn't boot up on Keystone platforms.
So I am continue to send RFC version so that this gets a wider review before
sending the formal patch.

[2] : https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg790244.html
[1] : http://www.gossamer-threads.com/lists/linux/kernel/2024591

Change history:
	v1 - updates based on the comments against initial RFC.
	   - Added a helper function to get the OF node of the parent
	   - Added an API in of_pci.c to update DMA configuration of the pci
	     device.

Murali Karicheri (2):
  of/pci: add of_pci_dma_configure() update dma configuration
  PCI: update dma configuration from DT

 drivers/of/of_pci.c    |   71 ++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/pci/probe.c    |    2 ++
 include/linux/of_pci.h |   12 ++++++++
 3 files changed, 85 insertions(+)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-12-24 15:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-18 22:07 [RFC v1 PATCH 0/2] PCI: get DMA configuration from parent device Murali Karicheri
2014-12-18 22:07 ` [RFC v1 PATCH 1/2] of/pci: add of_pci_dma_configure() update dma configuration Murali Karicheri
2014-12-18 22:29   ` Arnd Bergmann
2014-12-22 17:46     ` Murali Karicheri
2014-12-22 19:43       ` Arnd Bergmann
2014-12-22 21:40         ` Murali Karicheri
2014-12-22 22:24           ` Arnd Bergmann
2014-12-22 22:40             ` Murali Karicheri
2014-12-22 22:44               ` Arnd Bergmann
2014-12-22 23:07                 ` Arnd Bergmann
2014-12-23 17:42                   ` Murali Karicheri
2014-12-23 22:42                     ` Arnd Bergmann
2014-12-23 22:55                       ` Murali Karicheri
2014-12-24 15:57                       ` Murali Karicheri
2014-12-18 22:07 ` [RFC v1 PATCH 2/2] PCI: update dma configuration from DT Murali Karicheri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).