From patchwork Mon Aug 14 20:48:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Adami X-Patchwork-Id: 9900131 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C862C602D9 for ; Mon, 14 Aug 2017 20:51:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAE4A28724 for ; Mon, 14 Aug 2017 20:51:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFC4228737; Mon, 14 Aug 2017 20:51:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4349C28724 for ; Mon, 14 Aug 2017 20:51:17 +0000 (UTC) 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=xqN94en6t94+jtScsDwae7eMXaIi37nlaQyh4YKWMlY=; b=sX02AsHBYbVAxKoJO56AATjBkl el3BvCOfKQHQ/JxQaYXP3dSM6FPGxO5+6q3KboU6kKk6cliXNw867oeL1Au/bfGa5oUOuan2TIRJY NjMZWPkoW3In5cahMDg2P/Z7HsWjDcjNak6aOsInEcs4HgZrvMnliIUCWAV88hCBaZHmkYwJ/zkxj 0wB8K4MZK676tgGRJfWmHGVA74X9RCvzFtyCdoDrdYR+XF4NzihtJfuE1uI9LeRRUZuZaLQFVohvC pe/r4d1haeRW5q18QOtBmcmqT/DQg1DzvNShlObQEaroBVCMY7uLf1P6EDfWJxIJ+Yp8U9dTWmIVd yvkK76Dw==; 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 1dhMKL-0003XF-41; Mon, 14 Aug 2017 20:51:09 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhMIS-0000Ao-Ij; Mon, 14 Aug 2017 20:49:20 +0000 Received: by mail-wm0-x243.google.com with SMTP id t138so15692507wmt.4; Mon, 14 Aug 2017 13:48:49 -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=oZ3CLSRzPU7G32d8GQhW72lmhTg3GfrSGzkBhJd0K00=; b=A3rQt8WW6gwpm+n8/k6velDLxLgh0z7co4bItxxWOxXmFYCciuJzJVgeTlp1NAFACt cmuqCz7i6o8vsQZec62YPawJkJK8sruDQZXgmfi+pzijIY1j8J2EImVU8ZV3co8tCmbj l2FIG74m8fTKC+8vhkQb0BcUDB5oWgumVLBsMi9USwkMt9aJwKFbJmFmOGXAlQaQJCxT 4BAJfctC9Oa5HsVAFpIkpajIb62kl6rCSLWf8W/4LawsaVUZvzy7C4lWjNxM4Cxszo8e 93769jPd0+2REwuPFrd+QhfRCNNJu00/Lr19t/lLiFxQ7V1ZDWDA621xxHICG8CVEo7t WeZQ== 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=oZ3CLSRzPU7G32d8GQhW72lmhTg3GfrSGzkBhJd0K00=; b=brqqTlGDPwgyF4PczD+eoYNGbSqSSRXDfU9G9FQEYGeU3EnlbzALr+zch3JDTtg0xx hF3+gEuFyH96tSUbPe8WALg25ecy3gpx/e6HAMHn9ODVqxUaEAUTW4WBpH3XUT1nYcLS Y1Wr0GG1IbhZhTNf6AbYSZhduibH4MqJfB9Muxz+gfhaDd5jrDVM/GQ+Iy0ud3aBMoae W770Ff9aLWIR/mWbGzSWMo0u1ldcM63GKFsBNOwsVADW9DztkW35pM7p837e9hKMiI+r v4OKPojVifgz6YUjCNWaEF5PG1z0pLnXIHqSzV8YhhqUl76zx4zwRPHp/NZeiWL2yTpB x34Q== X-Gm-Message-State: AHYfb5iypTZf9xezs4Indi1f8bho3DRU8/8gru+jQR6QRBxqgN5cfQ5+ sb7n+jzINuxv7EDluDI= X-Received: by 10.28.188.85 with SMTP id m82mr112525wmf.3.1502743728324; Mon, 14 Aug 2017 13:48:48 -0700 (PDT) Received: from andrea-ThinkPad-T520.homenet.telecomitalia.it (host228-232-dynamic.45-213-r.retail.telecomitalia.it. [213.45.232.228]) by smtp.gmail.com with ESMTPSA id 12sm172933wmy.44.2017.08.14.13.48.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Aug 2017 13:48:47 -0700 (PDT) From: Andrea Adami To: linux-mtd@lists.infradead.org Subject: [PATCH v5 2/9] mtd: nand: sharpsl: Add partition parsers platform data Date: Mon, 14 Aug 2017 22:48:33 +0200 Message-Id: <1502743720-28672-3-git-send-email-andrea.adami@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502743720-28672-1-git-send-email-andrea.adami@gmail.com> References: <1502743720-28672-1-git-send-email-andrea.adami@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170814_134912_916454_F2C4EEFA X-CRM114-Status: GOOD ( 13.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With the introduction of sharpslpart partition parser we can now read the offsets from NAND: we specify the list of the parsers as platform data, with cmdlinepart and ofpart parsers first allowing to override the part. table written in NAND. This is done in the board files using this driver. Thus, we need to extend sharpsl_nand_platform_data to consider the partition parsers. Signed-off-by: Andrea Adami --- include/linux/mtd/sharpsl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/sharpsl.h b/include/linux/mtd/sharpsl.h index 65e91d0..6381a7d 100644 --- a/include/linux/mtd/sharpsl.h +++ b/include/linux/mtd/sharpsl.h @@ -17,4 +17,5 @@ struct sharpsl_nand_platform_data { const struct mtd_ooblayout_ops *ecc_layout; struct mtd_partition *partitions; unsigned int nr_partitions; + const char *const *part_parsers; };