Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1497504imm; Fri, 6 Jul 2018 00:55:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe+djdcZ9C6/xecIgkP9mbNSBMxeQCIVC4EVeLKCviH04v1ah0eCj65/0w5jdwyhbpMUFt4 X-Received: by 2002:a65:66d7:: with SMTP id c23-v6mr8502056pgw.427.1530863713090; Fri, 06 Jul 2018 00:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530863713; cv=none; d=google.com; s=arc-20160816; b=MMbcUgUCaVIXyMXzNdik3Gv6g11sacWLizWNMqjGxbVQoszFKUhr2hBM5+FF6tINVs +0YF9jJk0scVlKXcfN0UqL/Yzy/Dh7PtB+Yo4YPhWauT1IQtyMndzmxqSmW0AZ1VrIML EZbcbJWLffpCYdqz7DOnTt1aU5OoAfYFNIZB0XLEuUUUApuZbXkQL0+O1EgXOvZCRWVz ZA33tsJd5nAnR/4egi8kbibA4/pCJsU85eSZb66rjphQpvvBZ1IXthn57E1SV2qlEXFb 6X+F+wtVMkQYsdKuVhb03TzxOLpJTi08OAQQBj4BxfYQwpMpE5JkgmquxK5gKW1UVnsA CXIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature :dkim-signature:arc-authentication-results; bh=3/Pl99uT4M+Yn7K3r3GDoJeI/qfItrggPPFQfSR33rQ=; b=LuhjrPsAlPCt7UgpI4x+f4/xuOuEbQbyjjjnIXUeHRBIBDqfvDaACouO/yk5Y5/fGf v8sUIG2bIeKhunTTFVV+LbQuwTrUs19CfAcPWmpmTcrZ2ZyfCuxs0mkAcOVGI42luIp5 LbLuC+GzgO/2pf0TORlpWO/amGuawJPndTozevD2uVfw8YrV+F1lGB6fsnZo87ZRJZv0 Zl16kob9JbPn19sR9r7RhQr5vIk0q6EVZT5UdTUC83Con+UyWiD3zxkQeDYPZo+HgYss SviOiqJctxLTOH0cjrDxgkHVIOjNIEqihleY6SK9NmulunSEoEj3qejujXj6PFw+8ijn mCOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=hJfDMI0d; dkim=pass header.i=@codeaurora.org header.s=default header.b=J4IWWs9z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i61-v6si7865365plb.138.2018.07.06.00.54.58; Fri, 06 Jul 2018 00:55:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=hJfDMI0d; dkim=pass header.i=@codeaurora.org header.s=default header.b=J4IWWs9z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753994AbeGFHwO (ORCPT + 99 others); Fri, 6 Jul 2018 03:52:14 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33836 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753362AbeGFHwN (ORCPT ); Fri, 6 Jul 2018 03:52:13 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7EE97601D9; Fri, 6 Jul 2018 07:52:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1530863532; bh=smBPeasuC1/01H/NVcCMDGBdLokiGkofLvtuG5ialSA=; h=From:To:Cc:Subject:Date:From; b=hJfDMI0dvaiJHok63YfKzr5LVdDIbk1E880OZpD1WAHrQkUyNdVbiFRq4iwjLCwWM SFWnIW2jSvPM0zTg57pS7LhLIMRthlKG1wjhrF1ZlfP1iCFZI9dc71NtyKEtciwp7a WGE+8xk0j5wrbLAHV2FlExoOJhe2YQaFaQE+sXkQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from absahu-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: absahu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id EB734601D9; Fri, 6 Jul 2018 07:52:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1530863527; bh=smBPeasuC1/01H/NVcCMDGBdLokiGkofLvtuG5ialSA=; h=From:To:Cc:Subject:Date:From; b=J4IWWs9zjP5HrMQUGaSv08wi8f0CUN0wXEkINj39msgeYNPQsZRJYo+pC3ZqoYPZK N3hy5UKW8j0bOV1L46ZzwYK7qskgIuPN0ceheBO67ud/EhWVmkN3OorVb8Uypql5yQ 95x6j4Of3EL8qxhFWCSTRf0uDMLMrcZ7vRHISgvQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EB734601D9 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=absahu@codeaurora.org From: Abhishek Sahu To: Boris Brezillon , Miquel Raynal Cc: David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Andy Gross , Abhishek Sahu Subject: [PATCH 0/5] Update for removing driver specific BBM functions Date: Fri, 6 Jul 2018 13:21:54 +0530 Message-Id: <1530863519-5564-1-git-send-email-absahu@codeaurora.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series deals mainly with removing driver specific bad block functions and some minor fixing/cleanup. 1. When initial support for this driver was added [1], then the plan was to remove these driver specific functions when NAND base layer has support for doing raw read/write for bad block related things. Moving to raw read/write seems to take more time so this patch series implemented alternate logic for reading/writing bad block with normal read/write itself. This alternate logic relies on some assumption which seems to be better than driver specific functions and provide more functionality. Some discussion regarding it has already happened in [2]. 2. Some part of code is duplicated in every read/write function so clean up the code by making helper function. 3. Bootloaders does access protection for some of the NAND registers which generates few write errors if it is enabled. 4. Create RAM based BBT table. Flash based BBT table can’t be used since our bootloader does not have support for the same. **This patch series is rebased over linux-next with PATCH [3] [1]: http://patchwork.ozlabs.org/patch/508565/ [2]: https://patchwork.ozlabs.org/patch/920563/ [3]: https://patchwork.ozlabs.org/patch/938631/ Abhishek Sahu (5): mtd: rawnand: qcom: remove driver specific bad block check function mtd: rawnand: qcom: remove driver specific block_markbad function mtd: rawnand: qcom: fix NAND register write errors mtd: rawnand: qcom: update BBT related flags mtd: rawnand: qcom: reorganization by removing read/write helpers drivers/mtd/nand/raw/qcom_nandc.c | 439 ++++++++++++++------------------------ 1 file changed, 162 insertions(+), 277 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation