From patchwork Wed Jun 28 20:30:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Adami X-Patchwork-Id: 781925 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wyZRG2lzzz9s65 for ; Thu, 29 Jun 2017 06:39:54 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="O6+JtcHo"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="N7jqqusr"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=WKyBZhtVwVd2eok/tRthAO2Vk+dkORGyUSLQDLgkXzw=; b=O6+JtcHoqXorGJ+xPM0mg6du53 0GYfyaQ7+34an2NYwPfF0uKNIVCrgwxf93QxR8qEYMsTYSNRRqjvSQzjaBty6tedVrA7w9chvijq7 1j7bPl1//1x23l4yEx4U3M0IFxl+NftuvLhBCWFvEVOyTxYqMiPS8gNoD80t4ofwULBxvAnPb4YgU 0cmXYgEHUVakUHTeiEGHiEvSzFCLaJ+7QJEWgIqwhiGN1uSs+Y51GGtZA6bUXjfOE3mFCRYgxfj5l DH5l4cHmPIYdEpVT5nIxdFfO33Wo9RD1nE8m4ocsp7Q9bCefep8d4OSwLd/HUJ+m2HtvSQDoILqvB qGMT2Tyg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQJkc-0003kz-I8; Wed, 28 Jun 2017 20:39:50 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dQJcF-0004CS-UU; Wed, 28 Jun 2017 20:31:13 +0000 Received: by mail-wr0-x242.google.com with SMTP id k67so35142334wrc.1; Wed, 28 Jun 2017 13:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q9Jo9mq8J2YdTrHPo/+VM1Qa6b88MRMtJsK0u+SFss8=; b=N7jqqusr59JlfmGnoEp0TDzvAVT6x5GOXhTt3LRgx0CcojyPXovZGPN8oZNVqYnOHA hZ7ymxsPXIpAafLRTfw6bu+ZXVogEAXnouHjt8O1zcMiLykrsiQRcrZWlziZcx0b5GuZ khmYF2LM8nkZz/VhQgONnVpp7CQVWWoaddqrl1B+/n34U+gPhaQQl93jYbSdygEd6Lac B2DZUhoSmw5JZkxfyBjToOTiYDQs5D8tnWwzNxlcM6jZgA0emzq5T2ifMQ3pGupvh/Q7 VxW2VMhGKX2luCpWhiZW1xKiKW07ijCAU0wnj94JSANqcI151xTq9JAtFdP4UE8RPxub 30jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Q9Jo9mq8J2YdTrHPo/+VM1Qa6b88MRMtJsK0u+SFss8=; b=JAH1F/AlW0/wEY8wSY9QucgIEs8S1mqKDZPZ4ov4D0/ASb/hqI4HBQgaGLBbBrFi0m LOGX42CExgPsZivBa+sO5JcRdeu+FM1DJ/y8vOb2/n5pGb+55AL0clrg3JJjwvXo02DG Zu140C8t0FPvE7veZbkCXPN1oVLC+xCNk65l9rc3sZph/ttv7t1RzD+mj71Inpj1WTGZ idCI/3nwm45pxXKzMWKOOSr5e1NiHjHt6XsIb/3MFfPK2s9JmmQafv0HFVNtlwt5h5mC z8fnJW+QUA75zL5cpH2YCrYnNgwzx9NUPkJYZpNZcBakBsh4sjYW8EYqbqCab+lIwaJe NObg== X-Gm-Message-State: AKS2vOz3RZJES50ozx5t+jpGtP9C45Nf6acZUwyKVKOw1PF3gC6i//42 nkipD6hx+DrP1zkajDw= X-Received: by 10.223.173.140 with SMTP id w12mr23537266wrc.4.1498681851039; Wed, 28 Jun 2017 13:30:51 -0700 (PDT) Received: from andrea-ThinkPad-T520.homenet.telecomitalia.it (host251-139-dynamic.104-80-r.retail.telecomitalia.it. [80.104.139.251]) by smtp.gmail.com with ESMTPSA id h16sm10832684wma.14.2017.06.28.13.30.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Jun 2017 13:30:50 -0700 (PDT) From: Andrea Adami To: linux-mtd@lists.infradead.org Subject: [PATCH v4 9/9] ARM: pxa: poodle.c: remove hardcoded partitioning, use sharpslpart parser Date: Wed, 28 Jun 2017 22:30:36 +0200 Message-Id: <1498681836-3765-10-git-send-email-andrea.adami@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498681836-3765-1-git-send-email-andrea.adami@gmail.com> References: <1498681836-3765-1-git-send-email-andrea.adami@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170628_133112_131313_1C2F3ACA X-CRM114-Status: GOOD ( 12.56 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c0c:0:0:0:242 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrea.adami[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boris Brezillon , Wolfram Sang , Dmitry Eremin-Solenikov , Richard Weinberger , Robert Jarzmik , linux-mmc@vger.kernel.org, Russell King , Haojian Zhuang , linux-kernel@vger.kernel.org, Marek Vasut , linux-arm-kernel@lists.infradead.org, Cyrille Pitchen , Lee Jones , Brian Norris , David Woodhouse , Linus Walleij , Daniel Mack MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/poodle.c | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 62a1191..4881a43 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c @@ -333,24 +333,6 @@ static struct pxafb_mach_info poodle_fb_info = { .lcd_conn = LCD_COLOR_TFT_16BPP, }; -static struct mtd_partition sharpsl_nand_partitions[] = { - { - .name = "System Area", - .offset = 0, - .size = 7 * 1024 * 1024, - }, - { - .name = "Root Filesystem", - .offset = 7 * 1024 * 1024, - .size = 22 * 1024 * 1024, - }, - { - .name = "Home Filesystem", - .offset = MTDPART_OFS_APPEND, - .size = MTDPART_SIZ_FULL, - }, -}; - static uint8_t scan_ff_pattern[] = { 0xff, 0xff }; static struct nand_bbt_descr sharpsl_bbt = { @@ -360,10 +342,16 @@ static struct nand_bbt_descr sharpsl_bbt = { .pattern = scan_ff_pattern }; +static const char * const probes[] = { + "cmdlinepart", + "ofpart", + "sharpslpart", + NULL, +}; + static struct sharpsl_nand_platform_data sharpsl_nand_platform_data = { .badblock_pattern = &sharpsl_bbt, - .partitions = sharpsl_nand_partitions, - .nr_partitions = ARRAY_SIZE(sharpsl_nand_partitions), + .types = probes, }; static struct resource sharpsl_nand_resources[] = {