From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1O795e-0001rb-DN for linux-mtd@lists.infradead.org; Wed, 28 Apr 2010 15:22:19 +0000 Message-ID: <4BD85298.1000304@pengutronix.de> Date: Wed, 28 Apr 2010 17:22:00 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 To: linux-mtd@lists.infradead.org References: <1272057944-19380-1-git-send-email-mkl@pengutronix.de> In-Reply-To: <1272057944-19380-1-git-send-email-mkl@pengutronix.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9FF86D8D9E5CBC331B68E85A" Subject: Re: [PATCH] pxa32xx_nand: add support for partition table parsing Cc: David Woodhouse , linux-arm-kernel@lists.infradead.org, dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9FF86D8D9E5CBC331B68E85A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Marc Kleine-Budde wrote: > The pxa32xx_nand driver doesn't support partition tables from the > command line. This patch adds support for it. >=20 > Please review and consider to apply. Can someone please have a look at this patch. Cheers, Marc >>>From a2caa92b08351511ee60bd94bf735be5f3a6fb65 Mon Sep 17 00:00:00 2001 > From: Marc Kleine-Budde > Date: Fri, 23 Apr 2010 10:43:42 +0200 > Subject: [PATCH] pxa32xx_nand: add support for partition table parsing >=20 > The pxa32xx_nand driver doesn't support partition tables from the > command line. This patch adds support for it. >=20 > Signed-off-by: Marc Kleine-Budde > --- > drivers/mtd/nand/pxa3xx_nand.c | 11 +++++++++++ > 1 files changed, 11 insertions(+), 0 deletions(-) >=20 > diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_n= and.c > index 5d55152..e02fa4f 100644 > --- a/drivers/mtd/nand/pxa3xx_nand.c > +++ b/drivers/mtd/nand/pxa3xx_nand.c > @@ -1320,6 +1320,17 @@ static int pxa3xx_nand_probe(struct platform_dev= ice *pdev) > goto fail_free_irq; > } > =20 > + if (mtd_has_cmdlinepart()) { > + static const char *probes[] =3D { "cmdlinepart", NULL }; > + struct mtd_partition *parts; > + int nr_parts; > + > + nr_parts =3D parse_mtd_partitions(mtd, probes, &parts, 0); > + > + if (nr_parts) > + return add_mtd_partitions(mtd, parts, nr_parts); > + } > + > return add_mtd_partitions(mtd, pdata->parts, pdata->nr_parts); > =20 > fail_free_irq: --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --------------enig9FF86D8D9E5CBC331B68E85A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvYUpgACgkQjTAFq1RaXHPc5gCfbdmfKLAYkENlXeuGQD4pYbnV Fu4An1b/4U0/i7soMxeSpyPEXVLDd9e5 =917s -----END PGP SIGNATURE----- --------------enig9FF86D8D9E5CBC331B68E85A-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: mkl@pengutronix.de (Marc Kleine-Budde) Date: Wed, 28 Apr 2010 17:22:00 +0200 Subject: [PATCH] pxa32xx_nand: add support for partition table parsing In-Reply-To: <1272057944-19380-1-git-send-email-mkl@pengutronix.de> References: <1272057944-19380-1-git-send-email-mkl@pengutronix.de> Message-ID: <4BD85298.1000304@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Marc Kleine-Budde wrote: > The pxa32xx_nand driver doesn't support partition tables from the > command line. This patch adds support for it. > > Please review and consider to apply. Can someone please have a look at this patch. Cheers, Marc >>>From a2caa92b08351511ee60bd94bf735be5f3a6fb65 Mon Sep 17 00:00:00 2001 > From: Marc Kleine-Budde > Date: Fri, 23 Apr 2010 10:43:42 +0200 > Subject: [PATCH] pxa32xx_nand: add support for partition table parsing > > The pxa32xx_nand driver doesn't support partition tables from the > command line. This patch adds support for it. > > Signed-off-by: Marc Kleine-Budde > --- > drivers/mtd/nand/pxa3xx_nand.c | 11 +++++++++++ > 1 files changed, 11 insertions(+), 0 deletions(-) > > diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c > index 5d55152..e02fa4f 100644 > --- a/drivers/mtd/nand/pxa3xx_nand.c > +++ b/drivers/mtd/nand/pxa3xx_nand.c > @@ -1320,6 +1320,17 @@ static int pxa3xx_nand_probe(struct platform_device *pdev) > goto fail_free_irq; > } > > + if (mtd_has_cmdlinepart()) { > + static const char *probes[] = { "cmdlinepart", NULL }; > + struct mtd_partition *parts; > + int nr_parts; > + > + nr_parts = parse_mtd_partitions(mtd, probes, &parts, 0); > + > + if (nr_parts) > + return add_mtd_partitions(mtd, parts, nr_parts); > + } > + > return add_mtd_partitions(mtd, pdata->parts, pdata->nr_parts); > > fail_free_irq: -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature URL: