From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424658AbcFHKUA (ORCPT ); Wed, 8 Jun 2016 06:20:00 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:38880 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423317AbcFHKT4 (ORCPT ); Wed, 8 Jun 2016 06:19:56 -0400 From: Pali =?utf-8?q?Roh=C3=A1r?= To: Felipe Balbi Subject: Re: Nokia N900: musb is in wrong state after boot Date: Wed, 8 Jun 2016 12:19:52 +0200 User-Agent: KMail/1.13.7 (Linux/3.13.0-86-generic; KDE/4.14.2; x86_64; ; ) Cc: Tony Lindgren , 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 References: <201601091616.04193@pali> <20160608095321.GH22406@atomide.com> <87h9d49exz.fsf@linux.intel.com> In-Reply-To: <87h9d49exz.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2329848.HyLNZrtp1J"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201606081219.52718@pali> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart2329848.HyLNZrtp1J Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wednesday 08 June 2016 12:02:00 Felipe Balbi wrote: > Hi, >=20 > Tony Lindgren writes: > > * Pali Roh=C3=A1r [160607 05:53]: > >> > Tony, what do you think about that patch? > >>=20 > >> Tony, PING > >=20 > > 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. >=20 > #define MUSB_TEST_FORCE_HOST 0x80 >=20 > Can someone confirm on MUSB's docs (and actual running system) that > this does what's supposed to do? Maybe this can help you: https://garage.maemo.org/plugins/ggit/browse.php/?p=3Dkernel-power;a=3Dblob= ;f=3Dkernel-power-2.6.28/debian/patches/usbhostmode.diff Patch for 2.6.28 omap1 kernel which adds usb host mode support for Nokia N900. Look for MUSB_TESTMODE, MUSB_TEST_FORCE_HOST is called together with MUSB_TEST_FORCE_FS or MUSB_TEST_FORCE_HS (line 355). =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart2329848.HyLNZrtp1J Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAldX8UgACgkQi/DJPQPkQ1LJfQCfcds/8c4RcEKr6XMisF84K4dn SzgAn0XB8WMzjmDjlUFG03uzilJlj51F =VSXP -----END PGP SIGNATURE----- --nextPart2329848.HyLNZrtp1J--