All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] unbreak ehci-mxc on otg port of i.MX27
@ 2011-01-13  9:06 Eric Bénard
  2011-01-13  9:12 ` Sascha Hauer
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Eric Bénard @ 2011-01-13  9:06 UTC (permalink / raw)
  To: linux-arm-kernel

commit 711669e5b80b6f2d88f61ed8a9681f83d8cbd201 fixed port 0 support
for i.MX51 but broke it for (at least) i.MX27 which doesn't have
a usb_phy1 clock but has a pdev->id 0.

Signed-off-by: Eric B?nard <eric@eukrea.com>
Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/usb/host/ehci-mxc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
index fa59b26..18eb597 100644
--- a/drivers/usb/host/ehci-mxc.c
+++ b/drivers/usb/host/ehci-mxc.c
@@ -178,7 +178,7 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
 	}
 
 	/* "dr" device has its own clock */
-	if (pdev->id == 0) {
+	if ((cpu_is_mx51()) & (pdev->id == 0)) {
 		priv->phy1clk = clk_get(dev, "usb_phy1");
 		if (IS_ERR(priv->phy1clk)) {
 			ret = PTR_ERR(priv->phy1clk);
-- 
1.7.3.4

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

* [PATCH] unbreak ehci-mxc on otg port of i.MX27
  2011-01-13  9:06 [PATCH] unbreak ehci-mxc on otg port of i.MX27 Eric Bénard
@ 2011-01-13  9:12 ` Sascha Hauer
  2011-01-13  9:17   ` Eric Bénard
  2011-01-13 13:53   ` [PATCH v2] " Eric Bénard
  2011-01-13 10:48 ` [PATCH] " Arnaud Patard (Rtp)
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 9+ messages in thread
From: Sascha Hauer @ 2011-01-13  9:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jan 13, 2011 at 10:06:15AM +0100, Eric B?nard wrote:
> commit 711669e5b80b6f2d88f61ed8a9681f83d8cbd201 fixed port 0 support
> for i.MX51 but broke it for (at least) i.MX27 which doesn't have
> a usb_phy1 clock but has a pdev->id 0.

Shame on me for not reviewing the patch properly :(


> 
> Signed-off-by: Eric B?nard <eric@eukrea.com>
> Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
> Cc: Sascha Hauer <s.hauer@pengutronix.de>
> ---
>  drivers/usb/host/ehci-mxc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
> index fa59b26..18eb597 100644
> --- a/drivers/usb/host/ehci-mxc.c
> +++ b/drivers/usb/host/ehci-mxc.c
> @@ -178,7 +178,7 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
>  	}
>  
>  	/* "dr" device has its own clock */
> -	if (pdev->id == 0) {
> +	if ((cpu_is_mx51()) & (pdev->id == 0)) {

should be && and please remove the unnecessary braces around
cpu_is_mx51(). Otherwise ok.

Sascha

-- 
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 |

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

* [PATCH] unbreak ehci-mxc on otg port of i.MX27
  2011-01-13  9:12 ` Sascha Hauer
@ 2011-01-13  9:17   ` Eric Bénard
  2011-01-13 13:53   ` [PATCH v2] " Eric Bénard
  1 sibling, 0 replies; 9+ messages in thread
From: Eric Bénard @ 2011-01-13  9:17 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Sascha,

