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 45BC9C433EF for ; Wed, 13 Jul 2022 20:40:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C284C839F6; Wed, 13 Jul 2022 22:40:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="c8k63bi7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 842A782068; Wed, 13 Jul 2022 22:40:27 +0200 (CEST) Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) (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 27CCA839F6 for ; Wed, 13 Jul 2022 22:40:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=festevam@gmail.com Received: by mail-oi1-x229.google.com with SMTP id r82so39688oig.2 for ; Wed, 13 Jul 2022 13:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eIKIdHBqY6NElUouF3KZeRANEbRicp1fxGyjLsK/xUI=; b=c8k63bi7rFwt5cjwej0ncfDyxLEMkYqW98ALvqwMY9svRgQ3bJQC/n+LGkE5seJg36 WEEguykDEHZmSGWtHZUq4Qwey7VBx3PbWccdxYrgxbMW9lFqMTkQEkP/XsYGr/iMLD1e Gkw9H9okr9E2ilsKahSAn4IeaOrci21VuT7pix9Tufsm4MjU3d708W4eoWLMufW/NYck A/hDqXaFVZnLecxt6Oq4ML0DSWr2PFhW+Afb822Wm9CkTk8FdS2IuDPijXxv6Er50dgB gvR9y7p2CkGNeZavtIkBN0ZwXBlUsX3dvuYvJDLu3ZBD3c6JyVBEY80+FTzEmzXNy2oK tJWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eIKIdHBqY6NElUouF3KZeRANEbRicp1fxGyjLsK/xUI=; b=FV+Hk2QQz7ONMFbnTEYmRedkWyU4yGAcj5lYUA2ct1RIxbfyj1+UXRxi5/QVh9BYSi l/0iECCnJpJsfoA2SZBJDJ73irt1aI7mbvyVSO2X+goAYD79hiliCTjBNXgXUL9x8DXU 48plYq+kjZ3lZ3SlgX1Z2FKaHN1f73n3uXRTqz1jM4Z8LC+xOLSrucH5k8NpGY2VcjiW gorka9hcWYjegrdC0U7HPXRHe7jKB9XZ9tescErC0/xh7Yui6pMWh67VijxGdTCk7x6+ FfRr6KR2Iobvm8DpfzSwxW0K8gJ68oPbUmD+Figi70SuysGbEidYBDFLroGsXfuxywrp P0vw== X-Gm-Message-State: AJIora/jIegkznwqG18oCq80LvFAOTibgjqGOP5PtzCdZDbpztFMFJdb h7AGUrMLgqBWBaNHJLw0tXQ= X-Google-Smtp-Source: AGRyM1u+TEUyYTbO32afAaP13ixqzSavkTgBgNKYCbSPCQzTeliB/VeNHPb0t4FeyqoVCLuO6xeG9g== X-Received: by 2002:a05:6808:1803:b0:335:5e61:cfda with SMTP id bh3-20020a056808180300b003355e61cfdamr5492764oib.63.1657744822548; Wed, 13 Jul 2022 13:40:22 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:485:4b69:9851:da7e:97fa:f32f]) by smtp.gmail.com with ESMTPSA id u19-20020a056871059300b0010cb6fa9166sm3747209oan.0.2022.07.13.13.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 13:40:21 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Cc: ye.li@nxp.com, peng.fan@nxp.com, marex@denx.de, u-boot@lists.denx.de, Fabio Estevam Subject: [PATCH] spl: sdp: Pass the USB index to board_usb_init() Date: Wed, 13 Jul 2022 17:39:46 -0300 Message-Id: <20220713203946.3136555-1-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean From: Fabio Estevam board_usb_init() should receive the controller_index as its first parameter instead of having it hardcoded as 0. All in-tree users have CONFIG_SPL_SDP_USB_DEV as 0, so this error should not affect any board. Fix it by passing controller_index as the parameter of board_usb_init(). Signed-off-by: Fabio Estevam --- common/spl/spl_sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index 36c31aff099a..cc4fb4f7cca2 100644 --- a/common/spl/spl_sdp.c +++ b/common/spl/spl_sdp.c @@ -19,7 +19,7 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image, usb_gadget_initialize(controller_index); - board_usb_init(0, USB_INIT_DEVICE); + board_usb_init(controller_index, USB_INIT_DEVICE); g_dnl_clear_detach(); ret = g_dnl_register("usb_dnl_sdp"); -- 2.25.1