Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B0CC8EB64DD for ; Sat, 24 Jun 2023 20:53:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 80E7185F9A; Sat, 24 Jun 2023 22:53:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="s3YlqIIA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8720E85F29; Sat, 24 Jun 2023 22:52:59 +0200 (CEST) Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9BBA480181 for ; Sat, 24 Jun 2023 22:52:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-bad0c4f6f50so2916799276.1 for ; Sat, 24 Jun 2023 13:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1687639975; x=1690231975; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Jjpca+gXmAhIkJn7bm/V1VbT0vkMinW+D9hnQvheHP0=; b=s3YlqIIALoJ5YRL3WiR7iNeHeuj99ZyvzuBR26pG3RiEOolPkDfvG8O9tcUX5PrGYn XFNCqzeuXr47oW+L/5k1EfULs1J+Xzy4qwrAObbyhCjVPBPq3iJDbb5+uHJU+tX6H+Zh RlOxm/Rg+cekv2V9g0UbyyxgdOTMtsnNb6BQw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687639975; x=1690231975; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Jjpca+gXmAhIkJn7bm/V1VbT0vkMinW+D9hnQvheHP0=; b=g4B8vUiCrA5VwhCqNuontIsn65EDXqV5IAA6wmft1NCcVl70v2yK2XWqHZ9Jg750Wl ieQ68nZbSEzKproTFaMgyZQ5j4IJ2BNBkQuzMBeRPoW3P/O65sM3/A9Xhtf4Flw7pCna yYoDhS/eHJSriAU8a0XBOlOGBDv/yXilqrlr1FMTBWeu0sRCvlp90vpGGQx+vKbgTCbI EjPOVtrfbpX8JPnKHw9rFYuBhrQDBQnuYwQlLns6FS5vaOkA8RDxwiAnjt1ugPwE/693 IatGDdguq42eUPHqykMWZd8DhSOiWhh1lEAmGEWfPzp7eLNkugTOULHTPO6/6QgiN7f5 DrQA== X-Gm-Message-State: AC+VfDwqYWOGLfCxJLXLbtRHujazFu1Zmjurlr7SUzLoNAnwaMlxZrJh JBLwT9pp/Cg9SdX7Bzwie0IU2exe9XpK/uGzUEKUwQ== X-Google-Smtp-Source: ACHHUZ5G0nmAhsrG0Mv1zGtiRtFwD9SHWngIvEFnTT97PswNatZoqL90VZF3tyGxrC3ks1I2SRmcVg== X-Received: by 2002:a0d:e856:0:b0:56d:25b:17e7 with SMTP id r83-20020a0de856000000b0056d025b17e7mr33416698ywe.4.1687543181016; Fri, 23 Jun 2023 10:59:41 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-97ad-f7fb-dabd-8624.res6.spectrum.com. [2603:6081:7b00:6400:97ad:f7fb:dabd:8624]) by smtp.gmail.com with ESMTPSA id i187-20020a0dc6c4000000b0056d1c26f5b0sm2555381ywd.21.2023.06.23.10.59.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 10:59:40 -0700 (PDT) Date: Fri, 23 Jun 2023 13:59:38 -0400 From: Tom Rini To: Julien Panis Cc: nm@ti.com, u-boot@lists.denx.de, vigneshr@ti.com Subject: Re: [PATCH v2 0/2] Fix 'no USB device found' error. Message-ID: <20230623175938.GR3931582@bill-the-cat> References: <20230621-fix_usb_ether_init-v2-0-ff121f0e8d7a@baylibre.com> <20230622154915.GO3931582@bill-the-cat> <8bcf4961-12ea-33c6-de2b-b9f2d1b6c6c1@baylibre.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lbgmubuIHWCdXJIl" Content-Disposition: inline In-Reply-To: <8bcf4961-12ea-33c6-de2b-b9f2d1b6c6c1@baylibre.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --lbgmubuIHWCdXJIl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 23, 2023 at 09:42:01AM +0200, Julien Panis wrote: >=20 >=20 > On 6/22/23 17:49, Tom Rini wrote: > > On Thu, Jun 22, 2023 at 04:34:34PM +0200, Julien Panis wrote: > > > This series fixes usb0 dr_mode for am335x-icev2 > > > and am335x-evmsk. It must be set to 'peripheral' > > > in order to avoid 'no USB device found' error, > > > in usb_ether_init() function. > > >=20 > > > Signed-off-by: Julien Panis > > > --- > > > Changes in v2: > > > - Drop the modification made in arch/arm/mach-omap2/am33xx/board.c > > > - Configure usb0 dr_mode as peripheral in 'am335x-icev2-u-boot.dtsi' > > > and 'am335x-evmsk-u-boot.dtsi' device trees. > > > - Link to v1: https://lore.kernel.org/r/20230621-fix_usb_ether_init-v= 1-1-2156923994a9@baylibre.com > > >=20 > > > --- > > > Julien Panis (2): > > > arm: dts: am335x-icev2-u-boot: Configure peripheral mode for u= sb0 > > > arm: dts: am335x-evmsk-u-boot: Configure peripheral mode for u= sb0 > > >=20 > > > arch/arm/dts/am335x-evmsk-u-boot.dtsi | 4 ++++ > > > arch/arm/dts/am335x-icev2-u-boot.dtsi | 4 ++++ > > > 2 files changed, 8 insertions(+) > > I'll ask the first question that Nishanth might also ask, which is why > > don't these belong in the kernel dts files? Thanks! > >=20 >=20 > That's a good question. :) Looping Nishanth... > usb0 dr_mode property is already overlayed for am335x-evm, > in 'am335x-evm-u-boot.dtsi'. So, it appeared more consistent > to me to do the same thing for am335x-icev2 and am335x-evmsk. > I guess that the goal is to configure usb0 as host by default at > kernel boot, since we do not necessarily want to use this usb0 > as peripheral from userspace. > Is it the right explanation @Vignesh @Nishanth ? It's I think even more likely that the am335x_evm fragment needs to go upstream too. --=20 Tom --lbgmubuIHWCdXJIl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSV3YcACgkQFHw5/5Y0 tyyjjwwAmAzGWMCfzmj3PbmOYezEelg7QH++rCNnKf0NshM234aOr3VNePmq7C4l 3iosAPnZ42ywapzZ1+8q/I9iXZFumPZpioFzK6HnJ2/SRhrt4rCkdVpRYOpnZlbv 5r/6whJbzx0R4dg9hy/AiyGSc3cmzlNNua3nDRK0mxWi0gHQYqWbAf1MTfF9vGcy bpXwy/Hkq/G+webdyL80iQIRs/NGZQn+7cP+u9GuK8uInijJINJVU8TAnomaJEu1 fsCJKr7NKqt8bA8wNegawSMMcxwkyeT9DGKCWaJMeoaZUD1vLS+AGQKKyhuAIEeD gK8FaWPtggsYu8m2gl+LSXJSgICdbBhqBLyZXaFTUX0kLippPAhBa3kHue/i4nE8 UZFNLRZ1VsuOqbAZB0GqEvHvWj9KYAQt5EYZm4382Vdet5znn1E5elwzbNi2Wd2i 5H4MfKhnc94DfNzQ2qG0ayLQxYhWm+Fu4ITmfa38DUloHv4VwYesS6Nz2cMCiOzO w6NwdmB0 =kF6g -----END PGP SIGNATURE----- --lbgmubuIHWCdXJIl--