From patchwork Mon Aug 14 20:48:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Adami X-Patchwork-Id: 9900145 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 897BA602D9 for ; Mon, 14 Aug 2017 20:54:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A4CA26CFF for ; Mon, 14 Aug 2017 20:54:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C98328484; Mon, 14 Aug 2017 20:54:08 +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 315FB26CFF for ; Mon, 14 Aug 2017 20:54:08 +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=b9t67eYg74X4smWbl9I+zI2fPnYJm4Q1l2Bp2bhhCVE=; b=AOYUOrcCrPgkvqWHWJHywmIMUB e2S3huiYl4io72ILF9AxtUshJ93A77fXRVbn4/gA2H8H+nwmGzZUsrAQS2yp6EamS4pXAqJ4dDxif 4uSXHGEJ4SG9KJ/yx0yRxrXtxbkLu8HaMrg/uB8ILEsqp08cf2ObdhCT8gy9CzTDVfZBQL64DMNza k02TpQ1UrgOvNexSpRqAExoYeBEp1rdbTHZwKLpxxDtn/WrTgehH6nwjlwcL1vAmds3TwuOll8doR GHe4rdfMxexk5UiTbGldrkRVr8ex7tUjFx8NpMgPVtyJC3aIhpYRLm7oTuTc5kCvtq3I9B/dVkwE5 2I+Gr4fw==; 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 1dhMN9-0006Dm-Ft; Mon, 14 Aug 2017 20:54:03 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhMIT-0000C0-5o; Mon, 14 Aug 2017 20:49:26 +0000 Received: by mail-wm0-x241.google.com with SMTP id d40so15694707wma.3; Mon, 14 Aug 2017 13:48:51 -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=jyi4LjW9iOejFClI1iL5ees6eUtsZrHFKbdIwJFwJzU=; b=lVfDhQqCsGC6+6MNd8nMOaDmmmQbohXgk0Fg0C2FCqU7W6CigqOzlvgCE+ajAZTbnh v5LxS4EgFb2UrnGk2tCpBYw+1vVuk3EGAj8nU0STU0vzEwsP7aX6WEZT0pruLr/OKqSl D+ClUm1cRqZ3LF+CsgRmnPb7b4XHXia2K3c/se69rRReNBOIWMAKH6GH1BfBstckK4yW 4xnRW4D6Irhzt0IZ1SfOKnKK/qGFfCyZu6TFxI6+TGoJgTdsMN0H1CFFkfnU0C8r4k/u pvm1TymK/OTYFHz363YrV8fF8gdBv7urK5vcEU6DSZtUjaTJJ/EbPG9CJnaLeIe30VbN ENTA== 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=jyi4LjW9iOejFClI1iL5ees6eUtsZrHFKbdIwJFwJzU=; b=nEOHhZcZZiZypCg29Xs13WO/kO/mlqvwqlO1HnFyhYiqYOXiGlFNqjV0xA1u7Sh25V Zw9/Xu7YmMHWbCX3Qf7Vja9inx+ycDW0EUsg6w8p9BKYog+1nNTYhL9IbiC0q+yUO0UY 9r67evMP03jgiXEV9IDpNN4qgmrnJXK5IoSYAWU80gXRMAGEL+wQ9An7xF6uN271EP6Y 0UUqjdIM5iowJ1K8dZhIuD1Vvzwy5nwx9D0blpjg0HG5Idvi+gw4Pg+SIxIZdqyBaXpS c8E47Q3swyxSsh5qYXQPW+v293htzH/dtAZcAp0EwelKx3Pq5M982w+QO7azmCGirKy9 DvEg== X-Gm-Message-State: AHYfb5iYyHxDwlcUdgU2KRmntCtu0tIuC5d2U9QB4FWZIpnGQpdM22IY kTQLmeF6q/CFGCpv6MY= X-Received: by 10.28.218.18 with SMTP id r18mr121803wmg.28.1502743729750; Mon, 14 Aug 2017 13:48:49 -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.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Aug 2017 13:48:49 -0700 (PDT) From: Andrea Adami To: linux-mtd@lists.infradead.org Subject: [PATCH v5 3/9] mfd: tmio: Add partition parsers platform data Date: Mon, 14 Aug 2017 22:48:34 +0200 Message-Id: <1502743720-28672-4-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_134914_222975_8F0AD768 X-CRM114-Status: GOOD ( 12.43 ) 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 tmio_nand_data to consider the partition parsers. Signed-off-by: Andrea Adami Acked-by: Lee Jones Acked-by: Wolfram Sang --- include/linux/mfd/tmio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h index 26e8f8c..357b6cfd 100644 --- a/include/linux/mfd/tmio.h +++ b/include/linux/mfd/tmio.h @@ -139,6 +139,7 @@ struct tmio_nand_data { struct nand_bbt_descr *badblock_pattern; struct mtd_partition *partition; unsigned int num_partitions; + const char *const *part_parsers; }; #define FBIO_TMIO_ACC_WRITE 0x7C639300