[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <520A3206.5080505@linutronix.de>
Date: Tue, 13 Aug 2013 15:17:58 +0200
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Bin Liu <binmlist@...il.com>
CC: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
balbi@...com, george.cherian@...com
Subject: Re: [PATCH] usb: musb: am335x: Do not remove the session bin HOST-only
mode
On 08/13/2013 03:03 PM, Bin Liu wrote:
> Sebastian,
Hi Bin,
>>>> + if (musb->port_mode == MUSB_PORT_MODE_HOST) {
>>>> + val = USBMODE_IDDIG_A;
>>>> + val |= USBMODE_ID_MUX_REG;
>>>
> I am going to so some tests today for this. I don't object to use the
> mode register, but am wondering why we have to play with it for
> host-only mode. The ID pin is grounded for host-only mode, which
> should cause the same as setting mode register.
I've been looking at the wiki page and it did not mention the ID pin
for the second port. If it is grounded then this piece can be removed
and the magic trick is just to skip the try_idle() call.
I haven't found anything saying that it is required to clear the
session bin in host mode, only in OTG. And then, I would assume to
receive a session interrupt once we have the proper VBUS level which
does not happen.
> -Bin.
Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists