From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933097AbcFHMEJ (ORCPT ); Wed, 8 Jun 2016 08:04:09 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:34302 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751365AbcFHMEH (ORCPT ); Wed, 8 Jun 2016 08:04:07 -0400 Subject: Re: Nokia N900: musb is in wrong state after boot To: Felipe Balbi , Tony Lindgren , =?UTF-8?Q?Pali_Roh=c3=a1r?= References: <201601091616.04193@pali> <3690314.8jDXSUDcRZ@saturn> <20160121192113.GM19432@atomide.com> <201601231357.32629@pali> <20160529103824.GM29844@pali> <20160607125044.GI29844@pali> <20160608095321.GH22406@atomide.com> <87h9d49exz.fsf@linux.intel.com> Cc: joerg Reisenweber , Felipe Balbi , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Ivaylo Dimitrov , Sebastian Reichel , Aaro Koskinen , Pavel Machek , Nishanth Menon From: Sergei Shtylyov Message-ID: <71cb45ec-a269-d510-df34-eb6eaa781da8@cogentembedded.com> Date: Wed, 8 Jun 2016 15:04:02 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <87h9d49exz.fsf@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/8/2016 1:02 PM, Felipe Balbi wrote: >> * Pali Rohár [160607 05:53]: >>>> Tony, what do you think about that patch? >>>> >>> >>> Tony, PING >> >> Yeah I don't know, AFAIK we don't have a generic way to >> force MUSB to change mode without ID pin. If you have figured >> something generic for that which does not actually tinker with >> the PHY registers directly, that should be the generic >> musb_set_mode() that we've been wondering about for years. > > #define MUSB_TEST_FORCE_HOST 0x80 > > Can someone confirm on MUSB's docs (and actual running system) that this > does what's supposed to do? The MUSB programmer's guide says the CID (sic) input is ignored when the Force_Host bit is set. The host mode is entered when the Session bit is set. But I don't have a MUSB hardware readily available to confirm. MBR, Sergei