Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21951628rwd; Fri, 30 Jun 2023 01:45:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlExjpEaRhekA1uhBeXBzMZ5QA7UQYGJQpEQA5/qBg8XQoUbm9hbE1U1082hPh5Y4ZaoPz8M X-Received: by 2002:a05:6358:417:b0:134:d122:b681 with SMTP id 23-20020a056358041700b00134d122b681mr1910457rwd.20.1688114743696; Fri, 30 Jun 2023 01:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688114743; cv=none; d=google.com; s=arc-20160816; b=my8pUAg3X8x5/v+PMpAlj+ExS9iBwO4ULU0t11dX0Vqd4z09VZwyFqws4T2QULIxNt D3YyWaVc/tmoNxYgQgt01DvpGd90tdtyZvn3AgolTeVONKfdeVOn0445TYs5ggrjPInM qZyczFiUeRftMMcr2xNF0/wjhbCjZDERnIqfxIlCfG+TZ7Hrt5GeyY4snFftn9dAT/3w P2vwNB5BKZE4u2KMV41O1ZnYeZrF9hFb2YV2D4rstRGeyP0ep8S8r+JJbyvhdhE1azjJ pDjGp9SSfU0uRT7oaYmJ9s9zycOlo/EhqwhzSSR66EDZRFuKKKyHLHxVgPTgXnpa9Cxh /4Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=D/3vNAtGem+SW3NEw8TxWc36bYxPo7w7vyt7ieHf+us=; fh=RvLDIu3CVsMfGRIC/pEpqKtW13R/7dzfcCs8QfpMyfw=; b=UmgyHonRt2658NMRPBNda8MF5nPj/QVEmGDH0aoR9po+j79KVkpTWPDjSWe96ajMWu mqMLRjqNuLiBH1TaoBYCqKHLQBqg58MgzLNDgAqX2I4tK8SAAaFUmw8pT1RatXwYwibd 3loZJLuW0Ifri9gU/Lx17mUP3YWSCOPyepQ0+hohwzOMt6Ry9gUOWzNro92B+3MjEiGR CQWYOH6W33RIcZytTnO5jFnkNzscRKkKhcyWsNe095a5cRvx6Eol9iyWt0stksbctSFi 5uH5RBmEywqxD005IEX1RVT8X8T6L8029foG8JxVdwckqSeeN+k/pMPS9wv2lNKbM55O jzNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=X9CYKpAw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ch10-20020a056a00288a00b0067dc62810ebsi5903386pfb.266.2023.06.30.01.45.29; Fri, 30 Jun 2023 01:45:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=X9CYKpAw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232541AbjF3IbF (ORCPT + 99 others); Fri, 30 Jun 2023 04:31:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232571AbjF3Iay (ORCPT ); Fri, 30 Jun 2023 04:30:54 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 239EA35B0 for ; Fri, 30 Jun 2023 01:30:52 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-992bc8b5c5cso142716566b.0 for ; Fri, 30 Jun 2023 01:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1688113850; x=1690705850; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=D/3vNAtGem+SW3NEw8TxWc36bYxPo7w7vyt7ieHf+us=; b=X9CYKpAwj2I4bs/RrW9wetKKNYxVSjpGHS8N5x8UXnynSXk6ZoJ/U+4zVtXpGWT52P ZHmbmhW0HJ898oAw7jB2Bu1G7X+s4Mwn1v8197pmj+jT+M76DTpylqcaW+bEbZq2sqt3 wyZeXDMF7lCF95g/TG4uMmjnIE4PQ1OrBQOu8allSpgxlIo4MJsjn/gjWnx8nhxVCl/j o6GD8Cih0hFF25gKsiH3hLt1K0yBkbKSKvfRHTRBpHM9Ano88KR8IyUSjxGuMb0e4s6O aeh8ZYFs9pKAKU65QjG4EdGvvZTOwVRc5ZAgBS7yw8Vl8gDps/ZNb/hl3EwvqyLu6iXF JIBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688113850; x=1690705850; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D/3vNAtGem+SW3NEw8TxWc36bYxPo7w7vyt7ieHf+us=; b=FPSTi9jQ0lt+7D8wWVmWdSENZSuKFyQMr0n7Rf3ZC4HRmVa2vS8vjT7VfmL8+EWL0Q LjnJ5wK+dRRQLCI8x4KhgKm+zgGZTqCFx1X2BTDlXz7SMlVJ3EoyBK2MDR7LBKn4fVXX uT6r1dXWXr+1Fq9NzHAewaUi0IWD3BZ7YViOokOIZEbupWHf5WjCRKtp8nAIvHz9ocfP JTyYptbrc8a6mk4WSvAhXum/1cQ1+nEAylfmg1t8hHcKj3SBR2BYSXjc9WBNnZPatQjy YNz3tL4C7ZdQKI6ngT64JKroafUSFidaQIskxGVOCJ27JTGwPmhnC5RrA9dO9lrlahhk zy/A== X-Gm-Message-State: ABy/qLb4UlG1wwDexAwmGzEaeueHexp2GYL1SYWV+ixEqpVfD3o+9htR QvvWesyOgjFFh4G2O4PPYAR7p7gr5ZGDWV9FZ1r9DQ== X-Received: by 2002:a17:906:4a91:b0:991:d2a8:658a with SMTP id x17-20020a1709064a9100b00991d2a8658amr1588541eju.34.1688113850590; Fri, 30 Jun 2023 01:30:50 -0700 (PDT) Received: from [192.168.147.121] ([77.205.21.63]) by smtp.gmail.com with ESMTPSA id k7-20020a170906a38700b00985ed2f1584sm7680503ejz.187.2023.06.30.01.30.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Jun 2023 01:30:50 -0700 (PDT) Message-ID: Date: Fri, 30 Jun 2023 10:30:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 0/3] Configure usb0 as peripheral on am335x boards Content-Language: en-US To: Tony Lindgren Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, vigneshr@ti.com, nm@ti.com References: <20230629-usb0-as-peripheral-v1-0-167f78a11746@baylibre.com> <20230630072047.GK14287@atomide.com> From: Julien Panis In-Reply-To: <20230630072047.GK14287@atomide.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Tony, On 6/30/23 09:20, Tony Lindgren wrote: > Hi, > > * Julien Panis [230629 13:10]: >> This series configures usb0 dr_mode as 'peripheral' for am335x-evm, >> am335x-evmsk, and am335x-icev2. This USB port is mainly used for >> RNDIS and DFU. > Is this a mini-B connector? Just wondering if it was originally attempted > to be configured as OTG or how it ended up with a host configuration.. It's a micro USB-AB connector. I don't know how it ended up with a host configuration, it looks like an oversight. Maybe Vignesh or Nishanth can confirm (?) > >> Initially, a series was submitted to overlay dr_mode in u-boot specific >> device trees ('-u-boot.dtsi'): >> https://lore.kernel.org/all/20230621-fix_usb_ether_init-v2-0-ff121f0e8d7a@baylibre.com/ >> >> It was finally decided to modify linux device trees. > Do we need these as fixes? If so is there a fixes tag for these? I don't think so. The u-boot series mentioned above was submitted to fix an error returned by usb_ether_init() function. This error appeared after changes in u-boot (arch/arm/mach-omap2/am33xx/board.c). The u-boot commit is: 6815a66ad7430 ("am33xx: musb: Remove unused configuration logic"). But this commit is right actually, and the error appeared because dr_mode was not properly configured for am335x-evmsk and am335x-icev2 dts. In other words, this u-boot commit is correct but revealed an oversight in dr_mode configuration for these boards. So, there is not a fixes tag here. That was just an omission in device trees. > > Regards, > > Tony Julien