* [PATCH v3 0/2] omap_hsmmc DT DMA Client support @ 2013-03-06 14:12 Matt Porter 2013-03-06 14:12 ` [PATCH v3 1/2] mmc: omap_hsmmc: convert to dma_request_slave_channel_compat() Matt Porter ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Matt Porter @ 2013-03-06 14:12 UTC (permalink / raw) To: Balaji T K, Chris Ball, Grant Likely, Rob Herring Cc: Vinod Koul, Tony Lindgren, Devicetree Discuss, Linux OMAP List, Linux Kernel Mailing List, Linux MMC List, Arnd Bergmann, Dan Williams, Jon Hunter, Santosh Shilimkar Changes since v2: - dropped skip platform_get_resource_byname() patch Changes since v1: - rebase to 3.9-rc1, previous dependencies upstream This series adds DT DMA Engine Client support to the omap_hsmmc. It leverages the generic DMA OF helpers and the dma_request_slave_channel_compat() wrapper to support DMA in omap_hsmmc on platforms booting via DT. These platforms include omap2/3/4/5 and am33xx. These patches were split out from the v5 version of the AM33XX DMA series and split from the EDMA-specific omap_hsmmc changes. Matt Porter (2): mmc: omap_hsmmc: convert to dma_request_slave_channel_compat() mmc: omap_hsmmc: add generic DMA request support to the DT binding .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 26 +++++++++++++++++++- drivers/mmc/host/omap_hsmmc.c | 10 ++++++-- 2 files changed, 33 insertions(+), 3 deletions(-) -- 1.7.9.5 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 1/2] mmc: omap_hsmmc: convert to dma_request_slave_channel_compat() 2013-03-06 14:12 [PATCH v3 0/2] omap_hsmmc DT DMA Client support Matt Porter @ 2013-03-06 14:12 ` Matt Porter [not found] ` <1362579128-5312-1-git-send-email-mporter-l0cyMroinI0@public.gmane.org> 2013-04-05 12:58 ` [PATCH v3 0/2] omap_hsmmc DT DMA Client support Balaji T K 2 siblings, 0 replies; 4+ messages in thread From: Matt Porter @ 2013-03-06 14:12 UTC (permalink / raw) To: Balaji T K, Chris Ball, Grant Likely, Rob Herring Cc: Vinod Koul, Tony Lindgren, Devicetree Discuss, Linux OMAP List, Linux Kernel Mailing List, Linux MMC List, Arnd Bergmann, Dan Williams, Jon Hunter, Santosh Shilimkar Convert dmaengine channel requests to use dma_request_slave_channel_compat(). This supports platforms booting with or without DT populated. Signed-off-by: Matt Porter <mporter@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: Arnd Bergmann <arnd@arndb.de> --- drivers/mmc/host/omap_hsmmc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index bc58078..e79b12d 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1915,14 +1915,20 @@ static int omap_hsmmc_probe(struct platform_device *pdev) dma_cap_zero(mask); dma_cap_set(DMA_SLAVE, mask); - host->rx_chan = dma_request_channel(mask, omap_dma_filter_fn, &rx_req); + host->rx_chan = + dma_request_slave_channel_compat(mask, omap_dma_filter_fn, + &rx_req, &pdev->dev, "rx"); + if (!host->rx_chan) { dev_err(mmc_dev(host->mmc), "unable to obtain RX DMA engine channel %u\n", rx_req); ret = -ENXIO; goto err_irq; } - host->tx_chan = dma_request_channel(mask, omap_dma_filter_fn, &tx_req); + host->tx_chan = + dma_request_slave_channel_compat(mask, omap_dma_filter_fn, + &tx_req, &pdev->dev, "tx"); + if (!host->tx_chan) { dev_err(mmc_dev(host->mmc), "unable to obtain TX DMA engine channel %u\n", tx_req); ret = -ENXIO; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
[parent not found: <1362579128-5312-1-git-send-email-mporter-l0cyMroinI0@public.gmane.org>]
* [PATCH v3 2/2] mmc: omap_hsmmc: add generic DMA request support to the DT binding [not found] ` <1362579128-5312-1-git-send-email-mporter-l0cyMroinI0@public.gmane.org> @ 2013-03-06 14:12 ` Matt Porter 0 siblings, 0 replies; 4+ messages in thread From: Matt Porter @ 2013-03-06 14:12 UTC (permalink / raw) To: Balaji T K, Chris Ball, Grant Likely, Rob Herring Cc: Vinod Koul, Devicetree Discuss, Linux MMC List, Linux Kernel Mailing List, Santosh Shilimkar, Dan Williams, Linux OMAP List The binding definition is based on the generic DMA request binding. Signed-off-by: Matt Porter <mporter-l0cyMroinI0@public.gmane.org> Acked-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> Acked-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 26 +++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt b/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt index ed271fc..8c8908a 100644 --- a/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt +++ b/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt @@ -20,8 +20,29 @@ ti,dual-volt: boolean, supports dual voltage cards ti,non-removable: non-removable slot (like eMMC) ti,needs-special-reset: Requires a special softreset sequence ti,needs-special-hs-handling: HSMMC IP needs special setting for handling High Speed +dmas: List of DMA specifiers with the controller specific format +as described in the generic DMA client binding. A tx and rx +specifier is required. +dma-names: List of DMA request names. These strings correspond +1:1 with the DMA specifiers listed in dmas. The string naming is +to be "rx" and "tx" for RX and TX DMA requests, respectively. + +Examples: + +[hwmod populated DMA resources] + + mmc1: mmc@0x4809c000 { + compatible = "ti,omap4-hsmmc"; + reg = <0x4809c000 0x400>; + ti,hwmods = "mmc1"; + ti,dual-volt; + bus-width = <4>; + vmmc-supply = <&vmmc>; /* phandle to regulator node */ + ti,non-removable; + }; + +[generic DMA request binding] -Example: mmc1: mmc@0x4809c000 { compatible = "ti,omap4-hsmmc"; reg = <0x4809c000 0x400>; @@ -30,4 +51,7 @@ Example: bus-width = <4>; vmmc-supply = <&vmmc>; /* phandle to regulator node */ ti,non-removable; + dmas = <&edma 24 + &edma 25>; + dma-names = "tx", "rx"; }; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3 0/2] omap_hsmmc DT DMA Client support 2013-03-06 14:12 [PATCH v3 0/2] omap_hsmmc DT DMA Client support Matt Porter 2013-03-06 14:12 ` [PATCH v3 1/2] mmc: omap_hsmmc: convert to dma_request_slave_channel_compat() Matt Porter [not found] ` <1362579128-5312-1-git-send-email-mporter-l0cyMroinI0@public.gmane.org> @ 2013-04-05 12:58 ` Balaji T K 2 siblings, 0 replies; 4+ messages in thread From: Balaji T K @ 2013-04-05 12:58 UTC (permalink / raw) To: Matt Porter, Chris Ball Cc: Grant Likely, Rob Herring, Vinod Koul, Tony Lindgren, Devicetree Discuss, Linux OMAP List, Linux Kernel Mailing List, Linux MMC List, Arnd Bergmann, Dan Williams, Jon Hunter, Santosh Shilimkar On Wednesday 06 March 2013 07:42 PM, Matt Porter wrote: > Changes since v2: > - dropped skip platform_get_resource_byname() patch > Changes since v1: > - rebase to 3.9-rc1, previous dependencies upstream > > This series adds DT DMA Engine Client support to the omap_hsmmc. > It leverages the generic DMA OF helpers and the > dma_request_slave_channel_compat() wrapper to support DMA in > omap_hsmmc on platforms booting via DT. These platforms include > omap2/3/4/5 and am33xx. > > These patches were split out from the v5 version of the AM33XX DMA > series and split from the EDMA-specific omap_hsmmc changes. > > Matt Porter (2): > mmc: omap_hsmmc: convert to dma_request_slave_channel_compat() > mmc: omap_hsmmc: add generic DMA request support to the DT binding > Looks good to me Acked-by: Balaji T K <balajitk@ti.com> > .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 26 +++++++++++++++++++- > drivers/mmc/host/omap_hsmmc.c | 10 ++++++-- > 2 files changed, 33 insertions(+), 3 deletions(-) > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-05 12:58 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-03-06 14:12 [PATCH v3 0/2] omap_hsmmc DT DMA Client support Matt Porter 2013-03-06 14:12 ` [PATCH v3 1/2] mmc: omap_hsmmc: convert to dma_request_slave_channel_compat() Matt Porter [not found] ` <1362579128-5312-1-git-send-email-mporter-l0cyMroinI0@public.gmane.org> 2013-03-06 14:12 ` [PATCH v3 2/2] mmc: omap_hsmmc: add generic DMA request support to the DT binding Matt Porter 2013-04-05 12:58 ` [PATCH v3 0/2] omap_hsmmc DT DMA Client support Balaji T K
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).