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 DE1CFEB64D7 for ; Wed, 21 Jun 2023 17:32:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 39D5986197; Wed, 21 Jun 2023 19:32:48 +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="COW2Vey8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7204E86103; Wed, 21 Jun 2023 19:32:46 +0200 (CEST) Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) (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 EF3F586103 for ; Wed, 21 Jun 2023 19:32:43 +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-yw1-x112c.google.com with SMTP id 00721157ae682-5701eaf0d04so63809547b3.2 for ; Wed, 21 Jun 2023 10:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1687368762; x=1689960762; 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=u2XfSTrP+kq4qWCEGQ7JzakqBfpbduobFuw14H9eePA=; b=COW2Vey8N3mxvOYO3h3vUhbSJnK+VNJS6Cg+K3+fCap8c+LNZKmBJIOuiARqYA1Izd 3TF4iP9hnfq8qJp3/D0avsLVfssSDHmL/KAH51B702e5AHar0LvSRDUGbK1IXiTdHnqP RlCCDlZzX4WY30HEHktSlX79BOFs4oX+NSUjk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687368762; x=1689960762; 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=u2XfSTrP+kq4qWCEGQ7JzakqBfpbduobFuw14H9eePA=; b=LdXlhvDz5GYHG8f5il2FFlJWvMyb8V2qxtonm0oa9ZsWYmMvPsKjCEI6CIGkiz744D te2w0cJWuGXuogPw27SOrnKOY3id/OJw920irIhpHyDKwf04hE/ZDxHUPRSJyjm2THaO LA7mFHSUgTKhoZxXHVOEw/nH0Z/pHfiAATLxJyzXl3382zLVSB9K30zvwRHCMW117Q/b 1XneyQ7/fie88TBzxE4bTLqPyT3tORgW+9Unp2hQTedQvQ/sj/sruc/UDBK6dyVPGJQV HfKFFaLCxK3fsjdWuhPEIrt9WXsZbQAnSVf7PAlbFE8V1NjlV/T004cV6rHRWnXrZwi7 EdeQ== X-Gm-Message-State: AC+VfDyclWRi4DMyxOaBmZH94Vj5bGqKrA4Li38TAHEVvQI5GqBl+Mc0 a6Ebmf5zsl9j4pkY6GV3jOdy/A== X-Google-Smtp-Source: ACHHUZ7GhkCGmlARNFMZh/+6HMOfRINskCbqG9MjggkFRzmnBDoglqq/vWFJCVAwYyTgkMsu37m4Uw== X-Received: by 2002:a81:a109:0:b0:565:5478:713c with SMTP id y9-20020a81a109000000b005655478713cmr13970060ywg.0.1687368761433; Wed, 21 Jun 2023 10:32:41 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-1822-f178-f78c-4fe8.res6.spectrum.com. [2603:6081:7b00:6400:1822:f178:f78c:4fe8]) by smtp.gmail.com with ESMTPSA id v20-20020a814814000000b0055d7f00d4f7sm1246779ywa.22.2023.06.21.10.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 10:32:41 -0700 (PDT) Date: Wed, 21 Jun 2023 13:32:39 -0400 From: Tom Rini To: Julien Panis Cc: u-boot@lists.denx.de, vigneshr@ti.com Subject: Re: [PATCH] arm: mach-omap2: am33xx: musb: Fix condition for USB device definition Message-ID: <20230621173239.GX3931582@bill-the-cat> References: <20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8brSiUbtdnBHsdhW" Content-Disposition: inline In-Reply-To: <20230621-fix_usb_ether_init-v1-1-2156923994a9@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 --8brSiUbtdnBHsdhW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 21, 2023 at 05:56:56PM +0200, Julien Panis wrote: > This patch fixes a bad condition for USB device definition. > This prevents from getting a "No USB device found" error. >=20 > Fixes: 6815a66ad7430 ("am33xx: musb: Remove unused configuration logic") > Signed-off-by: Julien Panis > --- > This patch fixes a bad condition which leads to > 'no USB device found' error, in usb_ether_init() > function for instance. > --- > arch/arm/mach-omap2/am33xx/board.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am3= 3xx/board.c > index ecc0a592e993..000c0d7712f9 100644 > --- a/arch/arm/mach-omap2/am33xx/board.c > +++ b/arch/arm/mach-omap2/am33xx/board.c > @@ -208,7 +208,7 @@ int cpu_mmc_init(struct bd_info *bis) > =20 > /* AM33XX has two MUSB controllers which can be host or gadget */ > #if (defined(CONFIG_AM335X_USB0) || defined(CONFIG_AM335X_USB1)) && \ > - defined(CONFIG_SPL_BUILD) > + !defined(CONFIG_SPL_BUILD) > =20 > static struct musb_hdrc_config musb_config =3D { > .multipoint =3D 1, Well, that's just going to break USB networking in SPL, which is supposed to be the only case for this code. It's been a while since I poked at this particular part of the code and board, is the gadget port one with a "normal" mini port, or do we need one of the USB A <-> USB A cables for it? My general recollection of when I did 6815a66ad7430 was that the device tree should control the ports in U-Boot itself. --=20 Tom --8brSiUbtdnBHsdhW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSTNDEACgkQFHw5/5Y0 tyyHpwv/VxyBZ6lirmZdoi6bw3szrzgY6OKANCybYi+gMKFk0Hw3LroEtedoN/Xi f/0TJ07tPIdKx/MFg+6Sh19s/GdqjJ+7BMAzZ4onUUo6n/9wluf5rqIExx6cfmpg 1TG+tJlf31ZShXJ/LgYeZYCmX4oG/k4mw2NHGJugHueYOePAR/X+sCilGTxMRjtK TX0SNLOcCYe13Xrm3YUMdPASheX7SRXzwJRKZaqKQiW1bfI57HiHfYPfe2XttVBk usrjgUBuC7UN/JxI6ipAg7BFKirZTEffarNAVyh6mu9C90SeWlDzeeEGD+/mVohq hNvk/3OqKOMSrDMQ5lPDAOZHBYoU0GFAzycNaVRLB/OcKBpSH/JJdXiKA9QUM2RJ mPDItXwkeYnF6t2wmqmBQ7w3o//dtZfWWk+w55nsYWwFvP20qiGr1OTDAceaqDYw BN7vqEfhTAoS5fOuDImkT8mbdmUEutK/PghKcE6ON9fJ+jFY8GWDFS1sxe+egtmt 2801kNWJ =hf0K -----END PGP SIGNATURE----- --8brSiUbtdnBHsdhW--