From patchwork Thu Mar 10 19:47:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 8559841 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 74171C0553 for ; Thu, 10 Mar 2016 19:47:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9867D20380 for ; Thu, 10 Mar 2016 19:47:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B171E20377 for ; Thu, 10 Mar 2016 19:47:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754694AbcCJTrf (ORCPT ); Thu, 10 Mar 2016 14:47:35 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:32976 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754606AbcCJTre (ORCPT ); Thu, 10 Mar 2016 14:47:34 -0500 Received: by mail-pa0-f53.google.com with SMTP id fl4so74111399pad.0 for ; Thu, 10 Mar 2016 11:47:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=C3veh8tnr0nYQ9ik/9TougpIrrr//5oz8lK3GUN5oqE=; b=jS7qOO/dgVoyOgKKvRoOy/yrw23oKqFkDLCEQsBbZbcpTHG6wxAUkFI5dxf4KgA/bT tC2fCPSNg77UcqSJ2+55Szsu/1kjjV1n4Z0co3r9hEX2Yvy5B6tQDrt53puYOg+5LNi7 WKxf8xA44AfaTP5qW1kFv7qwoSP1QOBlWcaXyVAoKdYC1Yk7tLlgJc1j5eHsFhJF+YdY DFaVVGSWMsl7fy4hZxc0LHOkG7dpWDgdobVFYGzAgRA+cLZW3lXAlPmWyJM7Z2o602gp LAPqCFCxGKWrrb8P7kxbPHUfZadiMm4Tumf//fPbQHggwiESO0wm1SDgb06NnVWZuXqA qjCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=C3veh8tnr0nYQ9ik/9TougpIrrr//5oz8lK3GUN5oqE=; b=RIW/SOFBKVKcWzzXc0cHLFG8PIqnexKmMHCAeYidujJJpFFZksu+wsuFadRsednGKa 5h1zqZShYyXYJIGe7nXCdnVNWhPxfFft7Ywk/nYB34xs4ExUW5f6iLuHVlElllxOdurR fN3oMHB8rwjnH6xwf0Opwvu1Vhw4UHGX3RnS5cRZ8ccE/F8CHUbhGFmRNtxa2rWI4kXx I0yw30b7haIYDdebLcmXXeitlvYiV3qsX2jCykR3qNd8B5zo6osF496gdz7tW/JQnrXP nVIlzuwuPdfIFHjNEHXX7wZW9iL1gKkv3hflll4Xioed+oWlJBoeXyiHpBgrczOw8nO3 UERg== X-Gm-Message-State: AD7BkJLZqBilc5Du3XNildPfCkURKnh7YJ0+zKfxe0t7wRnSLdpGZDLlTrt7JVIFOHqaBw== X-Received: by 10.66.145.97 with SMTP id st1mr6192178pab.47.1457639253673; Thu, 10 Mar 2016 11:47:33 -0800 (PST) Received: from google.com ([2620:0:1000:1301:c13f:a75f:75f5:3e66]) by smtp.gmail.com with ESMTPSA id fk9sm7433083pad.9.2016.03.10.11.47.32 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 10 Mar 2016 11:47:33 -0800 (PST) Date: Thu, 10 Mar 2016 11:47:31 -0800 From: Brian Norris To: Archit Taneja Cc: boris.brezillon@free-electrons.com, linux-mtd@lists.infradead.org, cernekee@gmail.com, sboyd@codeaurora.org, andy.gross@linaro.org, dehrenberg@google.com, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v8 0/3] mtd: Qualcomm NAND controller driver Message-ID: <20160310194731.GD2545@google.com> References: <1453360399-32029-1-git-send-email-architt@codeaurora.org> <1454489991-14717-1-git-send-email-architt@codeaurora.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1454489991-14717-1-git-send-email-architt@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Feb 03, 2016 at 02:29:48PM +0530, Archit Taneja wrote: > Add support for the NAND controller driver for SoC's that contain EBI2. > For now, the only SoC upstream that has EBI2 is IPQ806x. > > The previous version added a BBT flag that allowed BBMs to be accessed > in raw mode. Adding a flag isn't the right way to fix it, and the > proposed fix is to add badblockbits support, and make sure all drivers > switch to accessing BBM in raw mode. For now, skip nand_bbt usage, and > implement our own versions of chip->block_bad and chip->mark_bad. > > The first patch in the series contains a nand_base clean up which the > driver will utilize. > > Based over l2-mtd.git > > The patchset requires the v6 ADM dmaengine patches posted by Andy: > > https://lkml.org/lkml/2015/3/17/19 Pushed to l2-mtd.git, with the following fixup (the layout->oobavail field has been dropped): --- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mtd/nand/qcom_nandc.c b/drivers/mtd/nand/qcom_nandc.c index 78dc790ae619..f550a57e6eea 100644 --- a/drivers/mtd/nand/qcom_nandc.c +++ b/drivers/mtd/nand/qcom_nandc.c @@ -1733,7 +1733,6 @@ qcom_nand_create_layout(struct qcom_nand_host *host) layout->oobfree[0].offset = (steps - 1) * ecc->bytes + host->bbm_size; layout->oobfree[0].length = steps << 2; - layout->oobavail = steps << 2; /* * the oob bytes in the first n - 1 codewords are all grouped together