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 0AC1BC4345F for ; Sat, 27 Apr 2024 07:25:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3DD69882FB; Sat, 27 Apr 2024 09:25:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=manjaro.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=manjaro.org header.i=@manjaro.org header.b="XO0Naq3/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 90D01882D9; Sat, 27 Apr 2024 09:25:48 +0200 (CEST) Received: from mail.manjaro.org (mail.manjaro.org [IPv6:2a01:4f8:c0c:51f3::1]) (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 2ABA1882FB for ; Sat, 27 Apr 2024 09:25:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dsimic@manjaro.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1714202745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wgkA0rafc78NuuCRqL9LCci5JXil77l2aGtSHoWtG/w=; b=XO0Naq3/RtrDty2St141yADJXr5fixOR1KcaXXsij6Rl5p3K8o1d33I+hMkv5ORvhNcJcx qfnxhpqF69DLJARo6b9/xMJfp/H4I71fr5IXbodAgt/OKC8baBkYnEoENfH0jGUUsuKRQU cBD89xuUAkCGkulbhtqX0W/JjQj50WE6zDmjr9/B9Sb5xE6E5mXB7GX2XWZY/2SvTbRLyU 69EsbEB5GsyeisVpRXEdPV4tJ9ZITFiOB0CNQFY4avKm25ghxGYftv1TaVOXOFHCtzbYdZ RR5Hoj2bikrFJ+WmpK2JnwBqvI9nuvc/OKN9FEsz6hm3q4NkCtLFqcVKu4Ixzg== Date: Sat, 27 Apr 2024 09:25:44 +0200 From: Dragan Simic To: Tim Harvey Cc: Marek Vasut , Tom Rini , Simon Glass , Fabio Estevam , Jaehoon Chung , u-boot@lists.denx.de Subject: Re: [PATCH v2] cmd: mmc: allow use of hardware partition names for mmc partconf In-Reply-To: References: <20240426171205.1382212-1-tharvey@gateworks.com> <9f5dc653-8252-4da7-81bc-a76280cf4c68@denx.de> Message-ID: <7aac74dc3adf48f746520fa9e6c83699@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org 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 Hello Tim and Marek, On 2024-04-26 19:36, Tim Harvey wrote: > On Fri, Apr 26, 2024 at 10:25 AM Marek Vasut wrote: >> On 4/26/24 7:12 PM, Tim Harvey wrote: >> > +static const char *mmc_partnames[] = { >> > + "user", >> > + "boot0", >> > + "boot1", >> > + "gp1", >> > + "gp2", >> > + "gp3", >> > + "gp4", >> >> Uh, maybe gp%d are indexed from zero too ? >> >> (sorry for the confusion) > > but 'mmc hwpartition' does not list them 0 based: > u-boot=> mmc hwpartition > switch to partitions #0, OK > mmc2(part 0) is current device > Partition configuration: > No enhanced user data area > No GP1 partition > No GP2 partition > No GP3 partition > No GP4 partition > > I'm ok with either, I'm just not sure what is more understandable and > standard. I can confirm that JEDEC also starts the numbering of the GP partitions from one in some of its documents. Though, it's a bit intriguing why the numbering of the boot partitions starts from zero. Perhaps there's some good reason for that difference.