Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753637AbcKHJKf (ORCPT ); Tue, 8 Nov 2016 04:10:35 -0500 Received: from gagarine.paulk.fr ([109.190.93.129]:57061 "EHLO gagarine.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752672AbcKHJKa (ORCPT ); Tue, 8 Nov 2016 04:10:30 -0500 Message-ID: <1478596164.2045.2.camel@paulk.fr> Subject: Re: [PATCH] ARM: tegra: nyan: Mark all USB ports as host From: Paul Kocialkowski To: Peter De Schrijver , Jon Hunter Cc: Thierry Reding , devicetree@vger.kernel.org, Stephen Warren , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Alexandre Courbot , linux-arm-kernel@lists.infradead.org Date: Tue, 08 Nov 2016 10:09:24 +0100 In-Reply-To: <20161108085420.GG2478@tbergstrom-lnx.Nvidia.com> References: <20160918102852.6593-1-contact@paulk.fr> <20161107132854.GF12559@ulmo.ba.sec> <13e7ff98-8bc2-ccf7-94bb-4e1d3c61b20d@nvidia.com> <20161108085420.GG2478@tbergstrom-lnx.Nvidia.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-5Vn7iimBs6YXTAY5PWg3" X-Mailer: Evolution 3.22.2 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3382 Lines: 84 --=-5Vn7iimBs6YXTAY5PWg3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le mardi 08 novembre 2016 =C3=A0 10:54 +0200, Peter De Schrijver a =C3=A9cr= it=C2=A0: > On Mon, Nov 07, 2016 at 02:09:31PM +0000, Jon Hunter wrote: > >=20 > > On 07/11/16 13:28, Thierry Reding wrote: > > > * PGP Signed by an unknown key > > >=20 > > > On Sun, Sep 18, 2016 at 12:28:52PM +0200, Paul Kocialkowski wrote: > > > > Nyan boards only have host USB ports (2 external, 1 internal), ther= e is > > > > no OTG-enabled connector. > > > >=20 > > > > Signed-off-by: Paul Kocialkowski > > > > --- > > > > =C2=A0arch/arm/boot/dts/tegra124-nyan.dtsi | 2 +- > > > > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) > > >=20 > > > Where is this information coming from? I don't have one of the Nyans > > > myself, but one of the Tegra132 devices I have, which I think was > > > derived from one of the Nyans uses one of the external host ports as > > > forced recovery port, for which it would need OTG. > > >=20 > > > I suspect that the way to get U-Boot onto the Nyans is via tegrarcm? > > > In that case I think one of the ports must be OTG. > >=20 > > It is true that the port on the back on the nyan-big can be used with > > recovery mode. I was thinking that this is not a true OTG port as it is > > just a 4-pin type A socket and does not have an ID pin. Thinking some > > more about this the USB spec does include a "Host Negotiation Protocol > > (HNP)" that allows a host and device to swap roles and so keeping it as > > OTG seems valid afterall. >=20 > I don't think the bootrom implements that though. I expect recovery mode > to just program the controller in device mode, without performing any > negotiation. That would make sense. However, if there's a way (even not implemented yet, but a possible way) to= have the kernel configure this port as USB device instead of host dynamically (e= .g. without changing this bit in the dts), then I think it makes sense to keep = the OTG marking and drop this patch. After all, switching to USB device mode doesn't necessarily have to come fr= om the ID pin. --=20 Paul Kocialkowski, developer of free digital technology at the lower levels Website: https://www.paulk.fr/ Coding blog: https://code.paulk.fr/ Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/ --=-5Vn7iimBs6YXTAY5PWg3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIcBAABCAAGBQJYIZZGAAoJEIT9weqP7pUMFoAP/11a0uqqCHwlTd55ILYS6xOl Bin3uYkLs9w+DoCae4SmPcKK+xJCF7y+VdcoJqCexexlm01AVHWP6pvdpz/4+zeU nIHVJpF0Bx8aEQbwubWv0jLiyeCxVk0fHOx/D1o4iMEi363aY6SNwRHPPgiBb2Pf +AnnVl+tZ7zCvH/fivB76p+N3gN1yY1my/7mw9x9lPIVIzK3tYUToGo59v7p1O4g ymjDOQKgXSre+fdmAQHj0uV3dShhdhqurdFxKeMDvVWacVql1Q0c/GOJ1Ih43Lg6 bKE5znLYryC1E3vV2thFD4OAFu09SIhbhvd/SNCieBFeRScVwheO2MfQDPc0Ii9o oaOcyf+Tdc4qcLB68MMGAK1Ba6PMfyemYlIY3XTZFpydMCqIHJkEqWipG7d84YCk hhcInjo3d0gKPwl7Ewq3Jpi/2htsKeKPwO8TNgjpqEEnuSGXBetd0ol72RM1Y3kJ 7fE0BPKD7VH/whgqzcIsC16fy6Ijcny7NObNQuGAGaOAJa+1IpkvJaH+z158sk+A Iu0lDWWYKzmUImc5doVcv27PnEov5YXSnfzBw46yzvXypgyOQuLju14LnIa9xqzo NK9XpLfYL4Zp62RnPgwBj7IkSGSBGT3xGxv3HwPF5G7wsGWK4tG4p1Qy2MAjZ2ou yG3x4V9FMhvN1IKFNd3U =LCEA -----END PGP SIGNATURE----- --=-5Vn7iimBs6YXTAY5PWg3--