RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-18 Thread Huang Changming-R66093
> -Original Message- > From: Anton Vorontsov [mailto:cbouatmai...@gmail.com] > Sent: Monday, November 19, 2012 11:06 AM > To: Huang Changming-R66093 > Cc: linux-mmc@vger.kernel.org; Huang Changming-R66093; Chris Ball > Subject: Re: [PATCH 2/4 v4] MMC/SD: Add callback

Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-18 Thread Anton Vorontsov
On Tue, Oct 30, 2012 at 04:12:47PM +0800, r66...@freescale.com wrote: [..] > If the card is present, 1 will return, if the card is absent, 0 will return. > If the controller will not support this feature, -ENOSYS will return. > > Signed-off-by: Jerry Huang > CC: Anton Vorontsov > CC: Chris Ball

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-18 Thread Huang Changming-R66093
gming-R66093 > Cc: linux-mmc@vger.kernel.org; Anton Vorontsov; Chris Ball > Subject: Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card > > Hi, > > 2012/11/5 Huang Changming-R66093 : > >> > >> 2012/11/2 Huang Changming-R66093 : > >> > Hi,

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-12 Thread Huang Changming-R66093
November 06, 2012 9:56 AM > To: Anton Vorontsov; Chris Ball > Cc: linux-mmc@vger.kernel.org; Johan Rudholm > Subject: RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card > > Hi, Anton and Chris > Have you any comment about the serial patch [patch 2/3/4, please ignore &

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-05 Thread Huang Changming-R66093
t; To: Huang Changming-R66093 > Cc: linux-mmc@vger.kernel.org; Anton Vorontsov; Chris Ball > Subject: Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card > > Hi, > > 2012/11/5 Huang Changming-R66093 : > >> > >> 2012/11/2 Huang Changmi

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-05 Thread Huang Changming-R66093
Thanks a lot, Johan. Best Regards Jerry Huang > -Original Message- > From: Johan Rudholm [mailto:jrudh...@gmail.com] > Sent: Monday, November 05, 2012 10:08 PM > To: Huang Changming-R66093 > Cc: linux-mmc@vger.kernel.org; Anton Vorontsov; Chris Ball > Subject: Re: [PA

Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-05 Thread Johan Rudholm
Hi, 2012/11/5 Huang Changming-R66093 : >> >> 2012/11/2 Huang Changming-R66093 : >> > Hi, Johan, >> > When quicks SDHCI_QUIRK_BROKEN_CARD_DETECTION is set, the driver will >> poll the card status with the command CMD13 periodically, then many >> interrupts will be generated, which affect the perfor

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-04 Thread Huang Changming-R66093
> > 2012/11/2 Huang Changming-R66093 : > > Hi, Johan, > > When quicks SDHCI_QUIRK_BROKEN_CARD_DETECTION is set, the driver will > poll the card status with the command CMD13 periodically, then many > interrupts will be generated, which affect the performance. > > Ok, just to see if I understand t

Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-02 Thread Johan Rudholm
Hi Jerry, 2012/11/2 Huang Changming-R66093 : > Hi, Johan, > When quicks SDHCI_QUIRK_BROKEN_CARD_DETECTION is set, the driver will poll > the card status with the command CMD13 periodically, then many interrupts > will be generated, which affect the performance. Ok, just to see if I understand t

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-01 Thread Huang Changming-R66093
Hi, Johan, When quicks SDHCI_QUIRK_BROKEN_CARD_DETECTION is set, the driver will poll the card status with the command CMD13 periodically, then many interrupts will be generated, which affect the performance. Yes, some cases to detect GPIO can't be trusted, so I only just implement this callbac

Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-11-01 Thread Johan Rudholm
Hi Jerry, 2012/10/30 : > 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

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-10-30 Thread Huang Changming-R66093
Best Regards Jerry Huang > -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: Wednesday, October 31, 2012 12:29 PM > To: Huang Changming-R66093 > Cc: Girish K S; linux-mmc@vger.kernel.org; Anton Vorontsov; Chris Ball > Subject: Re: [PA

Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-10-30 Thread Jaehoon Chung
Hi, >> *host) >>> if (!host->card || mmc_card_removed(host->card)) >>> return 1; >>> >>> - ret = host->bus_ops->alive(host); >>> + if (host->ops->get_cd) { >>> + ret = host->ops->get_cd(host); >>> + if (ret >= 0) >>> +

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-10-30 Thread Huang Changming-R66093
g Changming-R66093; Anton Vorontsov; > Chris Ball > Subject: Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card > > On 30 October 2012 13:42, wrote: > > From: Jerry Huang > > > > In order to check whether the card has been removed, the function > > mmc

Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-10-30 Thread Girish K S
On 30 October 2012 13:42, wrote: > 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

Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-01-12 Thread Aaron Lu
Friday, January 13, 2012 2:28 PM > > To: Huang Changming-R66093 > > Cc: linux-mmc@vger.kernel.org; Chris Ball > > Subject: Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card > > > > Hi, > > > > On Fri, Jan 13, 2012 at 04:52:42AM +, Huang

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-01-12 Thread Huang Changming-R66093
org; Chris Ball > Subject: Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card > > Hi, > > On Fri, Jan 13, 2012 at 04:52:42AM +, Huang Changming-R66093 wrote: > > > > > For sd hosts, this should only happen for hosts which have > > > SDHCI_QUIRK_BRO

Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-01-12 Thread Aaron Lu
Hi, On Fri, Jan 13, 2012 at 04:52:42AM +, Huang Changming-R66093 wrote: > > > For sd hosts, this should only happen for hosts which have > > SDHCI_QUIRK_BROKEN_CARD_DETECTION set. > Yes, but which will impact the performance. You only set this bit when your host broke, and if your host has o

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-01-12 Thread Huang Changming-R66093
> -Original Message- > From: Aaron Lu [mailto:aaron...@amd.com] > Sent: Friday, January 13, 2012 11:27 AM > To: Huang Changming-R66093 > Cc: linux-mmc@vger.kernel.org; Chris Ball > Subject: Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card > > Hi, &

Re: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-01-12 Thread Aaron Lu
Hi, On Fri, Jan 13, 2012 at 02:25:11AM +, Huang Changming-R66093 wrote: > Hi, Chris, > Could you have any comment about this patch? > Can it go into 3.3 or 3.4? > > Thanks > Jerry Huang > > -Original Message- > > From: Huang Changming-R66093 > > Sent: Tuesday, December 27, 2011 4:01 P

RE: [PATCH 2/4 v4] MMC/SD: Add callback function to detect card

2012-01-12 Thread Huang Changming-R66093
Hi, Chris, Could you have any comment about this patch? Can it go into 3.3 or 3.4? Thanks Jerry Huang > -Original Message- > From: Huang Changming-R66093 > Sent: Tuesday, December 27, 2011 4:01 PM > To: linux-mmc@vger.kernel.org > Cc: Huang Changming-R66093; Chris Ball > Subject: [PATCH 2/