* [PATCH 0/2] usb: musb: host: fixes for 3.14-rc
@ 2014-02-04 13:25 Roger Quadros
2014-02-04 13:28 ` [PATCH 1/2] usb: musb: host: Fix SuperSpeed hub enumeration Roger Quadros
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Roger Quadros @ 2014-02-04 13:25 UTC (permalink / raw)
To: gregkh, balbi; +Cc: linux-usb, linux-omap, linux-kernel, Roger Quadros
Hi Greg,
Patch 1 fixes SuperSpeed hub enumeration on beaglebone.
Patch 2 fixes remote-wakeup resume on beaglebone.
Felipe has Acked the 1st patch but still needs to Ack the 2nd one.
Patches are based on 3.14-rc1
cheers,
-roger
Ajay Kumar Gupta (1):
usb: musb: host: Fix SuperSpeed hub enumeration
Roger Quadros (1):
usb: musb: core: Fix remote-wakeup resume
drivers/usb/musb/musb_core.c | 10 +++++++++-
drivers/usb/musb/musb_host.c | 3 +++
2 files changed, 12 insertions(+), 1 deletion(-)
--
1.8.3.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] usb: musb: host: Fix SuperSpeed hub enumeration
2014-02-04 13:25 [PATCH 0/2] usb: musb: host: fixes for 3.14-rc Roger Quadros
@ 2014-02-04 13:28 ` Roger Quadros
2014-02-04 13:29 ` [PATCH 2/2] usb: musb: core: Fix remote-wakeup resume Roger Quadros
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Roger Quadros @ 2014-02-04 13:28 UTC (permalink / raw)
To: gregkh, balbi; +Cc: linux-usb, linux-omap, linux-kernel
From: Ajay Kumar Gupta <ajay.gupta@ti.com>
Disables PING on status phase of control transfer.
PING token is not mandatory in status phase of control transfer
and so some high speed USB devices don't support it. If such devices
are connected to MUSB then they would not respond to PING token
causing delayed or failed enumeration.
[Roger Q] Fixes enumeration issues with some Super-Speed USB hubs
e.g. Dlink DUB-1340
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
---
drivers/usb/musb/musb_host.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index ed45572..abb38c3 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -1183,6 +1183,9 @@ irqreturn_t musb_h_ep0_irq(struct musb *musb)
csr = MUSB_CSR0_H_STATUSPKT
| MUSB_CSR0_TXPKTRDY;
+ /* disable ping token in status phase */
+ csr |= MUSB_CSR0_H_DIS_PING;
+
/* flag status stage */
musb->ep0_stage = MUSB_EP0_STATUS;
--
1.8.3.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] usb: musb: core: Fix remote-wakeup resume
2014-02-04 13:25 [PATCH 0/2] usb: musb: host: fixes for 3.14-rc Roger Quadros
2014-02-04 13:28 ` [PATCH 1/2] usb: musb: host: Fix SuperSpeed hub enumeration Roger Quadros
@ 2014-02-04 13:29 ` Roger Quadros
2014-02-04 15:27 ` [PATCH 0/2] usb: musb: host: fixes for 3.14-rc Greg KH
2014-02-20 10:59 ` Roger Quadros
3 siblings, 0 replies; 7+ messages in thread
From: Roger Quadros @ 2014-02-04 13:29 UTC (permalink / raw)
To: gregkh, balbi; +Cc: linux-usb, linux-omap, linux-kernel, rogerq
During resume don't touch SUSPENDM/RESUME bits of POWER register
while restoring controller context. These bits might be changed
by the controller during resume operation and so will be different
than what they were during suspend.
e.g. SUSPENDM bit is set by software during USB global suspend but
automatically cleared by the controller during remote wakeup or
during resume. Setting this bit back while restoring context
causes undesired behaviour. i.e. Babble interrupt is generated
and USB is broken.
Signed-off-by: Roger Quadros <rogerq@ti.com>
---
drivers/usb/musb/musb_core.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index fc192ad..a501542 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2157,11 +2157,19 @@ static void musb_restore_context(struct musb *musb)
void __iomem *musb_base = musb->mregs;
void __iomem *ep_target_regs;
void __iomem *epio;
+ u8 power;
musb_writew(musb_base, MUSB_FRAME, musb->context.frame);
musb_writeb(musb_base, MUSB_TESTMODE, musb->context.testmode);
musb_write_ulpi_buscontrol(musb->mregs, musb->context.busctl);
- musb_writeb(musb_base, MUSB_POWER, musb->context.power);
+
+ /* Don't affect SUSPENDM/RESUME bits in POWER reg */
+ power = musb_readb(musb_base, MUSB_POWER);
+ power &= MUSB_POWER_SUSPENDM | MUSB_POWER_RESUME;
+ musb->context.power &= ~(MUSB_POWER_SUSPENDM | MUSB_POWER_RESUME);
+ power |= musb->context.power;
+ musb_writeb(musb_base, MUSB_POWER, power);
+
musb_writew(musb_base, MUSB_INTRTXE, musb->intrtxe);
musb_writew(musb_base, MUSB_INTRRXE, musb->intrrxe);
musb_writeb(musb_base, MUSB_INTRUSBE, musb->context.intrusbe);
--
1.8.3.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] usb: musb: host: fixes for 3.14-rc
2014-02-04 13:25 [PATCH 0/2] usb: musb: host: fixes for 3.14-rc Roger Quadros
2014-02-04 13:28 ` [PATCH 1/2] usb: musb: host: Fix SuperSpeed hub enumeration Roger Quadros
2014-02-04 13:29 ` [PATCH 2/2] usb: musb: core: Fix remote-wakeup resume Roger Quadros
@ 2014-02-04 15:27 ` Greg KH
2014-02-04 15:32 ` Roger Quadros
2014-02-20 10:59 ` Roger Quadros
3 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2014-02-04 15:27 UTC (permalink / raw)
To: Roger Quadros; +Cc: balbi, linux-usb, linux-omap, linux-kernel
On Tue, Feb 04, 2014 at 03:25:47PM +0200, Roger Quadros wrote:
> Hi Greg,
>
> Patch 1 fixes SuperSpeed hub enumeration on beaglebone.
> Patch 2 fixes remote-wakeup resume on beaglebone.
>
> Felipe has Acked the 1st patch but still needs to Ack the 2nd one.
>
> Patches are based on 3.14-rc1
Why wouldn't these come into my tree from Felipe like normal? Why
should I take them?
confused,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] usb: musb: host: fixes for 3.14-rc
2014-02-04 15:27 ` [PATCH 0/2] usb: musb: host: fixes for 3.14-rc Greg KH
@ 2014-02-04 15:32 ` Roger Quadros
0 siblings, 0 replies; 7+ messages in thread
From: Roger Quadros @ 2014-02-04 15:32 UTC (permalink / raw)
To: Greg KH; +Cc: balbi, linux-usb, linux-omap, linux-kernel
On 02/04/2014 05:27 PM, Greg KH wrote:
> On Tue, Feb 04, 2014 at 03:25:47PM +0200, Roger Quadros wrote:
>> Hi Greg,
>>
>> Patch 1 fixes SuperSpeed hub enumeration on beaglebone.
>> Patch 2 fixes remote-wakeup resume on beaglebone.
>>
>> Felipe has Acked the 1st patch but still needs to Ack the 2nd one.
>>
>> Patches are based on 3.14-rc1
>
> Why wouldn't these come into my tree from Felipe like normal? Why
> should I take them?
>
> confused,
I should have mentioned it earlier. Felipe told me to send it to you as he's out
on vacations. But never-mind, I can wait till he picks it up.
cheers,
-roger
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] usb: musb: host: fixes for 3.14-rc
2014-02-04 13:25 [PATCH 0/2] usb: musb: host: fixes for 3.14-rc Roger Quadros
` (2 preceding siblings ...)
2014-02-04 15:27 ` [PATCH 0/2] usb: musb: host: fixes for 3.14-rc Greg KH
@ 2014-02-20 10:59 ` Roger Quadros
2014-02-20 15:46 ` Felipe Balbi
3 siblings, 1 reply; 7+ messages in thread
From: Roger Quadros @ 2014-02-20 10:59 UTC (permalink / raw)
To: balbi; +Cc: gregkh, linux-usb, linux-omap, linux-kernel, Roger Quadros
Hi Felipe,
Hope you had a good vacation :).
Could you please take a look at these two fixes? Thanks.
cheers,
-roger
On 02/04/2014 03:25 PM, Roger Quadros wrote:
> Hi Greg,
>
> Patch 1 fixes SuperSpeed hub enumeration on beaglebone.
> Patch 2 fixes remote-wakeup resume on beaglebone.
>
> Felipe has Acked the 1st patch but still needs to Ack the 2nd one.
>
> Patches are based on 3.14-rc1
>
> cheers,
> -roger
>
> Ajay Kumar Gupta (1):
> usb: musb: host: Fix SuperSpeed hub enumeration
>
> Roger Quadros (1):
> usb: musb: core: Fix remote-wakeup resume
>
> drivers/usb/musb/musb_core.c | 10 +++++++++-
> drivers/usb/musb/musb_host.c | 3 +++
> 2 files changed, 12 insertions(+), 1 deletion(-)
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] usb: musb: host: fixes for 3.14-rc
2014-02-20 10:59 ` Roger Quadros
@ 2014-02-20 15:46 ` Felipe Balbi
0 siblings, 0 replies; 7+ messages in thread
From: Felipe Balbi @ 2014-02-20 15:46 UTC (permalink / raw)
To: Roger Quadros; +Cc: balbi, gregkh, linux-usb, linux-omap, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
Hi,
On Thu, Feb 20, 2014 at 12:59:38PM +0200, Roger Quadros wrote:
> Hi Felipe,
>
> Hope you had a good vacation :).
sure had.
> Could you please take a look at these two fixes? Thanks.
you should have received my confirmation email ;-)
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-02-20 15:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04 13:25 [PATCH 0/2] usb: musb: host: fixes for 3.14-rc Roger Quadros
2014-02-04 13:28 ` [PATCH 1/2] usb: musb: host: Fix SuperSpeed hub enumeration Roger Quadros
2014-02-04 13:29 ` [PATCH 2/2] usb: musb: core: Fix remote-wakeup resume Roger Quadros
2014-02-04 15:27 ` [PATCH 0/2] usb: musb: host: fixes for 3.14-rc Greg KH
2014-02-04 15:32 ` Roger Quadros
2014-02-20 10:59 ` Roger Quadros
2014-02-20 15:46 ` Felipe Balbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).