All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus
       [not found] <5EB3BFCD089AD643B9BB63439F5FD5E9A127@SHAASIEXM01.ASIA.ROOT.PRI>
@ 2011-04-26  3:34 ` Barry Song
  2011-04-26  3:48   ` Chris Ball
  2011-04-26  3:48   ` Philip Rakity
  0 siblings, 2 replies; 10+ messages in thread
From: Barry Song @ 2011-04-26  3:34 UTC (permalink / raw)
  To: cjb, linux-mmc; +Cc: Binghua.Duan, andreiw, prakity

From: Bin Shi <bin.shi@csr.com>

some controllers share data bus or other pins between
multi-controllers and need to switch the functions of shared pins
runtime.
this patch requested those shared pins before actual hardware access
and release them after access

Signed-off-by: Bin Shi <bin.shi@csr.com>
Cc: Binghua Duan <binghua.duan@csr.com>
Cc: Andrei Warkentin <andreiw@motorola.com>
Cc: Philip Rakity <prakity@marvell.com>
Signed-off-by: Barry Song <21cnbao@gmail.com>
---
 drivers/mmc/host/sdhci.c |   13 +++++++++++++
 drivers/mmc/host/sdhci.h |    2 ++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index f70e21e..92ae9f7 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1143,6 +1143,13 @@ static void sdhci_request(struct mmc_host *mmc,
struct mmc_request *mrq)

       host = mmc_priv(mmc);

+       /*
+        * some controllers share data bus or other pins between
multi-controller
+        * and need to switch the function of pins runtime
+        */
+       if (host->ops->get_shared_pins)
+               host->ops->get_shared_pins(host);
+
       spin_lock_irqsave(&host->lock, flags);

       WARN_ON(host->mrq != NULL);
@@ -1417,6 +1424,12 @@ static void sdhci_tasklet_finish(unsigned long param)
       spin_unlock_irqrestore(&host->lock, flags);

       mmc_request_done(host->mmc, mrq);
+
+       /*
+        * release shared pins so that other controllers can use them
+        */
+       if (host->ops->put_shared_pins)
+               host->ops->put_shared_pins(host);
 }

 static void sdhci_timeout_timer(unsigned long data)
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index c6e25a7..5a26cfe 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -231,6 +231,8 @@ struct sdhci_ops {
       unsigned int    (*get_ro)(struct sdhci_host *host);
       void    (*platform_reset_enter)(struct sdhci_host *host, u8 mask);
       void    (*platform_reset_exit)(struct sdhci_host *host, u8 mask);
+       unsigned int    (*get_shared_pins)(struct sdhci_host *host);
+       unsigned int    (*put_shared_pins)(struct sdhci_host *host);
 };

 #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
--
1.7.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus
  2011-04-26  3:34 ` [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus Barry Song
@ 2011-04-26  3:48   ` Chris Ball
  2011-04-26  3:50     ` Barry Song
  2011-04-26  3:48   ` Philip Rakity
  1 sibling, 1 reply; 10+ messages in thread
From: Chris Ball @ 2011-04-26  3:48 UTC (permalink / raw)
  To: Barry Song; +Cc: linux-mmc, Binghua.Duan, andreiw, prakity

Hi Barry,

On Mon, Apr 25 2011, Barry Song wrote:
> From: Bin Shi <bin.shi@csr.com>
>
> some controllers share data bus or other pins between
> multi-controllers and need to switch the functions of shared pins
> runtime.
> this patch requested those shared pins before actual hardware access
> and release them after access
>
> Signed-off-by: Bin Shi <bin.shi@csr.com>
> Cc: Binghua Duan <binghua.duan@csr.com>
> Cc: Andrei Warkentin <andreiw@motorola.com>
> Cc: Philip Rakity <prakity@marvell.com>
> Signed-off-by: Barry Song <21cnbao@gmail.com>

* The patch is corrupt:
    fatal: corrupt patch at line 11
  You can check whether the patch is okay by first e-mailing it to
  yourself and checking that git can apply it.

* Where is the patch that implements the get_shared_pins() hook in
  your driver?

Thanks,

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus
  2011-04-26  3:34 ` [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus Barry Song
  2011-04-26  3:48   ` Chris Ball
@ 2011-04-26  3:48   ` Philip Rakity
  1 sibling, 0 replies; 10+ messages in thread
From: Philip Rakity @ 2011-04-26  3:48 UTC (permalink / raw)
  To: Barry Song
  Cc: cjb@laptop.org, linux-mmc@vger.kernel.org, Binghua.Duan@csr.com,
	andreiw@motorola.com


Hi Barry,

How are SDIO interrupts handled ?

Philip

On Apr 25, 2011, at 8:34 PM, Barry Song wrote:

> From: Bin Shi <bin.shi@csr.com>
> 
> some controllers share data bus or other pins between
> multi-controllers and need to switch the functions of shared pins
> runtime.
> this patch requested those shared pins before actual hardware access
> and release them after access
> 
> Signed-off-by: Bin Shi <bin.shi@csr.com>
> Cc: Binghua Duan <binghua.duan@csr.com>
> Cc: Andrei Warkentin <andreiw@motorola.com>
> Cc: Philip Rakity <prakity@marvell.com>
> Signed-off-by: Barry Song <21cnbao@gmail.com>
> ---
>  drivers/mmc/host/sdhci.c |   13 +++++++++++++
>  drivers/mmc/host/sdhci.h |    2 ++
>  2 files changed, 15 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index f70e21e..92ae9f7 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
> @@ -1143,6 +1143,13 @@ static void sdhci_request(struct mmc_host *mmc,
> struct mmc_request *mrq)
> 
>        host = mmc_priv(mmc);
> 
> +       /*
> +        * some controllers share data bus or other pins between
> multi-controller
> +        * and need to switch the function of pins runtime
> +        */
> +       if (host->ops->get_shared_pins)
> +               host->ops->get_shared_pins(host);
> +
>        spin_lock_irqsave(&host->lock, flags);
> 
>        WARN_ON(host->mrq != NULL);
> @@ -1417,6 +1424,12 @@ static void sdhci_tasklet_finish(unsigned long param)
>        spin_unlock_irqrestore(&host->lock, flags);
> 
>        mmc_request_done(host->mmc, mrq);
> +
> +       /*
> +        * release shared pins so that other controllers can use them
> +        */
> +       if (host->ops->put_shared_pins)
> +               host->ops->put_shared_pins(host);
>  }
> 
>  static void sdhci_timeout_timer(unsigned long data)
> diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
> index c6e25a7..5a26cfe 100644
> --- a/drivers/mmc/host/sdhci.h
> +++ b/drivers/mmc/host/sdhci.h
> @@ -231,6 +231,8 @@ struct sdhci_ops {
>        unsigned int    (*get_ro)(struct sdhci_host *host);
>        void    (*platform_reset_enter)(struct sdhci_host *host, u8 mask);
>        void    (*platform_reset_exit)(struct sdhci_host *host, u8 mask);
> +       unsigned int    (*get_shared_pins)(struct sdhci_host *host);
> +       unsigned int    (*put_shared_pins)(struct sdhci_host *host);
>  };
> 
>  #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
> --
> 1.7.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus
  2011-04-26  3:48   ` Chris Ball
@ 2011-04-26  3:50     ` Barry Song
  2011-04-26  6:58       ` Wolfram Sang
  0 siblings, 1 reply; 10+ messages in thread
From: Barry Song @ 2011-04-26  3:50 UTC (permalink / raw)
  To: Chris Ball; +Cc: linux-mmc, Binghua.Duan, andreiw, prakity

[-- Attachment #1: Type: text/plain, Size: 1799 bytes --]

2011/4/26 Chris Ball <cjb@laptop.org>:
> Hi Barry,
>
> On Mon, Apr 25 2011, Barry Song wrote:
>> From: Bin Shi <bin.shi@csr.com>
>>
>> some controllers share data bus or other pins between
>> multi-controllers and need to switch the functions of shared pins
>> runtime.
>> this patch requested those shared pins before actual hardware access
>> and release them after access
>>
>> Signed-off-by: Bin Shi <bin.shi@csr.com>
>> Cc: Binghua Duan <binghua.duan@csr.com>
>> Cc: Andrei Warkentin <andreiw@motorola.com>
>> Cc: Philip Rakity <prakity@marvell.com>
>> Signed-off-by: Barry Song <21cnbao@gmail.com>
>
> * The patch is corrupt:
>    fatal: corrupt patch at line 11
>  You can check whether the patch is okay by first e-mailing it to
>  yourself and checking that git can apply it.

Hi Chris,
I am deeply sorry for our firewall still stops me to send email by
git. I post it in web and this patch should be not able to be applied.
Then i attatched the origianl patch as an attachment.
Our IT will open related ports. Then we can send formated patches later.
>
> * Where is the patch that implements the get_shared_pins() hook in
>  your driver?
We send the common level patch ahead to get the upstream agreement so
that we can maintain our bottom level sdhci codes better. We will send
the special driver patch after some time.
Basically, the driver get a mutex and set hardware registers to make
the related pin switch roles.

>
> Thanks,
>
> - Chris.
> --
> Chris Ball   <cjb@laptop.org>   <http://printf.net/>
> One Laptop Per Child
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

[-- Attachment #2: 0001-mmc-sdhci-add-support-to-request-free-pins-for-contr.patch --]
[-- Type: application/octet-stream, Size: 2314 bytes --]

From df617f58a49f162d319e5982fea843c86a8e51b1 Mon Sep 17 00:00:00 2001
From: Bin Shi <bin.shi@csr.com>
Date: Mon, 25 Apr 2011 20:23:30 -0700
Subject: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus

some controllers share data bus or other pins between multi-controllers and need to switch the functions of shared pins runtime.
this patch requested those shared pins before actual hardware access and release them after access

Signed-off-by: Bin Shi <bin.shi@csr.com>
Cc: Binghua Duan <binghua.duan@csr.com>
Cc: Andrei Warkentin <andreiw@motorola.com>
Cc: Philip Rakity <prakity@marvell.com>
Signed-off-by: Barry Song <21cnbao@gmail.com>
---
 drivers/mmc/host/sdhci.c |   13 +++++++++++++
 drivers/mmc/host/sdhci.h |    2 ++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index f70e21e..92ae9f7 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1143,6 +1143,13 @@ static void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq)
 
 	host = mmc_priv(mmc);
 
+	/*
+	 * some controllers share data bus or other pins between multi-controller
+	 * and need to switch the function of pins runtime
+	 */
+	if (host->ops->get_shared_pins)
+		host->ops->get_shared_pins(host);
+
 	spin_lock_irqsave(&host->lock, flags);
 
 	WARN_ON(host->mrq != NULL);
@@ -1417,6 +1424,12 @@ static void sdhci_tasklet_finish(unsigned long param)
 	spin_unlock_irqrestore(&host->lock, flags);
 
 	mmc_request_done(host->mmc, mrq);
+
+	/*
+	 * release shared pins so that other controllers can use them
+	 */
+	if (host->ops->put_shared_pins)
+		host->ops->put_shared_pins(host);
 }
 
 static void sdhci_timeout_timer(unsigned long data)
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index c6e25a7..5a26cfe 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -231,6 +231,8 @@ struct sdhci_ops {
 	unsigned int    (*get_ro)(struct sdhci_host *host);
 	void	(*platform_reset_enter)(struct sdhci_host *host, u8 mask);
 	void	(*platform_reset_exit)(struct sdhci_host *host, u8 mask);
+	unsigned int    (*get_shared_pins)(struct sdhci_host *host);
+	unsigned int    (*put_shared_pins)(struct sdhci_host *host);
 };
 
 #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus
  2011-04-26  3:50     ` Barry Song
@ 2011-04-26  6:58       ` Wolfram Sang
  2011-04-26  7:27         ` Barry Song
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfram Sang @ 2011-04-26  6:58 UTC (permalink / raw)
  To: Barry Song; +Cc: Chris Ball, linux-mmc, Binghua.Duan, andreiw, prakity

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

> > * Where is the patch that implements the get_shared_pins() hook in
> >  your driver?
> We send the common level patch ahead to get the upstream agreement so
> that we can maintain our bottom level sdhci codes better. We will send
> the special driver patch after some time.

Hmm, why should be there a functionality if there is no user for it? A
reference user helps people understand how it is intended to be used.

Regards,

   Wolfram

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus
  2011-04-26  6:58       ` Wolfram Sang
@ 2011-04-26  7:27         ` Barry Song
  2011-04-26 13:00           ` Chris Ball
  2011-04-26 15:28           ` Philip Rakity
  0 siblings, 2 replies; 10+ messages in thread
From: Barry Song @ 2011-04-26  7:27 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: Chris Ball, linux-mmc, Binghua.Duan, andreiw, prakity

Hi Wolfram,

2011/4/26 Wolfram Sang <w.sang@pengutronix.de>:
>> > * Where is the patch that implements the get_shared_pins() hook in
>> >  your driver?
>> We send the common level patch ahead to get the upstream agreement so
>> that we can maintain our bottom level sdhci codes better. We will send
>> the special driver patch after some time.
>
> Hmm, why should be there a functionality if there is no user for it? A
> reference user helps people understand how it is intended to be used.

completely right. Of course this patch is based on real applications
and SoCs. We are using ARASAN sd controller IP, it can be configurated
to use shared pins mode in SoC design. And it looks like it is a
common requirement to save chip footprint by sharing data bus between
multi-controllers.

Just because Our SoCs are still on the way to opensource and mainline.
Even our arch/arm/mach-xxx hasn't been merged yet. Our target is
syncing our codes with mainline. So as a modification to sdhci common
level, we just get upstream's opinion for local maintaining earlier.

Anyway, this patch may be applied later after our others are ready. Or
it can be now so that other SoC companies can use this feature.

>
> Regards,
>
>   Wolfram
>
> --
> Pengutronix e.K.                           | Wolfram Sang                |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus
  2011-04-26  7:27         ` Barry Song
@ 2011-04-26 13:00           ` Chris Ball
  2011-04-26 15:28           ` Philip Rakity
  1 sibling, 0 replies; 10+ messages in thread
From: Chris Ball @ 2011-04-26 13:00 UTC (permalink / raw)
  To: Barry Song; +Cc: Wolfram Sang, linux-mmc, Binghua.Duan, andreiw, prakity

Hi Barry,

On Tue, Apr 26 2011, Barry Song wrote:
> Just because Our SoCs are still on the way to opensource and mainline.
> Even our arch/arm/mach-xxx hasn't been merged yet. Our target is
> syncing our codes with mainline. So as a modification to sdhci common
> level, we just get upstream's opinion for local maintaining earlier.
>
> Anyway, this patch may be applied later after our others are ready. Or
> it can be now so that other SoC companies can use this feature.

Thanks for the explanation.  In that case, I'll give you my Reviewed-by:
on the patch now, but will wait to merge it until you have your driver
support code posted too.  (Or until, as you say, someone else would like
the same hook.)

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus
  2011-04-26  7:27         ` Barry Song
  2011-04-26 13:00           ` Chris Ball
@ 2011-04-26 15:28           ` Philip Rakity
  2011-04-28  1:14             ` Barry Song
  1 sibling, 1 reply; 10+ messages in thread
From: Philip Rakity @ 2011-04-26 15:28 UTC (permalink / raw)
  To: Barry Song
  Cc: Wolfram Sang, Chris Ball, linux-mmc@vger.kernel.org,
	Binghua.Duan@csr.com, andreiw@motorola.com


Barry,

How are interrupts from SDIO devices handled ?   SDIO devices use one of the pins to signal a interrupt to the host when data is availabe.

Philip

On Apr 26, 2011, at 12:27 AM, Barry Song wrote:

> Hi Wolfram,
> 
> 2011/4/26 Wolfram Sang <w.sang@pengutronix.de>:
>>>> * Where is the patch that implements the get_shared_pins() hook in
>>>>  your driver?
>>> We send the common level patch ahead to get the upstream agreement so
>>> that we can maintain our bottom level sdhci codes better. We will send
>>> the special driver patch after some time.
>> 
>> Hmm, why should be there a functionality if there is no user for it? A
>> reference user helps people understand how it is intended to be used.
> 
> completely right. Of course this patch is based on real applications
> and SoCs. We are using ARASAN sd controller IP, it can be configurated
> to use shared pins mode in SoC design. And it looks like it is a
> common requirement to save chip footprint by sharing data bus between
> multi-controllers.
> 
> Just because Our SoCs are still on the way to opensource and mainline.
> Even our arch/arm/mach-xxx hasn't been merged yet. Our target is
> syncing our codes with mainline. So as a modification to sdhci common
> level, we just get upstream's opinion for local maintaining earlier.
> 
> Anyway, this patch may be applied later after our others are ready. Or
> it can be now so that other SoC companies can use this feature.
> 
>> 
>> Regards,
>> 
>>   Wolfram
>> 
>> --
>> Pengutronix e.K.                           | Wolfram Sang                |
>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>> 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus
  2011-04-26 15:28           ` Philip Rakity
@ 2011-04-28  1:14             ` Barry Song
  2011-04-28  1:16               ` Barry Song
  0 siblings, 1 reply; 10+ messages in thread
From: Barry Song @ 2011-04-28  1:14 UTC (permalink / raw)
  To: Philip Rakity
  Cc: Wolfram Sang, Chris Ball, linux-mmc@vger.kernel.org,
	Binghua.Duan@csr.com, andreiw@motorola.com

Hi Philip,

2011/4/26 Philip Rakity <prakity@marvell.com>:
>
> Barry,
>
> How are interrupts from SDIO devices handled ?   SDIO devices use one of the pins to signal a interrupt to the host when data is availabe.

Good question. in fact, it is impossible to support both sharing all
data bus and sdio interrupt in hardware except that hardware gives a
special design with data1. Otherwise, controllers with shared pins
requested at runtime will not support sdio devices with interrupts.

>
> Philip
>
> On Apr 26, 2011, at 12:27 AM, Barry Song wrote:
>
>> Hi Wolfram,
>>
>> 2011/4/26 Wolfram Sang <w.sang@pengutronix.de>:
>>>>> * Where is the patch that implements the get_shared_pins() hook in
>>>>>  your driver?
>>>> We send the common level patch ahead to get the upstream agreement so
>>>> that we can maintain our bottom level sdhci codes better. We will send
>>>> the special driver patch after some time.
>>>
>>> Hmm, why should be there a functionality if there is no user for it? A
>>> reference user helps people understand how it is intended to be used.
>>
>> completely right. Of course this patch is based on real applications
>> and SoCs. We are using ARASAN sd controller IP, it can be configurated
>> to use shared pins mode in SoC design. And it looks like it is a
>> common requirement to save chip footprint by sharing data bus between
>> multi-controllers.
>>
>> Just because Our SoCs are still on the way to opensource and mainline.
>> Even our arch/arm/mach-xxx hasn't been merged yet. Our target is
>> syncing our codes with mainline. So as a modification to sdhci common
>> level, we just get upstream's opinion for local maintaining earlier.
>>
>> Anyway, this patch may be applied later after our others are ready. Or
>> it can be now so that other SoC companies can use this feature.
>>
>>>
>>> Regards,
>>>
>>>   Wolfram
>>>
>>> --
>>> Pengutronix e.K.                           | Wolfram Sang                |
>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>
>
>
-barry

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus
  2011-04-28  1:14             ` Barry Song
@ 2011-04-28  1:16               ` Barry Song
  0 siblings, 0 replies; 10+ messages in thread
From: Barry Song @ 2011-04-28  1:16 UTC (permalink / raw)
  To: Philip Rakity
  Cc: Wolfram Sang, Chris Ball, linux-mmc@vger.kernel.org,
	Binghua.Duan@csr.com, andreiw@motorola.com

2011/4/28 Barry Song <21cnbao@gmail.com>:
> Hi Philip,
>
> 2011/4/26 Philip Rakity <prakity@marvell.com>:
>>
>> Barry,
>>
>> How are interrupts from SDIO devices handled ?   SDIO devices use one of the pins to signal a interrupt to the host when data is availabe.
>
> Good question. in fact, it is impossible to support both sharing all
> data bus and sdio interrupt in hardware except that hardware gives a
> special design with data1. Otherwise, controllers with shared pins
> requested at runtime will not support sdio devices with interrupts.

So the point is that leaving get/put_shared_pins implementation to
bottom level drivers. Let the bottom level handle possible details.

>
>>
>> Philip
>>
>> On Apr 26, 2011, at 12:27 AM, Barry Song wrote:
>>
>>> Hi Wolfram,
>>>
>>> 2011/4/26 Wolfram Sang <w.sang@pengutronix.de>:
>>>>>> * Where is the patch that implements the get_shared_pins() hook in
>>>>>>  your driver?
>>>>> We send the common level patch ahead to get the upstream agreement so
>>>>> that we can maintain our bottom level sdhci codes better. We will send
>>>>> the special driver patch after some time.
>>>>
>>>> Hmm, why should be there a functionality if there is no user for it? A
>>>> reference user helps people understand how it is intended to be used.
>>>
>>> completely right. Of course this patch is based on real applications
>>> and SoCs. We are using ARASAN sd controller IP, it can be configurated
>>> to use shared pins mode in SoC design. And it looks like it is a
>>> common requirement to save chip footprint by sharing data bus between
>>> multi-controllers.
>>>
>>> Just because Our SoCs are still on the way to opensource and mainline.
>>> Even our arch/arm/mach-xxx hasn't been merged yet. Our target is
>>> syncing our codes with mainline. So as a modification to sdhci common
>>> level, we just get upstream's opinion for local maintaining earlier.
>>>
>>> Anyway, this patch may be applied later after our others are ready. Or
>>> it can be now so that other SoC companies can use this feature.
>>>
>>>>
>>>> Regards,
>>>>
>>>>   Wolfram
>>>>
>>>> --
>>>> Pengutronix e.K.                           | Wolfram Sang                |
>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>>
>>
>>
> -barry
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-04-28  1:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <5EB3BFCD089AD643B9BB63439F5FD5E9A127@SHAASIEXM01.ASIA.ROOT.PRI>
2011-04-26  3:34 ` [PATCH] mmc:sdhci:add support to request/free pins for controllers sharing hardware bus Barry Song
2011-04-26  3:48   ` Chris Ball
2011-04-26  3:50     ` Barry Song
2011-04-26  6:58       ` Wolfram Sang
2011-04-26  7:27         ` Barry Song
2011-04-26 13:00           ` Chris Ball
2011-04-26 15:28           ` Philip Rakity
2011-04-28  1:14             ` Barry Song
2011-04-28  1:16               ` Barry Song
2011-04-26  3:48   ` Philip Rakity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.