On 13/01/2011 10:12, Sascha Hauer wrote:
>>
>>   	/* "dr" device has its own clock */
>> -	if (pdev->id == 0) {
>> +	if ((cpu_is_mx51())&  (pdev->id == 0)) {
>
> should be&&  and please remove the unnecessary braces around
> cpu_is_mx51(). Otherwise ok.
>
shame on me for the &, a wrong copy and paste from my working tree removed the 
second one, While I'm here does MX53 or MX50 need this ?

Eric

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

* [PATCH] unbreak ehci-mxc on otg port of i.MX27
  2011-01-13  9:06 [PATCH] unbreak ehci-mxc on otg port of i.MX27 Eric Bénard
  2011-01-13  9:12 ` Sascha Hauer
@ 2011-01-13 10:48 ` Arnaud Patard (Rtp)
  2011-01-13 12:17 ` Sergei Shtylyov
  2011-01-13 12:22 ` Sergei Shtylyov
  3 siblings, 0 replies; 9+ messages in thread
From: Arnaud Patard (Rtp) @ 2011-01-13 10:48 UTC (permalink / raw)
  To: linux-arm-kernel

Eric B?nard <eric@eukrea.com> writes:

> commit 711669e5b80b6f2d88f61ed8a9681f83d8cbd201 fixed port 0 support
> for i.MX51 but broke it for (at least) i.MX27 which doesn't have
> a usb_phy1 clock but has a pdev->id 0.

ouch. Sorry for this. I didn't thought that imx51 was an exception
rather than the rule. Also, I think that imx53 may deserve same
treatment but I've neither a  imx53 nor its datasheet at hand to check
that.

thanks,
Arnaud

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

* [PATCH] unbreak ehci-mxc on otg port of i.MX27
  2011-01-13  9:06 [PATCH] unbreak ehci-mxc on otg port of i.MX27 Eric Bénard
  2011-01-13  9:12 ` Sascha Hauer
  2011-01-13 10:48 ` [PATCH] " Arnaud Patard (Rtp)
@ 2011-01-13 12:17 ` Sergei Shtylyov
  2011-01-13 12:22 ` Sergei Shtylyov
  3 siblings, 0 replies; 9+ messages in thread
From: Sergei Shtylyov @ 2011-01-13 12:17 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 13-01-2011 12:06, Eric B?nard wrote:

> commit 711669e5b80b6f2d88f61ed8a9681f83d8cbd201 fixed port 0 support
> for i.MX51 but broke it for (at least) i.MX27 which doesn't have
> a usb_phy1 clock but has a pdev->id 0.

> Signed-off-by: Eric B?nard<eric@eukrea.com>
> Cc: Arnaud Patard<arnaud.patard@rtp-net.org>
> Cc: Sascha Hauer<s.hauer@pengutronix.de>
> ---
>   drivers/usb/host/ehci-mxc.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)

> diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
> index fa59b26..18eb597 100644
> --- a/drivers/usb/host/ehci-mxc.c
> +++ b/drivers/usb/host/ehci-mxc.c
> @@ -178,7 +178,7 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
>   	}
>
>   	/* "dr" device has its own clock */
> -	if (pdev->id == 0) {
> +	if ((cpu_is_mx51()) & (pdev->id == 0)) {

    Why enclose the function call in parens at all? You also don't need parens 
around 'pdev->id == 0'...

WBR, Sergei

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

* [PATCH] unbreak ehci-mxc on otg port of i.MX27
  2011-01-13  9:06 [PATCH] unbreak ehci-mxc on otg port of i.MX27 Eric Bénard
                   ` (2 preceding siblings ...)
  2011-01-13 12:17 ` Sergei Shtylyov
@ 2011-01-13 12:22 ` Sergei Shtylyov
  3 siblings, 0 replies; 9+ messages in thread
From: Sergei Shtylyov @ 2011-01-13 12:22 UTC (permalink / raw)
  To: linux-arm-kernel

On 13-01-2011 12:06, Eric B?nard wrote:

> commit 711669e5b80b6f2d88f61ed8a9681f83d8cbd201 fixed port 0 support

    Forgot to say that Linus has asked to also specify the commit summary in 
parens after the commit ID.

> for i.MX51 but broke it for (at least) i.MX27 which doesn't have
> a usb_phy1 clock but has a pdev->id 0.

> Signed-off-by: Eric B?nard<eric@eukrea.com>
> Cc: Arnaud Patard<arnaud.patard@rtp-net.org>
> Cc: Sascha Hauer<s.hauer@pengutronix.de>
> ---
>   drivers/usb/host/ehci-mxc.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)

> diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
> index fa59b26..18eb597 100644
> --- a/drivers/usb/host/ehci-mxc.c
> +++ b/drivers/usb/host/ehci-mxc.c
> @@ -178,7 +178,7 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
>   	}
>
>   	/* "dr" device has its own clock */
> -	if (pdev->id == 0) {
> +	if ((cpu_is_mx51())&  (pdev->id == 0)) {

    And it should be &&, not &.

WBR, Sergei

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

* [PATCH v2] unbreak ehci-mxc on otg port of i.MX27
  2011-01-13  9:12 ` Sascha Hauer
  2011-01-13  9:17   ` Eric Bénard
@ 2011-01-13 13:53   ` Eric Bénard
  2011-01-13 17:48     ` Sergei Shtylyov
  1 sibling, 1 reply; 9+ messages in thread
From: Eric Bénard @ 2011-01-13 13:53 UTC (permalink / raw)
  To: linux-arm-kernel

commit 711669e5b80b6f2d88f61ed8a9681f83d8cbd201 fixed port 0 support
for i.MX51 but broke it for (at least) i.MX27 which doesn't have
a usb_phy1 clock but has a pdev->id 0.

Signed-off-by: Eric B?nard <eric@eukrea.com>
Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
---
v2: fix missing &, remove parenthesis and add i.MX51 in the comment

 drivers/usb/host/ehci-mxc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
index fa59b26..d443fbd 100644
--- a/drivers/usb/host/ehci-mxc.c
+++ b/drivers/usb/host/ehci-mxc.c
@@ -177,8 +177,8 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
 		clk_enable(priv->ahbclk);
 	}
 
-	/* "dr" device has its own clock */
-	if (pdev->id == 0) {
+	/* "dr" device has its own clock on i.MX51 */
+	if (cpu_is_mx51() && (pdev->id == 0)) {
 		priv->phy1clk = clk_get(dev, "usb_phy1");
 		if (IS_ERR(priv->phy1clk)) {
 			ret = PTR_ERR(priv->phy1clk);
-- 
1.7.3.4

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

* [PATCH v2] unbreak ehci-mxc on otg port of i.MX27
  2011-01-13 13:53   ` [PATCH v2] " Eric Bénard
@ 2011-01-13 17:48     ` Sergei Shtylyov
  2011-01-13 18:02       ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Sergei Shtylyov @ 2011-01-13 17:48 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

Eric B?nard wrote:

> commit 711669e5b80b6f2d88f61ed8a9681f83d8cbd201 fixed port 0 support

    Please also specify the commit summary in parens, as asked by Linus. I think 
I have already asked you to do so.

> for i.MX51 but broke it for (at least) i.MX27 which doesn't have
> a usb_phy1 clock but has a pdev->id 0.

> Signed-off-by: Eric B?nard <eric@eukrea.com>
> Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
> Cc: Sascha Hauer <s.hauer@pengutronix.de>

WBR, Sergei

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

* [PATCH v2] unbreak ehci-mxc on otg port of i.MX27
  2011-01-13 17:48     ` Sergei Shtylyov
@ 2011-01-13 18:02       ` Greg KH
  0 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2011-01-13 18:02 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jan 13, 2011 at 08:48:17PM +0300, Sergei Shtylyov wrote:
> Hello.
> 
> Eric B?nard wrote:
> 
> >commit 711669e5b80b6f2d88f61ed8a9681f83d8cbd201 fixed port 0 support
> 
>    Please also specify the commit summary in parens, as asked by
> Linus. I think I have already asked you to do so.

No need, I can handle it.

thanks,

greg k-h

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

end of thread, other threads:[~2011-01-13 18:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-13  9:06 [PATCH] unbreak ehci-mxc on otg port of i.MX27 Eric Bénard
2011-01-13  9:12 ` Sascha Hauer
2011-01-13  9:17   ` Eric Bénard
2011-01-13 13:53   ` [PATCH v2] " Eric Bénard
2011-01-13 17:48     ` Sergei Shtylyov
2011-01-13 18:02       ` Greg KH
2011-01-13 10:48 ` [PATCH] " Arnaud Patard (Rtp)
2011-01-13 12:17 ` Sergei Shtylyov
2011-01-13 12:22 ` Sergei Shtylyov

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.