Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756324Ab3HMOBa (ORCPT ); Tue, 13 Aug 2013 10:01:30 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:39523 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752430Ab3HMOB3 convert rfc822-to-8bit (ORCPT ); Tue, 13 Aug 2013 10:01:29 -0400 MIME-Version: 1.0 In-Reply-To: <520A3847.4090506@linutronix.de> References: <51F2BE6F.3010008@linutronix.de> <51F2D427.7050106@linutronix.de> <51F2DD90.2030405@linutronix.de> <20130729165329.GA5773@linutronix.de> <51F6ABA2.7060102@linutronix.de> <20130809160339.GA14829@linutronix.de> <5205516D.1030707@cogentembedded.com> <5209DCB9.8020705@linutronix.de> <520A3206.5080505@linutronix.de> <520A3847.4090506@linutronix.de> Date: Tue, 13 Aug 2013 09:01:27 -0500 Message-ID: Subject: Re: [PATCH] usb: musb: am335x: Do not remove the session bin HOST-only mode From: Bin Liu To: Sebastian Andrzej Siewior Cc: Sergei Shtylyov , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, balbi@ti.com, george.cherian@ti.com Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1465 Lines: 39 Sebastian, On Tue, Aug 13, 2013 at 8:44 AM, Sebastian Andrzej Siewior wrote: > This was a misunderstanding then. Sorry. I understood that the bin has > to be unset and then the controller set it once a device there. You meant ID pin? I think it should be set all the time since the driver initialized for host-only mode, if it is unset, the controller has not way to know if a device is plugged or not. > >> I am not sure if anywhere mentioned about the ID pin, but ASAIK all >> the different boards using am335x have ID pin grounded for host port. > evm is the only I am aware of. The evm-sk and beagle bone have just one > port. Beagle bone black is not mainline. You meant the dts only supports one port for evm-sk and bone? The boards physically have two ports, usb0 is device only, usb1 is host only. > This is the case already. From musb_start() > ? > if (musb->port_mode != MUSB_PORT_MODE_HOST && > (devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS) { > musb->is_active = 1; > } else { > devctl |= MUSB_DEVCTL_SESSION; > } > ? great! then the host port on gp evm should work now, right? > >>>> -Bin. > > Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/