Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932460AbcKHJwL (ORCPT ); Tue, 8 Nov 2016 04:52:11 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:13027 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753255AbcKHJwI (ORCPT ); Tue, 8 Nov 2016 04:52:08 -0500 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Mon, 07 Nov 2016 13:51:33 -0800 Subject: Re: [PATCH] ARM: tegra: nyan: Mark all USB ports as host To: Peter De Schrijver 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> CC: Thierry Reding , Paul Kocialkowski , , Stephen Warren , , , Alexandre Courbot , From: Jon Hunter Message-ID: <58046fbb-8e19-e629-770a-940a40ca6ef9@nvidia.com> Date: Tue, 8 Nov 2016 09:47:42 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161108085420.GG2478@tbergstrom-lnx.Nvidia.com> X-Originating-IP: [10.21.132.110] X-ClientProxiedBy: UKMAIL102.nvidia.com (10.26.138.15) To UKMAIL101.nvidia.com (10.26.138.13) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1656 Lines: 43 On 08/11/16 08:54, Peter De Schrijver wrote: > On Mon, Nov 07, 2016 at 02:09:31PM +0000, Jon Hunter wrote: >> >> On 07/11/16 13:28, Thierry Reding wrote: >>> * PGP Signed by an unknown key >>> >>> On Sun, Sep 18, 2016 at 12:28:52PM +0200, Paul Kocialkowski wrote: >>>> Nyan boards only have host USB ports (2 external, 1 internal), there is >>>> no OTG-enabled connector. >>>> >>>> Signed-off-by: Paul Kocialkowski >>>> --- >>>> arch/arm/boot/dts/tegra124-nyan.dtsi | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> 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. >>> >>> 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. >> >> 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. > > 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. I am not talking about the bootrom and I would not expect the bootrom to do that. However, the kernel could. Cheers Jon -- nvpublic