[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1348828113-19668-1-git-send-email-yongd@marvell.com>
Date: Fri, 28 Sep 2012 18:28:30 +0800
From: yongd <yongd@...vell.com>
To: Chris Ball <cjb@...top.org>,
Anton Vorontsov <anton.vorontsov@...aro.org>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Shawn Guo <shawn.guo@...aro.org>,
Wolfram Sang <w.sang@...gutronix.de>,
Daniel Drake <dsd@...top.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Wilson Callan <wilson.callan@...antsystems.com>,
Ben Dooks <ben-linux@...ff.org>
Cc: zhangfei.gao@...vell.com, kevin.liu@...vell.com, jlfu@...vell.com,
linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject:
ngd@...vell.com> # This line is ignored.
From: yongd <yongd@...vell.com>
Subject:[PATCH 0/3] mmc: enable card-detection polling in host driver rather than in sdhci_add_host
In-Reply-To:
Hi all,
As checked, SDHCI_QUICK_BROKEN_CARD_DETECTION was previously introduced by Anton Vorontsov in commit
68d1fb7e229c6f95be4fbbe3eb46b24e41184924. For a removable card (MMC_CAP_NONREMOVABLE is not set),
if this QUICK is set, sdhci_add_host will set MMC_CAP_NEEDS_POLL to enable card-detection polling method,
and sdhci_set_card_detection will not enable host controller card insert/remove interrupts (the host
internal card detection method).
However, we can have some other card detection methods besides host internal card detection and polling
methods. For example, we might use an external GPIO pin for detection. In such case, we will not set
MMC_CAP_NONREMOVABLE since removable, and set SDHCI_QUICK_BROKEN_CARD_DETECTION since we don't use controller
card insert/remove interrupts. But unexpectedly, sdhci_add_host will still enable polling for us. This
is redundant.
So, here comes the following solution.
1st, enable card-detection polling in vendor host driver itself so that it will not rely on sdhci_add_host.
[PATCH 1/3]: for sdhci-esdhc-imx.c
[PATCH 2/3]: for sdhci-s3c.c
And for other vendor host drivers(sdhci-pxav2/3.c, sdhci-pci.c, sdhci-of-esdhc.c), as checked, those who
set SDHCI_QUICK_BROKEN_CARD_DETECTION actually do not set this for enabling polling. So no similar change is
needed.
2nd, remove MMC_CAP_NEEDS_POLL setting in sdhci_add_host, as in [PATCH 3/3].
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Actually I have had some discussion with Anton, and now added more reviewers here since my proposal influences
others. I will appreciate your review and comments. Thanks a lot:-)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists