From mboxrd@z Thu Jan 1 00:00:00 1970 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 4A8FCC77B61 for ; Thu, 13 Apr 2023 21:11:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1D87485CF8; Thu, 13 Apr 2023 23:11:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.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; unprotected) header.d=kernel.org header.i=@kernel.org header.b="FaCzlkkP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 544EC80A0C; Thu, 13 Apr 2023 23:11:30 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7D82C85CB1 for ; Thu, 13 Apr 2023 23:11:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D8D4E60F0C; Thu, 13 Apr 2023 21:11:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFCD5C4339B; Thu, 13 Apr 2023 21:11:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681420285; bh=UuQDZxu91FuVMwnUzHdGJI72fNYRVZ3AAodvkXDCu/U=; h=From:To:Cc:Subject:Date:From; b=FaCzlkkPjeknx3M+jg5Zm35dDsPKQDuo5gOQhAx18DPiebznMdL65pq31TecMOIiP SRErBBygfwcvEVXO/COjEzoM0Ih0/yVoRuwn9dZdmAT0R6y0zHGHs1AD0LcXKmX8ae fQEJ9DeUYJ+liWO6yRA2KM6xMxFST6Ey8MuPOkB03XbWTMBgdHVA3KsRCvx/cfeE/e AThw2+gUD1AuhfIB/+PEQDZPwap8NGQHzGHP02On2usAPOcp7ts/TubJKjo7Z2MuLg VmFXCzhrnjSO/qtq4ssgTo1WbqSKZFYQpRvLfQZi30EKSdmdylPwjLLgwXJoAQGXAO zeuNKsOj6g0RQ== Received: by pali.im (Postfix) id 8B9E3788; Thu, 13 Apr 2023 23:11:22 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Jaehoon Chung , Peng Fan , Stefan Roese Cc: u-boot@lists.denx.de Subject: [PATCH u-boot 0/4] mmc: Explain and cleanup partition selection Date: Thu, 13 Apr 2023 23:10:53 +0200 Message-Id: <20230413211057.10975-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.8 at phobos.denx.de X-Virus-Status: Clean Some people do not want to read review comments in emails. So put comments and explanation into the source code itself; make emmc partition selection code more explicit and validate configuration in bubt command. Pali Rohár (4): mmc: spl: Make partition choice in default_spl_mmc_emmc_boot_partition() more explicit cmd: mvebu/bubt: Validate EXT_CSD[179] eMMC register in mmc_burn_image() sunxi: eMMC: Add comments explaining mapping between bootpart and mmc_switch_part() board: purism: Use U-Boot mmc function for converting boot part to part access arch/arm/mach-sunxi/board.c | 12 ++++++++++- board/purism/librem5/librem5.c | 6 +----- cmd/mvebu/bubt.c | 24 +++++++++++++++++++-- common/spl/spl_mmc.c | 38 +++++++++++++++++++++++++++------- 4 files changed, 64 insertions(+), 16 deletions(-) -- 2.20.1