Re: [PATCH 3/3] mmc: block: Enable runtime pm for mmc blkdevice

2013-03-05 Thread Ulf Hansson
On 6 March 2013 02:04, Asutosh Das wrote: > On 3/5/2013 7:09 AM, Ulf Hansson wrote: >> >> On 4 March 2013 21:48, Asutosh Das wrote: >>> >>> On 3/1/2013 6:17 PM, Ulf Hansson wrote: From: Ulf Hansson Once the mmc blkdevice is being probed, runtime pm will be enabled. By us

RE: [PATCH v8 6/9] ARM: dts: add AM33XX EDMA support

2013-03-05 Thread Kumar, Anil
Hi, On Wed, Mar 06, 2013 at 02:23:12, Porter, Matt wrote: > Adds AM33XX EDMA support to the am33xx.dtsi as documented in > Documentation/devicetree/bindings/dma/ti-edma.txt > > Signed-off-by: Matt Porter > --- > arch/arm/boot/dts/am33xx.dtsi | 20 > 1 file changed, 20 ins

Re: [PATCH v2] mmc: sdhci: update check code for cd-broken or nonremovable card

2013-03-05 Thread Kevin Liu
2013/3/1 Kevin Liu : > 2013/3/1 Philip Rakity : >> >> On Mar 1, 2013, at 9:40 AM, Kevin Liu wrote: >> >>> in function sdhci_request: >>> 1. If quirk SDHCI_QUIRK_BROKEN_CARD_DETECTION is selected, there is no >>> card detection available and polling must be used. Gpio detect must >>> _not_ be suppo

[PATCH v3 3/3] mmc: sdhci: update check code for cd-broken or nonremovable card

2013-03-05 Thread Kevin Liu
card present check in function sdhci_request: 1. If quirk SDHCI_QUIRK_BROKEN_CARD_DETECTION is selected, there is no card detection available and polling must be used. Gpio detect must _not_ be supported under this case. Change the sequence to check SDHCI_QUIRK_BROKEN_CARD_DETECTION first, which ma

[PATCH v4 2/3] mmc: sdhci: add function get_cd

2013-03-05 Thread Kevin Liu
1. mmc_rescan will call get_cd to know whether the card is present before mmc_rescan_try_freq to avoid useless trials during card removal or start host is called when card is not present. 2. get_cd need to be checked to resolve slow card removal issue. Signed-off-by: Kevin Liu Reviewed-by: Linus

[PATCH v8 1/3] mmc: core: enhance card removal judgement for slow removal

2013-03-05 Thread Kevin Liu
Function _mmc_detect_card_removed will be called to know whether the card is still present when host->bus_ops->detect is called. In current code, the return value of this function generally only depend on the result of sending cmd13 to card, which may not safe for card with detection support like s

[PATCH 0/3] mmc: core/sdhci: enhance card detect code

2013-03-05 Thread Kevin Liu
Patch 1 enhanced card removal judgement code to resolve the missing removal event issue when card is removed slowly. Patch 2 added callback function get_cd accordingly in sdhci.c. Patch 3 update some card detect related code in sdhci.c and used patch 2. patch 1 and 2 are same as previous version

Re: [PATCH v2 0/3] omap_hsmmc DT DMA Client support

2013-03-05 Thread Arnd Bergmann
On Tuesday 05 March 2013, Matt Porter wrote: > 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 in -next and the > dma_request_slave_channel_compat() wrappe

[PATCH v2 2/3] mmc: omap_hsmmc: Skip platform_get_resource_byname() for dt case

2013-03-05 Thread Matt Porter
From: Santosh Shilimkar MMC driver probe will abort for DT case because of failed platform_get_resource_byname() lookup. Fix it by skipping resource byname lookup for device tree build. Issue is hidden because hwmod popullates the IO resources which helps to succeed platform_get_resource_byname(

[PATCH v2 1/3] mmc: omap_hsmmc: convert to dma_request_slave_channel_compat()

2013-03-05 Thread Matt Porter
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 Acked-by: Tony Lindgren --- drivers/mmc/host/omap_hsmmc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) di

[PATCH v2 3/3] mmc: omap_hsmmc: add generic DMA request support to the DT binding

2013-03-05 Thread Matt Porter
The binding definition is based on the generic DMA request binding. Signed-off-by: Matt Porter Acked-by: Tony Lindgren --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 26 +++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindi

[PATCH v2 0/3] omap_hsmmc DT DMA Client support

2013-03-05 Thread Matt Porter
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 in -next and the dma_request_slave_channel_compat() wrapper introduced in the AM33XX DMA Engine series to support D

[PATCH v8 1/9] ARM: davinci: move private EDMA API to arm/common

2013-03-05 Thread Matt Porter
Move mach-davinci/dma.c to common/edma.c so it can be used by OMAP (specifically AM33xx) as well. Signed-off-by: Matt Porter Acked-by: Sekhar Nori --- arch/arm/Kconfig |1 + arch/arm/common/Kconfig|3 + arch/arm/common/Makefi

[PATCH v8 3/9] ARM: edma: add AM33XX support to the private EDMA API

2013-03-05 Thread Matt Porter
Adds support for parsing the TI EDMA DT data into the required EDMA private API platform data. Enables runtime PM support to initialize the EDMA hwmod. Adds AM33XX EDMA crossbar event mux support. Enables build on OMAP. Signed-off-by: Matt Porter Acked-by: Sekhar Nori --- arch/arm/common/edma.c

[PATCH v8 0/9] DMA Engine support for AM33XX

2013-03-05 Thread Matt Porter
Changes since v7: - Dropped dmaengine compat() patch. It is upstream. - Submitted edma_alloc_slot() error checking bug fix separately, now a dependency - Fixed bisect issues due to 3/10 hunks that went into 1/10 - Fixed incorrect IS_ERRVALUE() use in 3/10

