Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp504696imm; Wed, 20 Jun 2018 01:50:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJlqVY70MvvpfBw5lVG9bgmw3zlKcRTIVF4IUrEE6HdjWq4KKfhQBeq973/Vk/8bG/d6J9u X-Received: by 2002:aa7:8311:: with SMTP id t17-v6mr21828525pfm.45.1529484651675; Wed, 20 Jun 2018 01:50:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529484651; cv=none; d=google.com; s=arc-20160816; b=fXBY3e8TCHu5/KXkgdZveV3DQf70hu8Hm4/9kXRLC7gnigBVbUnfNtl9xTuobhKMNZ bQV9FTjiFkT6Np9pL3Yi/ae5UCV580h0eJpo/fqQ5c/e2AI3QPfpd0VtNX6lOHjqsRS1 yxF8Tz4OmMY8faQtHG3tt7rBSgEBBdVncPCnaEK5uHLbKkI6vSoED/y4kPFiX2ocNWq5 3Z0+FxMw77yelNEmpvN3GoRq8dVnuc4vDcOdvi4LiP47RO59gIC9fPqGsGOKMX74DkVE VEBh8phLMV/I3T7i11LLJx4X5sdF5Id0TyJJYVpQJQv4EyQuSWFFzc69kTPnw5EUpqhU Y0VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=/rP9yMcCuAG2nfDzZnl7uzlrSmy997PWdM1dLPJw7tI=; b=Zs7dagvdTr4QdAhhBFT+bPKiGGiwx8vo6BqagR2/5XpfhtptzWsILZoF8lELmyZ6iM NuXp1WxY3Emo2yNvTBg2RBkv3+86fGJXg1A4BpFYDqCeabMyX7mGVYlqUD1e0emYKRkP +Vdz4Kp3rfzd0RsJM3onYaVl/KK7yKMw5iV51gePB4qQTtf7N8OsX8mQtRfcIXKo/nsy z8ItGTMgkn6qXZojgO1vm8pRL2ghZ2xeXB1qFSXlQcykD7eahCyx7E1QSDK75CoqTaNn 6kiK7eAADLBTjS7HBzDf7TZb2t6PpoeMakdsT0bc2MHMmBp4AtpprNwmhzqItrXc8nnU BtnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="Q//zNFI4"; dkim=pass header.i=@codeaurora.org header.s=default header.b="Q//zNFI4"; 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 p1-v6si1864508plo.363.2018.06.20.01.50.37; Wed, 20 Jun 2018 01:50:51 -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="Q//zNFI4"; dkim=pass header.i=@codeaurora.org header.s=default header.b="Q//zNFI4"; 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 S933025AbeFTIpQ (ORCPT + 99 others); Wed, 20 Jun 2018 04:45:16 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49642 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932960AbeFTIpF (ORCPT ); Wed, 20 Jun 2018 04:45:05 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A809360B11; Wed, 20 Jun 2018 07:28:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529479689; bh=65wAojS4gA+9CrJw99QgkrL4ZkxgQFvd9rJZw+YoL5o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q//zNFI4tHKdsXAxOipfMYBsbnejabtwXj3HzU2af/BbiQkDetiXwkp6DHUiDD8Pw QX8UnEPgPoIaFqIGGCjx1OA49qKAdSDV1h0OLH3NXV71EfMFg9C9BTcjThVlk9VgxX slg5AIPNxnK7UF0/7JHhXeYay4PQmHTDh1zwMM88= 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 05A51605FF; Wed, 20 Jun 2018 07:28:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529479689; bh=65wAojS4gA+9CrJw99QgkrL4ZkxgQFvd9rJZw+YoL5o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q//zNFI4tHKdsXAxOipfMYBsbnejabtwXj3HzU2af/BbiQkDetiXwkp6DHUiDD8Pw QX8UnEPgPoIaFqIGGCjx1OA49qKAdSDV1h0OLH3NXV71EfMFg9C9BTcjThVlk9VgxX slg5AIPNxnK7UF0/7JHhXeYay4PQmHTDh1zwMM88= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 05A51605FF 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 , Archit Taneja , Abhishek Sahu Subject: [PATCH v4 04/15] mtd: rawnand: qcom: remove dt property nand-ecc-step-size Date: Wed, 20 Jun 2018 12:57:31 +0530 Message-Id: <1529479662-4026-5-git-send-email-absahu@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1529479662-4026-1-git-send-email-absahu@codeaurora.org> References: <1529479662-4026-1-git-send-email-absahu@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QCOM NAND controller supports only one step size (512) so nand-ecc-step-size DT property is redundant. This property can be removed and ecc step size can be assigned with 512 value. Acked-by: Miquel Raynal Signed-off-by: Abhishek Sahu --- * Changes from v3: 1. Minor change in comment (s/512 bytes of data in each step/512 bytes data steps) * Changes from v2: NEW CHANGE 1. Removed the custom logic and used the helper fuction. drivers/mtd/nand/raw/qcom_nandc.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c index 6a5519f..bf80a61 100644 --- a/drivers/mtd/nand/raw/qcom_nandc.c +++ b/drivers/mtd/nand/raw/qcom_nandc.c @@ -2325,15 +2325,8 @@ static int qcom_nand_host_setup(struct qcom_nand_host *host) bool wide_bus; int ecc_mode = 1; - /* - * the controller requires each step consists of 512 bytes of data. - * bail out if DT has populated a wrong step size. - */ - if (ecc->size != NANDC_STEP_SIZE) { - dev_err(nandc->dev, "invalid ecc size\n"); - return -EINVAL; - } - + /* controller only supports 512 bytes data steps */ + ecc->size = NANDC_STEP_SIZE; wide_bus = chip->options & NAND_BUSWIDTH_16 ? true : false; if (ecc->strength >= 8) { -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation