From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424213AbcFHLBo (ORCPT ); Wed, 8 Jun 2016 07:01:44 -0400 Received: from hydra.openmoko.org ([144.76.72.4]:35501 "EHLO hydra.openmoko.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161090AbcFHLBm (ORCPT ); Wed, 8 Jun 2016 07:01:42 -0400 X-Greylist: delayed 2432 seconds by postgrey-1.27 at vger.kernel.org; Wed, 08 Jun 2016 07:01:42 EDT From: joerg Reisenweber To: Felipe Balbi Cc: Tony Lindgren , Pali =?ISO-8859-1?Q?Roh=E1r?= , 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 Subject: Re: Nokia N900: musb is in wrong state after boot Date: Wed, 08 Jun 2016 12:20:45 +0200 Message-ID: <4684873.SkgQPQ65qP@saturn> User-Agent: KMail/4.11.5 (Linux/3.12.57-44-desktop; KDE/4.11.5; x86_64; ; ) In-Reply-To: <87h9d49exz.fsf@linux.intel.com> References: <201601091616.04193@pali> <20160608095321.GH22406@atomide.com> <87h9d49exz.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3703601.eBue3Ziqxy"; micalg="pgp-sha1"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart3703601.eBue3Ziqxy Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Wed 08 June 2016 13:02:00 Felipe Balbi wrote: > Hi, > > Tony Lindgren writes: > > 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 > #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? (disclaimer: all IIRC) Alas it doesn't, at least for the MentorGraphics MUSB in OMAP3. We use MUSB_TEST_FORCE_HOST in the H-E-N N900 hostmode hack (http://talk.maemo.org/showthread.php?p=696115) and it's really just a test thing that doesn't support full hostmode as we know it. There is definitely no other way to force the state machine in MUSB core into hostmode, than the "ID pin grounded" message from PHY via ULPI bus up to the MUSB, whether it's real or *sw-triggered by a command to PHY*. Shame on the MUSB core design for this. /jOERG --nextPart3703601.eBue3Ziqxy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEABECAAYFAldX8YQACgkQ7Xtwhpk1UgwqzwCgoCvpp0/4vVQOXX17uYDHVDlM BUEAnjOK3BBfk4Q9oC1DKDba6eMk1sHA =nfAr -----END PGP SIGNATURE----- --nextPart3703601.eBue3Ziqxy--