Received: by 10.213.65.68 with SMTP id h4csp1318110imn; Thu, 29 Mar 2018 02:24:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/+l6VmUfoRMZ3ARYLG9NjtWj2mxMr77fhyKUa559ZIhWxwzltm7tgYZwTleKg/h/xdd7vp X-Received: by 2002:a17:902:12e:: with SMTP id 43-v6mr7390304plb.77.1522315498013; Thu, 29 Mar 2018 02:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522315497; cv=none; d=google.com; s=arc-20160816; b=aPss77YekPqxsHnVJT0JDW4Q3ngArMMLixvt5ZJOzRL35quhJ65YJvNS+AzJHx71HE bximo3FwyiXUEKWM1rIVGc0TdcqfzFR34svUwrTwTCa5ne5FCnO1BOpQOy/byy11lONj lFg+KUXFhszhFSSTYjpl9tncjrJLQ/Vf8cIpd/u4pwJC8l1GrL1+PLbXHS+xSXMVwUYj DEkWxnobh0tUmS40YqaLhP8nYwE9M3SygFn4L4smkA4AzIbxqZ83PisNHuaH+0p9tsvO T1W39PcJwZjENGMkF08znkoA9Gpm4XSTcHVblyPcWFly+ECRfEaJdE8FPtMn72WHinbJ ltFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Hxj5sirvauCmcWDzx9Z4IyzEn7lC6q3KO98eWe+TTCo=; b=A+Siwhyb7bCLmQRjtCl2Jyr3U128/3/1HJMbX9HL+aLKtrXAC+muMXz/OuPfi1qNOz qPUFaCkN0bk3lwVQtiNN46ncL5wza0CaYHwUsy9ukybc3/5w1tBk3/zs6Pu1AOxxkfkR Po9X8wxadT4sQpsJ/Fva+Uc5m3Aoagsul1U0gphy6IQwnGisMIxMXm4ORPhnbHaABeXl M5LNzN45ckX4o+KyBw9mzwKvy6BUwEAXezS8pWNiOXqSVbn+REvC/B3UDBHoPXprINMX uOS2If/xmNlQu8XZMwsk23Ou8XOUZPyu84eB9g1w8/EKYJ6B/BbuEOtZn2rTm36Kl41f ERfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m13si3771628pgs.482.2018.03.29.02.24.44; Thu, 29 Mar 2018 02:24:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752343AbeC2JXb (ORCPT + 99 others); Thu, 29 Mar 2018 05:23:31 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34481 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752286AbeC2JX1 (ORCPT ); Thu, 29 Mar 2018 05:23:27 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 8F81D20729; Thu, 29 Mar 2018 11:23:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 632242055C; Thu, 29 Mar 2018 11:23:26 +0200 (CEST) Date: Thu, 29 Mar 2018 11:23:26 +0200 From: Maxime Ripard To: Paul Kocialkowski Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Greg Kroah-Hartman , Bin Liu , Chen-Yu Tsai Subject: Re: [PATCH] usb: musb: Support gadget mode when the port is set to dual role Message-ID: <20180329092326.dayuccomq5zrywqo@flea> References: <20180328215213.29538-1-contact@paulk.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3xfx55pm2vby3zbv" Content-Disposition: inline In-Reply-To: <20180328215213.29538-1-contact@paulk.fr> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3xfx55pm2vby3zbv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 28, 2018 at 11:52:13PM +0200, Paul Kocialkowski wrote: > This allows dual-role ports to be reported as having gadget mode by the > musb_has_gadget helper. This is required to enable MUSB at all with MUSB > glue layers that set the port mode to MUSB_PORT_MODE_DUAL_ROLE at init. >=20 > Most notably, this allows calling musb_start when needed in the virtual > MUSB root HUB, regardless of whether the current mode should be gadget > or host. >=20 > This fixes USB OTG on Allwinner devices that I could test it with, > mainly A20 devices. >=20 > Signed-off-by: Paul Kocialkowski Surely there's more to it than that. The gadget mode of A20 boards have been working in the past, including when compiling with mUSB setup as dual role. Is this a regression since a particular commit? Or is there another, deeper issue overlooked in the commit log? Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --3xfx55pm2vby3zbv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlq8sI0ACgkQ0rTAlCFN r3SApA//SjVYr8ba2jF2UA1jjeIu3YSzR5Ph05uU1Xs/bgDo7Nef8DCHSGsiFTfu XDYNLnJG9eCwW5f0CcPaSux4QYFlliQiBFcOw9ue7ql3JR5RPEPM04d99jXXMuzX XNy6FcV7BUXJ9SB+gzAjnpP81F60OrsN3EL1qE4s643YkuMCxLWTvULFo0Dsag3k YvfmLmNSNu7qYbMG0gHXbE/TrteWggWZnFO3DS8DcDcKO58ahD2G7Rin7UQdEydY WnDHW78uP9RGj+IJEMDZp80oz2YsUh15tkmfJO95zqaQvjMwJ4xHvfR7ilITYP+2 iqQmK90JcmCndlfq7xn7g0baVkkR8dbh9oY0K1u4gPBMZHuwGxiP3jk68/eFpDc/ pKRpaO8Z4sKr/h/9cH8lv6gprFIVSz9rtrbzqaA4RMKTSvl8CjXAQXK5lRf7eVzp 1TsWU/Xg86cCNjzv9Vy5WbbtIj/W5pvz17/B1AJyfIwUV/terLiF/Vdj6+U1a1GP IAdKoih8nDGkKt9i3VkQOX/MVL3X8KsLeiHAIVElfT7wRwp4wLbCGPsfi4HM34tE 3Pg87eaFKcn6zV3u3hygxA3Aspeet8f6hX5krI5JKDesG528+ZtBXeKDcXd7gHDk h1ELH3BF4dhliaBYmy5+KUZBn7FCcWsbbwOn/v0ejRw6aIUsZ8E= =WUG9 -----END PGP SIGNATURE----- --3xfx55pm2vby3zbv--