Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13938229pxu; Mon, 4 Jan 2021 08:26:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxr1YvH+GiTGK1Wz8zf71EHzCmFjXZhnlcBgh+dWXuNesfbx6ZzJn4l3m9eAroRQ7bjpWK+ X-Received: by 2002:a17:906:dd3:: with SMTP id p19mr66115162eji.221.1609777585360; Mon, 04 Jan 2021 08:26:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609777585; cv=none; d=google.com; s=arc-20160816; b=D9gY4z7oO2Ei0eA6RnBvv5MVEh7Tjb5X6NsRfTfAgTvA3fd3dfSHMJgOFSehniyZvD mG3MqUjE9+5xhrlHeps3uBkfyKSk2X13FlJTrvNybWUdpKG1pLgdFBsnX/NR2DEUqU8R Ibd3Fma7QwBb5aQj3pweiIHN1AwkP4MXhMoOqZe9/K2RbcUSkhGQht7ttVHYuZiS1kg6 x1KGfCyYY+MezXsfZIqRDv6JKm18RlnG9vztOvNMBKUwkA8TNs0KAyjB0vZAAl4FnJTo QmRD2kEzD59QHHEL1pW5dRnGJVBBFMTOL5XU7avBzhZu4ddR6KhPAwr4V83yTKLiVdsZ KhIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vBpBXC/9ucY1+ky5wV7xowNsqbFwGWckofXS204rVUQ=; b=dEnNKtPDe9YnVWcv7xw9SvN6u93ci2XlBr1vAS3prmUZYMONNY1nwEsk12K+Fx1AD9 cWlZ21scFpmlBmbzajwpQWFThUskDdj4dtop14Xhr0TDVME0fsizzy2atkUyn/poBNte J9VuWWdxJKmuoxWNHP1RYc/H2/zDQIJLchzbmSihiZjkgN9S5si/xKK/AKqIRH4eTyLC 86WxIpvpuZuzMWuTf+75VzylvVuWCbZLoB/PG//LBeDDpzIM4X9blPoP2htNmfCwn3NS KAlULBjBL/uTK0O0N/uv3D8YAKv+3D+S8wxI7QoFUYLIcwRiHhgKz2gSE746ytwtR4Li WC0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FHEcoMks; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj15si30442248ejb.597.2021.01.04.08.26.02; Mon, 04 Jan 2021 08:26:25 -0800 (PST) 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=@google.com header.s=20161025 header.b=FHEcoMks; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727155AbhADQZS (ORCPT + 99 others); Mon, 4 Jan 2021 11:25:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726664AbhADQZR (ORCPT ); Mon, 4 Jan 2021 11:25:17 -0500 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74DD4C061795 for ; Mon, 4 Jan 2021 08:24:37 -0800 (PST) Received: by mail-yb1-xb2f.google.com with SMTP id j17so26495447ybt.9 for ; Mon, 04 Jan 2021 08:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=vBpBXC/9ucY1+ky5wV7xowNsqbFwGWckofXS204rVUQ=; b=FHEcoMksa41Km7fKX837180GO3o30lrAwKJbxW6ZrHuJkImz/Zis2eWrIKFRQPe77E smf/bcOvtwBWDzodW8vI+rpEtUhvEyhoUVgGXkXiG4KSayf8tcBVExlOG7An/aTTS2a1 M7BQkmO0T1fs60txK65LKNwctysgjBplL+dj6V1V1gWJXM/+Y7AwFIMk0wssfUMq9Ryu yNbEsz9g3rCMOxIwvULYnEgvHAluK4plLl/lfXiI4WUMlqgwXjZnKAHJvE3pHUIEVM1Z pvsOvZ/inis7jITWN5qFLfdDyiwz4RkJXlonp0XFELorjqmNbW8xOovVHVHs9wycfRpi rKnw== 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:content-transfer-encoding; bh=vBpBXC/9ucY1+ky5wV7xowNsqbFwGWckofXS204rVUQ=; b=eGEeOD3F9zKCqw2wsGUxBoOgQ+jr9xON4hfjcBw7fO6nhuJu6TQn0P0LeFZrDGh7mc byYP4cMHojpgSxQI1BNU6qOxq+GOv5+Za6MsjM/5WzW/xM1j65rJM8EnDpETcFESsHa7 VBfF0Vnixw88nlJi28S270n5IuKXDuqMRwbcKIw0YBjKEOJ9DQv4jKfTm4kQFtNo389N jdAvm0tRCwZvUIafPRs9zZvLSg2jLc06XeN/080Uo4S3CHtf1bwEJLcprQO0h//MxUTG SpyXyGvJoSHY5GBLB+2xex95vABsS3tJmTJ2lFi/Fj1voiYPLWKzVNw+HVGeqsimplh1 WrfA== X-Gm-Message-State: AOAM533ykKxoK5t39WzHi7VDaQlx1+ciF2LTIVU0+dE4+m8FLDBKXNIh ZnSKgCu0rtrGgY1gJqhbUzpS+gP9xnY2WKE6qWUMBw== X-Received: by 2002:a25:23d7:: with SMTP id j206mr110313103ybj.243.1609777476473; Mon, 04 Jan 2021 08:24:36 -0800 (PST) MIME-Version: 1.0 References: <1887c783-7a80-a71c-949f-c07c83c2d0fe@ti.com> <20201223215630.1917891-1-goegebuer@google.com> <20210104100819.1d623425@xps13> In-Reply-To: <20210104100819.1d623425@xps13> From: Ron Minnich Date: Mon, 4 Jan 2021 08:24:25 -0800 Message-ID: Subject: Re: [PATCH] mtd: parser: cmdline: Support MTD names containing one or more colons To: Miquel Raynal Cc: Ian Goegebuer , Vignesh Raghavendra , Tudor Ambarus , Richard Weinberger , Mika Westerberg , Boris Brezillon , Jethro Beekman , Greg Kroah-Hartman , Alexander Sverdlin , Thomas Gleixner , linux-mtd@lists.infradead.org, lkml - Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is likely we're missing something -- I am not fully checked out on the Linux patch process and it's Ian's first patch. Guidance appreciated. On Mon, Jan 4, 2021 at 1:08 AM Miquel Raynal wr= ote: > > Hello Ian, > > Ian Goegebuer wrote on Wed, 23 Dec 2020 13:56:30 > -0800: > > > On Intel platforms, the usable SPI area is located several > > MiB in from the start, to leave room for descriptors and > > the Management Engine binary. Further, not all the remaining > > space can be used, as the last 16 MiB contains firmware. > > > > To make the SPI usable for mtdblock and other devices, > > it is necessary to enable command line partitions so the > > middle usable region can be specified. > > > > Add a part_probes array which includes only "cmdelineparts", > > and change to mtd_device_parse_register to use this part_probes. > > The commit title seem to be taken from another patch and does not > match the below change. Or am I missing something? > > > Signed-off-by: "Ronald G. Minnich" > > Signed-off-by: Ian Goegebuer > > --- > > drivers/mtd/spi-nor/controllers/intel-spi.c | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/mtd/spi-nor/controllers/intel-spi.c b/drivers/mtd/= spi-nor/controllers/intel-spi.c > > index b54a56a68100..9de38851c411 100644 > > --- a/drivers/mtd/spi-nor/controllers/intel-spi.c > > +++ b/drivers/mtd/spi-nor/controllers/intel-spi.c > > @@ -903,6 +903,8 @@ static const struct spi_nor_controller_ops intel_sp= i_controller_ops =3D { > > .erase =3D intel_spi_erase, > > }; > > > > +static const char * const part_probes[] =3D { "cmdlinepart", NULL }; > > + > > struct intel_spi *intel_spi_probe(struct device *dev, > > struct resource *mem, const struct intel_spi_boardinfo *info) > > { > > @@ -950,7 +952,8 @@ struct intel_spi *intel_spi_probe(struct device *de= v, > > if (!ispi->writeable || !writeable) > > ispi->nor.mtd.flags &=3D ~MTD_WRITEABLE; > > > > - ret =3D mtd_device_register(&ispi->nor.mtd, &part, 1); > > + ret =3D mtd_device_parse_register(&ispi->nor.mtd, part_probes, > > + NULL, &part, 1); > > if (ret) > > return ERR_PTR(ret); > > > > Thanks, > Miqu=C3=A8l