[PATCH 2/3 v7] SDHCI: add sdhci_get_cd callback to detect the card

2013-03-19 Thread Chang-Ming.Huang
From: Jerry Huang Add callback function sdhci_get_cd to detect the card. And one new callback added to implement the card detect in sdhci struncture. If special platform has the card detect callback, it will return the card state, the value zero is for absent cardi and one is for present card. If

[PATCH 3/3 v6] ESDHC: add callback esdhc_of_get_cd to detect card

2013-03-19 Thread Chang-Ming.Huang
From: Jerry Huang In order to check if the card is present, we will read the PRESENT STATE register and check the bit13(Card detect pin level) and bit15(CINS). Signed-off-by: Jerry Huang Reviewed-by: Anton Vorontsov CC: Chris Ball --- changes for v2: - add new callback for esdhc to de

[PATCH 1/3i v6] MMC/SD: Add callback function to detect card

2013-03-19 Thread Chang-Ming.Huang
From: Jerry Huang In order to check whether the card has been removed, the function mmc_send_status() will send command CMD13 to card and ask the card to send its status register to sdhc driver, which will generate many interrupts repeatedly and make the system performance bad. >From the performa

Re: [PATCH] mmc: sdio: bind acpi with sdio function device

2013-03-19 Thread Aaron Lu
Hi Chris, Any comments on this patch? Thanks, Aaron On 03/05/2013 11:24 AM, Aaron Lu wrote: > ACPI spec 5 defined the _ADR encoding for sdio bus as: > High word - slot number (0 based) > Low word - function number > > This patch adds support for binding sdio function device with acpi node, > a

Re: [PATCH v3] mmc: sdhci-s3c: Use devm_clk_get()

2013-03-19 Thread Jaehoon Chung
Dear Chris, Do you have any plan to merge this patch? If you didn't have any opinion, i think good that Jingoo's patch will be merged. Just reminding mail..:) Best Regards, Jaehoon Chung On 03/07/2013 01:11 PM, Jingoo Han wrote: > Use devm_clk_get() rather than clk_get() to make cleanup paths >

Re: [GIT PULL] ARM: tegra: DT-related fixes needed by the MMC tree

2013-03-19 Thread Chris Ball
Hi Stephen, On Tue, Mar 19 2013, Stephen Warren wrote: > On 03/11/2013 02:44 PM, Stephen Warren wrote: >> In order to convert the Tegra MMC driver to using mmc_of_parse(), some >> bugs in the Tegra device-tree content need to be fixed first; it's >> currently wrong but unused, and mmc_of_parse() c

Re: [GIT PULL] ARM: tegra: DT-related fixes needed by the MMC tree

2013-03-19 Thread Stephen Warren
On 03/11/2013 02:44 PM, Stephen Warren wrote: > In order to convert the Tegra MMC driver to using mmc_of_parse(), some > bugs in the Tegra device-tree content need to be fixed first; it's > currently wrong but unused, and mmc_of_parse() causes that data to be > used for the first time. Chris, I do

Re: [PATCH V3 5/7] mmc: queue work on any cpu

2013-03-19 Thread Ulf Hansson
On 18 March 2013 16:23, Viresh Kumar wrote: > mmc uses workqueues for running mmc_rescan(). There is no real dependency of > scheduling these on the cpu which scheduled them. > > On a idle system, it is observed that and idle cpu wakes up many times just to > service this work. It would be better