[PATCH v8 2/9] ARM: edma: remove unused transfer controller handlers

2013-03-05 Thread Matt Porter
Fix build on OMAP, the irqs are undefined on AM33xx. These error interrupt handlers were hardcoded as disabled so since they are unused code, simply remove them. Signed-off-by: Matt Porter Acked-by: Sekhar Nori --- arch/arm/common/edma.c | 37 - 1 file chan

[PATCH v8 4/9] dmaengine: edma: enable build for AM33XX

2013-03-05 Thread Matt Porter
Enable TI EDMA option on OMAP. Signed-off-by: Matt Porter --- drivers/dma/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 80b6997..3b7ea20 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -222,7 +222,7 @@

[PATCH v8 7/9] spi: omap2-mcspi: convert to dma_request_slave_channel_compat()

2013-03-05 Thread Matt Porter
Convert dmaengine channel requests to use dma_request_slave_channel_compat(). This supports the DT case of platforms requiring channel selection from either the OMAP DMA or the EDMA engine. AM33xx only boots from DT and is the only user implementing EDMA so in the !DT case we can default to the OMA

[PATCH v8 5/9] dmaengine: edma: Add TI EDMA device tree binding

2013-03-05 Thread Matt Porter
The binding definition is based on the generic DMA controller binding. Signed-off-by: Matt Porter --- Documentation/devicetree/bindings/dma/ti-edma.txt | 49 + 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/ti-edma.txt diff --git

[PATCH v8 8/9] spi: omap2-mcspi: add generic DMA request support to the DT binding

2013-03-05 Thread Matt Porter
The binding definition is based on the generic DMA request binding Signed-off-by: Matt Porter --- Documentation/devicetree/bindings/spi/omap-spi.txt | 27 +++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/omap-spi.txt b/Do

[PATCH v8 9/9] ARM: dts: add AM33XX SPI DMA support

2013-03-05 Thread Matt Porter
Adds DMA resources to the AM33XX SPI nodes. Signed-off-by: Matt Porter --- arch/arm/boot/dts/am33xx.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index aaf44122..a13d710 100644 --- a/arch/arm/boot/dts/am33xx.d

[PATCH v8 6/9] ARM: dts: add AM33XX EDMA support

2013-03-05 Thread Matt Porter
Adds AM33XX EDMA support to the am33xx.dtsi as documented in Documentation/devicetree/bindings/dma/ti-edma.txt Signed-off-by: Matt Porter --- arch/arm/boot/dts/am33xx.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dt

Re: [PATCH v2 00/12] ARM: mxs: move to generic DMA device tree binding

2013-03-05 Thread Arnd Bergmann
On Tuesday 05 March 2013, Shawn Guo wrote: > The series converts mxs-dma and its clients to generic DMA device tree > binding/helper. > > I published a branch below to ease people who is willing to help > testing the series. Looks all good, aside from the bug I found in the first patch. Reviewed

Re: [PATCH 3/3] mmc: block: Enable runtime pm for mmc blkdevice

2013-03-05 Thread Asutosh Das
On 3/5/2013 7:09 AM, Ulf Hansson wrote: On 4 March 2013 21:48, Asutosh Das wrote: On 3/1/2013 6:17 PM, Ulf Hansson wrote: From: Ulf Hansson Once the mmc blkdevice is being probed, runtime pm will be enabled. By using runtime autosuspend, the power save operations can be done when request ina

[PATCH v2 00/12] ARM: mxs: move to generic DMA device tree binding

2013-03-05 Thread Shawn Guo
The series converts mxs-dma and its clients to generic DMA device tree binding/helper. I published a branch below to ease people who is willing to help testing the series. git://git.linaro.org/people/shawnguo/linux-2.6.git devel/mxs-dma-dt Changes since v1: - Remove the use of of_dma_filter_in

[PATCH v2 04/12] mmc: mxs-mmc: move to use generic DMA helper

2013-03-05 Thread Shawn Guo
With the generic DMA device tree helper supported by mxs-dma driver, client devices only need to call dma_request_slave_channel() for requesting a DMA channel from dmaengine. Since mxs is a DT only platform now, along with the changes, the non-DT case checking in probe function also gets cleaned u

Re: [PATCH v4 3/5] mmc: davinci_mmc: add DT support

2013-03-05 Thread Sekhar Nori
On 3/5/2013 4:54 PM, Manjunathappa, Prakash wrote: >>> + pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); >>> + if (!pdata) { >>> + dev_err(&pdev->dev, "Failed to allocate memory for struct >>> davinci_mmc_config\n"); >>> + goto nodata; >> >> devm_kzalloc() re

RE: [PATCH v4 1/5] ARM: davinci: mmc: derive version information from device name

2013-03-05 Thread Manjunathappa, Prakash
On Wed, Feb 27, 2013 at 17:15:59, Nori, Sekhar wrote: > On 2/15/2013 11:51 AM, Manjunathappa, Prakash wrote: > > Remove specifying mmc controller IP version information via platform > > data, instead specify device name so that driver derives it from > > platform_device_id table. Also change the cl

RE: [PATCH v4 3/5] mmc: davinci_mmc: add DT support

2013-03-05 Thread Manjunathappa, Prakash
Hi Sekhar, On Wed, Feb 27, 2013 at 17:13:43, Nori, Sekhar wrote: > On 2/15/2013 11:52 AM, Manjunathappa, Prakash wrote: > > Adds device tree support for davinci_mmc. Also add binding documentation. > > As of now in non-dma PIO mode and without GPIO card_detect/write_protect > > option because of d