From: akpm@linux-foundation.org (Andrew Morton)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3] Samsung: sdhci-s3c: add support for new card detection methods
Date: Thu, 15 Jul 2010 13:39:54 -0700 [thread overview]
Message-ID: <20100715133954.7fcb797a.akpm@linux-foundation.org> (raw)
In-Reply-To: <1279181721-23333-1-git-send-email-m.szyprowski@samsung.com>
On Thu, 15 Jul 2010 10:15:21 +0200
Marek Szyprowski <m.szyprowski@samsung.com> wrote:
> On some Samsung SoCs not all SDHCI controllers have card detect (CD)
> line. For some embedded designs it is not even needed, because ususally
> the device (like SDIO flash memory or wifi controller) is permanently
> wired to the controller. There are also systems which have a card detect
> line connected to some of the external interrupt lines or the presence
> of the card depends on some other actions (like enabling a power
> regulator).
>
> This patch adds support for all these cases. The following card
> detection methods are possible:
>
> 1. internal sdhci host card detect line
> 2. external event
> 3. external gpio interrupt
> 4. no card detect line, controller will poll for the card
> 5. no card detect line, card is permanently wired to the controller
> (once detected host won't poll it any more)
>
> By default, all existing code would use method #1, what is compatible
> with the previous version of the driver.
>
> In case of external event, two callbacks must be provided in platdata:
> ext_cd_init and ext_cd_cleanup. Both of them get a callback to a
> function that notifies the s3c-sdhci host contoller as their argument.
> That callback function should be called from the even dispatcher to let
> host notice the card insertion/removal.
>
> In case of external gpio interrupt, a gpio pin number must be provided
> in platdata (ext_cd_gpio parameter), as well as the information about
> the polarity of that gpio pin (ext_cd_gpio_invert). By default
> (ext_cd_gpio_invert == 0) gpio value 0 means 'card has been removed',
> but this can be changed to 'card has been removed' when
> ext_cd_gpio_invert == 1.
>
> This patch adds all required changes to platform support code.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
>
> This a resend of the previous patch. Relevant patches for sdhci-s3c
> driver has been posted in a separate patch series for easier merging,
> please refer to the "[PATCH] SDHCI-S3C fixes and enhancements (driver
> specific code)" thread. They have been already taken by Andrew Morton
> into his patch tracking tree.
>
> I hope these changes to platform specific code gets merged soon, so the
> changes to the driver can be merged as well.
>
> The patch has been prepared for the following git tree:
> git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git for-next
>
> Changes since V2:
> - added support for HSMMC3 device
>
> Changes since V1:
> - added support for gpio external interrupt card based detect method
> directly to sdhci-s3c driver
> - removed s3c64xx compilation fix patch from the series
>
> Best regards
> --
> Marek Szyprowski
> Samsung Poland R&D Center
>
> ---
>
> arch/arm/mach-s3c64xx/setup-sdhci-gpio.c | 14 +++++++++---
> arch/arm/mach-s5pc100/setup-sdhci-gpio.c | 21 ++++++++++++++-----
> arch/arm/mach-s5pv210/setup-sdhci-gpio.c | 22 +++++++++++++++-----
> arch/arm/plat-samsung/dev-hsmmc.c | 5 ++++
> arch/arm/plat-samsung/dev-hsmmc1.c | 5 ++++
> arch/arm/plat-samsung/dev-hsmmc2.c | 5 ++++
> arch/arm/plat-samsung/dev-hsmmc3.c | 5 ++++
> arch/arm/plat-samsung/include/plat/sdhci.h | 29 ++++++++++++++++++++++++++++
> 8 files changed, 90 insertions(+), 16 deletions(-)
This is quite confusing. You've already sent a patch called
"sdhci-s3c: add support for new card detection methods". It had the
same changelog as this patch and the same title, but the two patches
are utterly different!
I suggest that you resend this patch under an appropriate title and
with a more specific changelog, please.
next prev parent reply other threads:[~2010-07-15 20:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-15 8:15 [PATCH v3] Samsung: sdhci-s3c: add support for new card detection methods Marek Szyprowski
2010-07-15 20:39 ` Andrew Morton [this message]
2010-07-16 6:24 ` Marek Szyprowski
2010-07-21 23:11 ` Andrew Morton
2010-07-22 8:25 ` Marek Szyprowski
2010-07-26 20:57 ` Andrew Morton
2010-07-27 6:12 ` Marek Szyprowski
2010-07-27 11:27 ` Kukjin Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100715133954.7fcb797a.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox