RE: [PATCH 1/4] SDHCI: add sdhci_get_cd callback to detect the card

2011-12-13 Thread Huang Changming-R66093
> -Original Message- > From: Chris Ball [mailto:c...@laptop.org] > Sent: Wednesday, December 14, 2011 2:06 AM > To: Philip Rakity > Cc: Huang Changming-R66093; linux-mmc@vger.kernel.org; Huang Changming- > R66093 > Subject: Re: [PATCH 1/4] SDHCI: add sdhci_get_cd c

Re: [PATCH 1/4] SDHCI: add sdhci_get_cd callback to detect the card

2011-12-13 Thread Chris Ball
Hi, On Mon, Dec 05 2011, Philip Rakity wrote: >> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c >> index 6d8eea3..66afd82 100644 >> --- a/drivers/mmc/host/sdhci.c >> +++ b/drivers/mmc/host/sdhci.c >> @@ -2,6 +2,7 @@ >> * linux/drivers/mmc/host/sdhci.c - Secure Digital Host Contr

RE: [PATCH 1/4] SDHCI: add sdhci_get_cd callback to detect the card

2011-12-05 Thread Huang Changming-R66093
6093 > Subject: RE: [PATCH 1/4] SDHCI: add sdhci_get_cd callback to detect the > card > > Hi Jerry, > > > -Original Message- > > From: linux-mmc-ow...@vger.kernel.org > > [mailto:linux-mmc-ow...@vger.kernel.org] On Behalf Of > > r66...@freescale.com

RE: [PATCH 1/4] SDHCI: add sdhci_get_cd callback to detect the card

2011-12-05 Thread Huang Changming-R66093
bject: Re: [PATCH 1/4] SDHCI: add sdhci_get_cd callback to detect the > card > > > On Dec 5, 2011, at 1:23 AM, > wrote: > > > From: Jerry Huang > > > > Add callback function sdhci_get_cd to detect the card. > > In order to check if the card is present,

Re: [PATCH 1/4] SDHCI: add sdhci_get_cd callback to detect the card

2011-12-05 Thread Philip Rakity
On Dec 5, 2011, at 1:23 AM, wrote: > From: Jerry Huang > > Add callback function sdhci_get_cd to detect the card. > 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

RE: [PATCH 1/4] SDHCI: add sdhci_get_cd callback to detect the card

2011-12-05 Thread Dong, Chuanxiao
Hi Jerry, > -Original Message- > From: linux-mmc-ow...@vger.kernel.org > [mailto:linux-mmc-ow...@vger.kernel.org] On Behalf Of r66...@freescale.com > Sent: Monday, December 05, 2011 5:24 PM > To: linux-mmc@vger.kernel.org > Cc: Jerry Huang > Subject: [PATCH 1/4] SD

[PATCH 1/4] SDHCI: add sdhci_get_cd callback to detect the card

2011-12-05 Thread r66093
From: Jerry Huang Add callback function sdhci_get_cd to detect the card. 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 --- drivers/mmc/host/sdhci.c | 20