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 CFD8CEB64D7 for ; Wed, 21 Jun 2023 17:11:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AE7518634E; Wed, 21 Jun 2023 19:10:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20221208.gappssmtp.com header.i=@baylibre-com.20221208.gappssmtp.com header.b="Brqgwi8S"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 507C58633F; Wed, 21 Jun 2023 17:57:27 +0200 (CEST) Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (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 A2C3D847BC for ; Wed, 21 Jun 2023 17:57:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jpanis@baylibre.com Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b44eddb52dso88869081fa.3 for ; Wed, 21 Jun 2023 08:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1687363044; x=1689955044; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=jqy1KcbZ5LdUOBnLuRXDvdv4aywIRSSYWfeRLa8gbhw=; b=Brqgwi8SD6hzYAjza8MjmLMZYjZNs2W4zDyY/HWUngZ3pgiHRo4iuTCk42Tm0MTflI VeHsearGxVNwFYgb5Xbgo0UhqqYKWVf97o8LcF6pPDfjB67QJNfN7DPcLdr4uLNjqpJw wKcj+2qNjh/Ca6iyP1Q7Hl5F6a9vHjgd+wI9aV92SWlEzCYvE5/sgY1N5wWf5kfz5zlD E+8pLxjzf9kO15Hczmimu3UtabDxVMlxljA0FsYLJ6hLExxqRWveXUMzZPpVCggg1hzk JdTZmH4e63pZ8kjXWoGV3tnnnTEZBWtnC0yT5CBE+XFmF8T6cNpY2qECn8broAsI9441 eQLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687363044; x=1689955044; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jqy1KcbZ5LdUOBnLuRXDvdv4aywIRSSYWfeRLa8gbhw=; b=D/MtsPsIAYuX19YOo3bTlFshWWZA2Ni1Z4Qsw35Z9mEsgr9osO5iFkVaW5tP1imO6v wtjmIwkq+YuabyMV1d5hHib40MPHQZAPARRbx4T7cz1b9lvhLxZI5oQwU9w+FFR6+1PS SqcI96O03n3U8yiQpeCY62Je5LbPPxzSV12FZdI/l2u9byKoJjC18Crpo0hO4FEGtkoI ritP5HveDiNZZVHwe3wn8+VHZ6IqDTImMO9dq3kKeNHm4OQaACly8rUkCE/fd3DOjcYT yXGwWOtKG6meC8F2N+NrPAGbmTVC1meyR8htwb5JAElF8PhexhVNxRJs/FN4tsvQ7RiD YeIA== X-Gm-Message-State: AC+VfDxIR/BR9bsHOPmoCHOtVRXZCauf1jcHJ/McFdEYjAkYSaqOoqLA sVFb4ikCRtY8dQ5/JWJDSRSkgg== X-Google-Smtp-Source: ACHHUZ4XzSI8Q7lep5pWSeJDQ48gwOwuObnbBWS2hCR8uU7JrGKYbSsaE5DORM92OvHwD2IpT7AiIg== X-Received: by 2002:a05:651c:94:b0:2b4:7374:186a with SMTP id 20-20020a05651c009400b002b47374186amr6406168ljq.46.1687363043866; Wed, 21 Jun 2023 08:57:23 -0700 (PDT) Received: from [127.0.1.1] (128.21.205.77.rev.sfr.net. [77.205.21.128]) by smtp.gmail.com with ESMTPSA id s13-20020a170906454d00b00988f168811bsm3261130ejq.135.2023.06.21.08.57.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 08:57:23 -0700 (PDT) From: Julien Panis Date: Wed, 21 Jun 2023 17:56:56 +0200 Subject: [PATCH] arm: mach-omap2: am33xx: musb: Fix condition for USB device definition MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230621-fix_usb_ether_init-v1-1-2156923994a9@baylibre.com> X-B4-Tracking: v=1; b=H4sIAMcdk2QC/x2NQQrCMBBFr1JmbaBJqwuvIhKS+mNmYZSZKELp3 Z26+IvH5/FWUghD6TysJPiw8rMZ+MNAS03tDsc3YwpjmMZT8K7wN741R/QKidy4uzmXuXg/HW1 kYk4KlyW1pe7qI2mH7MdLYPq/drlu2w9mDwItfQAAAA== To: u-boot@lists.denx.de Cc: trini@konsulko.com, vigneshr@ti.com, Julien Panis X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687363043; l=1195; i=jpanis@baylibre.com; s=20230526; h=from:subject:message-id; bh=b7fpoZNFRnTGwYNsxL6HKVMll6qEyvQVL/HeedQECEQ=; b=nxBuSwX3l9RW6vnBaRs4uDVXTzjDAGl9KTLguFfHaTPLAaahRYFahFLcMU/Swmu0uWQF+jbOM BESF0JvkTafBCnmfmYvmXMqnKUN01Esdhg82vqFaUtxU8x4Dc7yiQoX X-Developer-Key: i=jpanis@baylibre.com; a=ed25519; pk=8eSM4/xkiHWz2M1Cw1U3m2/YfPbsUdEJPCWY3Mh9ekQ= X-Mailman-Approved-At: Wed, 21 Jun 2023 19:10:31 +0200 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 This patch fixes a bad condition for USB device definition. This prevents from getting a "No USB device found" error. 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(-) diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/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) /* 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) static struct musb_hdrc_config musb_config = { .multipoint = 1, --- base-commit: 19b77d3d23966a0d6dbb3c86187765f11100fb6f change-id: 20230621-fix_usb_ether_init-4bf4f1135113 Best regards, -- Julien Panis