Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1099805ybz; Thu, 16 Apr 2020 02:54:05 -0700 (PDT) X-Google-Smtp-Source: APiQypLWzOzKtlpyvvWn4j45jaw0kNIPHJQJ1CvLmlZ8YRTUvRJvy78wqRK8J18zq2yMJTbzg4pM X-Received: by 2002:a05:6402:1f6:: with SMTP id i22mr6641369edy.271.1587030844904; Thu, 16 Apr 2020 02:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587030844; cv=none; d=google.com; s=arc-20160816; b=wFQGh0qJF4JDhhdYN0yQv0xe8eY85CdY/CVgfjbNj1RJn4iVA5p2/DRobY7l/e0495 lL+pMa6ZnU7X2H5kXPUCxoQcuc7xGQGcxw9D3i3B7t/SHJrZvZ/8Wp/88Tfjo4sJxeIk 9UxC7EL/dVJ5n569uCvpWF79tRzdWhgPSF1/kKd3y/HqcDjquv+iORZcMzwA0ckAalur 7dWMhy25tZDALJwbGaj/P7J3sVqMTfVNDj3DNECFo0AOHl7l+EVx3+Uy3R5SEq9XdS2y uZ6J0gw78bA/yP7L+GqgNP6m7kb2JCbJ7o9DlPqzrG4YnlVPyfv4hnGO0CqKM7839M7S o5nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=paRo5UDnOEg7qB4hHSdBgPIcs6LdtLmC5yNkL7Ll0CA=; b=EVv5QxAiN8eGJy39hO4HnagN+wUkvAycslxzoloBxHJPYFtXy6X0x8XAnpJtgPxLYx HUrqDqLW6GHW5+qyqeCvdXCRu0uZ3oN8VaONnTN1JCkyIITDYqQgul3YdUSDcw4pFjXN dMr67VK12+W47H7JK5+vZcFINCxa6+0Qez04aWloVpXkusDt7oMC6+O1Hz/Qrukxygts P4ncUeJZAsKXMX1zVQwgwQIBfJBmSr0c1Z1W8FAgbPeklsTzxy8wHXzLrmERPEgzJOoL RFLJY8PnSwh4bdXQKRYFUc5FN2w2866k0+wTapabyoHwa7D9LalyhzFnqJ/LuGeowrNi YBQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=emw+j18j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga2si9643185ejb.210.2020.04.16.02.53.41; Thu, 16 Apr 2020 02:54:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=emw+j18j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2504284AbgDPJwE (ORCPT + 99 others); Thu, 16 Apr 2020 05:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2504196AbgDPJvw (ORCPT ); Thu, 16 Apr 2020 05:51:52 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50333C061A0C for ; Thu, 16 Apr 2020 02:51:51 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id 131so5067562lfh.11 for ; Thu, 16 Apr 2020 02:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=paRo5UDnOEg7qB4hHSdBgPIcs6LdtLmC5yNkL7Ll0CA=; b=emw+j18jwjwelvCaDl9OIoc00snNDkHMEg3SXQYKMmCQE8QeCaRjaWItbj118CrGKd Q3wu2BjhEOoJmsb3xVTGfQyUaIMlfRWf6u4AStboFovGsr5VA6SQqdkLT712SB5nBYpI 2CPA8ALmU9t43tc3pp2TWDfo3ZwzWNho918zPcG3W3SeqAnox1dbYlkjJTnJsmXJLZxq 9zHi22Od8Xv5w4Q6BhzAOO20ZzW6ahmgTk9CHh3K9OA+8KZC+c0VFwMpPl2tg/CuS4zl /Og7doXYQjPOVy0m7uOJfbCmrch/C6KJl2bYJ3fo+N0SEh/n5mSmrvb5czViS/wpPFs3 Uf3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=paRo5UDnOEg7qB4hHSdBgPIcs6LdtLmC5yNkL7Ll0CA=; b=Z/ZdXOCwV7pcRKebJxUrGVxyB3F1/vmud1OmF3QaAw++nakylEFlJSw/eURDDoSj5C LLndJgnSZadyNXz8fvEJHwIFh+Q3ovitCK+N0SMGwZaAON2VW1VsDlb/tjz4VKsT2rZA e1N9m/gve7aD9wE3Lms8hTGbhdGewvXvsIztMoN3t/KFADv6qk9ukJs+jYBB4oiDl1XY 5LSstKQsdlwDOgP+vq7Q9p7GWIPdFuPuSe+vS0FpQNqGEQMDi9TGF3HCm5YgOhrVFGCU nqt5beWv8aI4iTUYdfFSmq2Z9TtpQzApPp3hwEhVrMpV33Z2Lt0QYNQ4aDm0yEpxq8gg nwJA== X-Gm-Message-State: AGi0PuYx83ic4C7MUcUBmYGDPo33TRNjYDkhPtr5OEmhiEzCAbPCOTX0 tBa1ZcQnoK6Q1p6cXSlgRzWf718g+8D/fSEblOd2tg== X-Received: by 2002:ac2:5c4e:: with SMTP id s14mr5643988lfp.77.1587030709790; Thu, 16 Apr 2020 02:51:49 -0700 (PDT) MIME-Version: 1.0 References: <20200406160914.14698-1-rminnich@google.com> In-Reply-To: <20200406160914.14698-1-rminnich@google.com> From: Linus Walleij Date: Thu, 16 Apr 2020 11:51:38 +0200 Message-ID: Subject: Re: [PATCH] mtd: parsers: Support '[]' for id in mtdparts To: "Ronald G. Minnich" Cc: =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , rminnich@google.com, Richard Weinberger , Vignesh R , linux-mtd@lists.infradead.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 6, 2020 at 6:10 PM Ronald G. Minnich wrote: > The MTD subsystem can support command-line defined partitions > for one or more MTD devices. > > The format is: > * mtdparts=[; * := :[,] > > The ':' separates the id from the partdef. > > On PCI MTD devices, the name can be the PCI slot name, > e.g. 0000:00:1f.5. There are two ':' in the name alone. > > Change the definition of so it can be bracketed > with '[]' and hence contain any number of ':'. > An opening '[' must be matched with a closing ']'. > The ':' continues to separate the mtd-id from the . > > Signed-off-by: Ronald G. Minnich It's a reasonable approach, I was a bit confused for a while because [] is both used as literals and as meta-characters in the syntax description which becomes a bit terse. But it's no big deal so: Reviewed- by: Linus Walleij > Change-Id: I17a757e65f532b11606c7bb104f08837bcd444b9 Upstream don't like Gerrit IDs but surely the maintainer can drop this when applying. I suppose the use case is using PCI-based MTD devices for testing something android images on desktops? I'm surprised it didn't come up earlier. Yours, Linus Walleij