From: kgene.kim@samsung.com (Kukjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4] Samsung: add new card detection methods in s3c-sdhci driver (platform part)
Date: Fri, 23 Jul 2010 09:32:01 +0900 [thread overview]
Message-ID: <004801cb29fe$7fb23ad0$7f16b070$%kim@samsung.com> (raw)
In-Reply-To: <1279790980-29583-1-git-send-email-m.szyprowski@samsung.com>
Marek Szyprowski 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 all required changes to platform support code, so
> another patch, which extends the driver with support for the new card
> detection methods can be applied.
>
> 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.
>
> 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 against linux-next kernel tree from 20100722.
>
> Changes since V3:
> - renamed patch to avoid confusion with the patch for the s3c-sdhci driver
> itself - added "(platform part)" in subject
>
> 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(-)
>
Marek,
Following is build error with this patch.
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c: In function 's5pc100_setup_sdhci0_cfg_gpio':
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c:51: error: dereferencing pointer to incomplete type
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c:51: error: 'S3C_SDHCI_CD_INTERNAL' undeclared (first use in
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c:51: error: (Each undeclared identifier is reported only once
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c:51: error: for each function it appears in.)
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c: In function 's5pc100_setup_sdhci1_cfg_gpio':
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c:71: error: dereferencing pointer to incomplete type
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c:71: error: 'S3C_SDHCI_CD_INTERNAL' undeclared (first use in
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c: In function 's5pc100_setup_sdhci2_cfg_gpio':
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c:91: error: dereferencing pointer to incomplete type
/home/kgene/linux/linux-2.6-mainline-dev/arch/arm/mach-s5pc100/setup-sdhci-g
pio.c:91: error: 'S3C_SDHCI_CD_INTERNAL' undeclared (first use in
make[2]: *** [arch/arm/mach-s5pc100/setup-sdhci-gpio.o] Error 1
and s3c64xx also.
...we need inclusion <plat/sdhci.h> into the ..s3c64xx/setup-sdhci-gpio.c
and ..s5pc100/setup-sdhci-gpio.c.
Will apply with build fix.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
next prev parent reply other threads:[~2010-07-23 0:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <000501cb2977d6cf210846d630$%szyprowski@samsung.com>
2010-07-22 9:29 ` [PATCH v4] Samsung: add new card detection methods in s3c-sdhci driver (platform part) Marek Szyprowski
2010-07-23 0:03 ` Kukjin Kim
2010-07-23 0:32 ` Kukjin Kim [this message]
2010-07-23 5:36 ` Marek Szyprowski
2010-07-22 9:30 ` [PATCH v4] sdhci-s3c: add support for new card detection methods (driver part) Marek Szyprowski
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='004801cb29fe$7fb23ad0$7f16b070$%kim@samsung.com' \
--to=kgene.kim@samsung.com \
--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