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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 846B4C433F5 for ; Wed, 27 Oct 2021 22:27:37 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9C9046023E for ; Wed, 27 Oct 2021 22:27:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9C9046023E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 127D2831BA; Thu, 28 Oct 2021 00:27:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=FreeBSD.org 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; secure) header.d=freebsd.org header.i=@freebsd.org header.b="Wz490uLe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4A27980D1C; Thu, 28 Oct 2021 00:26:25 +0200 (CEST) Received: from mx2.freebsd.org (mx2.freebsd.org [96.47.72.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 029C38326F for ; Thu, 28 Oct 2021 00:26:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=karels@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "R3" (verified OK)) by mx2.freebsd.org (Postfix) with ESMTPS id F136491396; Wed, 27 Oct 2021 22:26:20 +0000 (UTC) (envelope-from karels@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hfjvw6C26z3C2S; Wed, 27 Oct 2021 22:26:20 +0000 (UTC) (envelope-from karels@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1635373580; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2BRQreBxYmyP9XBRVXBPTi0+jcMUnzhkbBJweFPfTgM=; b=Wz490uLevapRg47rcMr9t9XuuhSER42FBlapdc9lmC5YuAkQ/pu+AxNtNlujaAi8Et/6hv 5dGzFB5z0toYW0VoFlfzIusZx21IQ1HbpCCwxZHvGuUQ+BCAzgnqbs+nhU4suQ6JTjkLsy ihjDpC3DjURRKsgZkb0JTmsRJgunsBCdpirpkqPFPOSoi1Tq54rFuWR/CWBQ6hSugTN0TD tKRuowKIpAM03awxy6nXFUR6My+rlb0tIDwNwlQICgx0ozJ0ZlW39RroMTWcgZzpTRIYKd FIyrRiNBL5vifHCM12gWlRtsPQWRCDp4lY+Z0acxMbqhO2NLL6duQAXAOENCiQ== Received: by freefall.freebsd.org (Postfix, from userid 1387) id C4979F2D0; Wed, 27 Oct 2021 22:26:20 +0000 (UTC) From: karels@FreeBSD.org To: u-boot@lists.denx.de Cc: Rick Chen , Aswath Govindraju , Tero Kristo , Mike Karels Subject: [PATCH] Fix MMC numbering issue for Raspberry Pi 3 Date: Wed, 27 Oct 2021 22:26:15 +0000 Message-Id: <20211027222615.18988-1-karels@FreeBSD.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1635373580; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2BRQreBxYmyP9XBRVXBPTi0+jcMUnzhkbBJweFPfTgM=; b=Q0n21Vr0pul9PM3OwfGnYK6L8RSGgVOEFGSYvDYRYzQXiakEGwno2kzzk8RcHKv9AORnpK HxxDa63XEB0yWnAhpJ1faIoRpqpVeACiTRq8z2fS9eIpJ6uRjGp/qdEV2iy0ZG3aeV8oqs +VFskiRT2HD/YtQPIq6UHc7jj/KS5miW/DZXFIz9UVDFzENFl3KiodQZoLBwjEpufq3ULX zvRtMOYQdlgZL5beKcszv1DQW/26Hq+46gvXyScanOUrx3FV8L0DcBtMhYQYybjfePRaP1 F6ADSE13/XsTlqSLovjmPxFzPVmxkz/vy1lilXR4ew/LLVhlhfHVdnk2lFDqzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1635373580; a=rsa-sha256; cv=none; b=gfla+xAuPFNp+rq3dXthV9g7iSB/r0Qwf5TCRXzRJWgY5fQA53MdvAaoA5bYd89PO2Is9F 9zqt/M+KuImEwiUQZD27Q+nM7EFiteGyhl5r48WbemcaNC6SxM+zTtl1HP7XwfbLNiIOSn +c6wt1lhR9malBJtwcDdWLJEl/1hvjg9mNiPuj+s41KTWRwwDSnFJ0AJ7CrrNp1AuG/G4z tgx0e7JzUi5TnIiZuZQAOXqd2Rm/PdebBhLAXhPYZfBRX91guoqIzv3ApDTa4s6SbjMdru pT486SNpgzbP/Vz3+1mBEppaZIMyBcY0OsYUFunpM1zWf9ZBE9j2enfDF5H+kg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-Mailman-Approved-At: Thu, 28 Oct 2021 00:27:33 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: karels@FreeBSD.org Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Mike Karels Using mmc.dtbo from rpi-firmware to switch the controller for the SD card slot from sdhci to sdhost causes the numbering to change; the SD card is then not recognized at boot. Add to the range checked. --- include/configs/rpi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/rpi.h b/include/configs/rpi.h index 55768a46da..4c5c1ac31f 100644 --- a/include/configs/rpi.h +++ b/include/configs/rpi.h @@ -137,7 +137,8 @@ #if CONFIG_IS_ENABLED(CMD_MMC) #define BOOT_TARGET_MMC(func) \ func(MMC, mmc, 0) \ - func(MMC, mmc, 1) + func(MMC, mmc, 1) \ + func(MMC, mmc, 2) #else #define BOOT_TARGET_MMC(func) #endif -- 2.32.0