From: Sascha Hauer <s.hauer@pengutronix.de>
To: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [For master PATCH v2] ARM: at91: use -EINVAL for invalid gpio on atmel_mci
Date: Tue, 19 Feb 2013 20:07:14 +0100 [thread overview]
Message-ID: <20130219190714.GC1906@pengutronix.de> (raw)
In-Reply-To: <1361269881-23479-1-git-send-email-fabio.porcedda@gmail.com>
On Tue, Feb 19, 2013 at 11:31:21AM +0100, Fabio Porcedda wrote:
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
> v2:
> - fix all the other boards using atmel_mci
Applied, thanks
Sascha
>
> arch/arm/boards/at91sam9260ek/init.c | 2 ++
> arch/arm/boards/at91sam9m10g45ek/init.c | 1 +
> arch/arm/boards/at91sam9m10ihd/init.c | 1 +
> arch/arm/boards/dss11/init.c | 2 ++
> arch/arm/boards/pm9g45/init.c | 2 +-
> arch/arm/boards/qil-a9260/init.c | 2 ++
> arch/arm/boards/usb-a926x/init.c | 2 ++
> 7 files changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boards/at91sam9260ek/init.c b/arch/arm/boards/at91sam9260ek/init.c
> index 2d52f5a..144f979 100644
> --- a/arch/arm/boards/at91sam9260ek/init.c
> +++ b/arch/arm/boards/at91sam9260ek/init.c
> @@ -168,6 +168,8 @@ static void at91sam9260ek_phy_reset(void)
> static struct atmel_mci_platform_data __initdata ek_mci_data = {
> .bus_width = 4,
> .slot_b = 1,
> + .detect_pin = -EINVAL,
> + .wp_pin = -EINVAL,
> };
>
> static void ek_usb_add_device_mci(void)
> diff --git a/arch/arm/boards/at91sam9m10g45ek/init.c b/arch/arm/boards/at91sam9m10g45ek/init.c
> index 5b5e31b..0ae7171 100644
> --- a/arch/arm/boards/at91sam9m10g45ek/init.c
> +++ b/arch/arm/boards/at91sam9m10g45ek/init.c
> @@ -114,6 +114,7 @@ static struct at91_ether_platform_data macb_pdata = {
> static struct atmel_mci_platform_data ek_mci_data = {
> .bus_width = 4,
> .detect_pin = AT91_PIN_PD10,
> + .wp_pin = -EINVAL,
> };
>
> static void ek_add_device_mci(void)
> diff --git a/arch/arm/boards/at91sam9m10ihd/init.c b/arch/arm/boards/at91sam9m10ihd/init.c
> index f258caf..df63a91 100644
> --- a/arch/arm/boards/at91sam9m10ihd/init.c
> +++ b/arch/arm/boards/at91sam9m10ihd/init.c
> @@ -96,6 +96,7 @@ static void ek_add_device_eth(void)
> static struct atmel_mci_platform_data ek_mci0_data = {
> .bus_width = 4,
> .detect_pin = AT91_PIN_PC25,
> + .wp_pin = -EINVAL,
> };
>
> static void ek_add_device_mci(void)
> diff --git a/arch/arm/boards/dss11/init.c b/arch/arm/boards/dss11/init.c
> index 2920d5e..77ae46f 100644
> --- a/arch/arm/boards/dss11/init.c
> +++ b/arch/arm/boards/dss11/init.c
> @@ -113,6 +113,8 @@ static void dss11_phy_reset(void)
> static struct atmel_mci_platform_data dss11_mci_data = {
> .slot_b = 1,
> .bus_width = 4,
> + .detect_pin = -EINVAL,
> + .wp_pin = -EINVAL,
> };
>
> static struct at91_usbh_data dss11_usbh_data = {
> diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
> index 720099b..69c66d5 100644
> --- a/arch/arm/boards/pm9g45/init.c
> +++ b/arch/arm/boards/pm9g45/init.c
> @@ -83,8 +83,8 @@ static void pm_add_device_nand(void)
> #if defined(CONFIG_MCI_ATMEL)
> static struct atmel_mci_platform_data __initdata mci_data = {
> .bus_width = 4,
> - .wp_pin = 0,
> .detect_pin = AT91_PIN_PD6,
> + .wp_pin = -EINVAL,
> };
>
> static void pm9g45_add_device_mci(void)
> diff --git a/arch/arm/boards/qil-a9260/init.c b/arch/arm/boards/qil-a9260/init.c
> index 2e131fe..e96204a 100644
> --- a/arch/arm/boards/qil-a9260/init.c
> +++ b/arch/arm/boards/qil-a9260/init.c
> @@ -66,6 +66,8 @@ static void qil_a9260_add_device_nand(void)
> #if defined(CONFIG_MCI_ATMEL)
> static struct atmel_mci_platform_data __initdata qil_a9260_mci_data = {
> .bus_width = 4,
> + .detect_pin = -EINVAL,
> + .wp_pin = -EINVAL,
> };
>
> static void qil_a9260_add_device_mci(void)
> diff --git a/arch/arm/boards/usb-a926x/init.c b/arch/arm/boards/usb-a926x/init.c
> index 2e3bbfa..7ae9020 100644
> --- a/arch/arm/boards/usb-a926x/init.c
> +++ b/arch/arm/boards/usb-a926x/init.c
> @@ -213,6 +213,8 @@ static void usb_a9260_add_spi(void) {}
> #if defined(CONFIG_MCI_ATMEL)
> static struct atmel_mci_platform_data __initdata usb_a9260_mci_data = {
> .bus_width = 4,
> + .detect_pin = -EINVAL,
> + .wp_pin = -EINVAL,
> };
>
> static void usb_a9260_add_device_mci(void)
> --
> 1.8.1.1
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2013-02-19 19:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 10:31 Fabio Porcedda
2013-02-19 19:07 ` Sascha Hauer [this message]
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=20130219190714.GC1906@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=fabio.porcedda@gmail.com \
/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