Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1646020imm; Tue, 22 May 2018 07:16:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr1RuGXJmXSiO/3/+c3HyFmo89x/7UkyuBv5dtnCqIQizu4uOCWhLZW4KNWIJuopi/acIn5 X-Received: by 2002:a17:902:7d87:: with SMTP id a7-v6mr25733589plm.264.1526998588023; Tue, 22 May 2018 07:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526998588; cv=none; d=google.com; s=arc-20160816; b=yE/VmLPTINJkC4G1sKtMeUjdWPKpYfw7kU0rgzzHMASmWn3A4zv+b9V7fm3rpAG6CG 4ZIsZ1h4OzVWEEHfZvBo/0TOHfweL1adNyHKQLVRu8lrU9MLYqvsdY9VNkI7prAJ4peD 8XLIezlFnYFoWi4KfKCFJToGXDEh7EugCAcgpYXZ56xf6s5L8U0DBPmUcKS0iai1Ug5+ snfOQXjh+86MGRiKiC+jZq60zhVHcgYt5+LH2OynKLTyCrk7+IKcd4xpI2MC93HRnmLv PFSCpZpTJn2EPHY8PuvtkniprOgx1EnaauDXxA1Z5ysmADaBCQD9+X1lcpw8MZtiCOKk tShg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=WfV8IM9UEaAWJodZHNBBPD9SJcLp22afWHQNLOKfA/U=; b=wwJFgj9SllyRJ1NC2xp4n+W5aKghDDoh+FsT5mWe95Vp3jfpmBihuF/Xwuh/Jmzj2p SO4eKdx1sJhbpCsEcxde0M9F9g0qkOl+LPHuzMPdCpaC5y4bNlroOFVkrFe1dit1biPA tM0nmGujCSZahu1x7S9yU5bp15IT8GGCkaP1LKizazbXZTPB9UUaJTew2TQscspOht6K s1Gc0SLcs3yTX52u1yWnHfBu1L4XMEt7Pw6SDas5LemiDZVqQXUfZ02OwXlAmhM/ocqq VKcSp3wG4F4DuiUbO+poCecRN84l8NBL5kTwY50VBtV+zLZAMvlcrgyRrRkREfz38zvM u6Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Vm1kiHlc; dkim=pass header.i=@codeaurora.org header.s=default header.b=XOlRhzjt; 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 a33-v6si16279971pli.275.2018.05.22.07.16.11; Tue, 22 May 2018 07:16:27 -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=Vm1kiHlc; dkim=pass header.i=@codeaurora.org header.s=default header.b=XOlRhzjt; 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 S1751445AbeEVOQA (ORCPT + 99 others); Tue, 22 May 2018 10:16:00 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48744 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbeEVOP7 (ORCPT ); Tue, 22 May 2018 10:15:59 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D713960A06; Tue, 22 May 2018 14:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526998558; bh=tDoeIvZN6xL5QduBF+rQZ6JHh7rKu17orbUBaskgou8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Vm1kiHlcCV8yN4rbpfhIhcQoVyeg3lTlXc4wVC5OTNkrE/Snki6xaKWMYEDyn1lVd 9Q2wN1UrUq8pIoZxRiSC/7/Z4WHbW2fONf/92UxJlD+CzcnwzQZmsGJVHKVRtPUHLr LXLuE+dTyMwxmHh7+GC7nGRkZt2MkyqX5wsWPpF0= 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 mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id ABB3E60392; Tue, 22 May 2018 14:15:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526998557; bh=tDoeIvZN6xL5QduBF+rQZ6JHh7rKu17orbUBaskgou8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XOlRhzjtpSLlG03lWna3W1s/6DSoD8UGovHsPHn6DBszIqWPfp6l1iwd2akIi2y2C jRvXvf3wrbUuYxtw0rOlDJvVWDW+GTEss8sQ9HbWqL99ixso0OjQQ/uCvv+NeZeyJY WiJjs51pzB7UHuZ2cil4kO+pK1fzq5fpBrpUHyDg= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 22 May 2018 19:45:57 +0530 From: Abhishek Sahu To: Miquel Raynal Cc: Boris Brezillon , 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 Subject: Re: [PATCH v2 10/14] mtd: rawnand: qcom: fix return value for raw page read In-Reply-To: <20180522140416.252fb398@xps13> References: <1525350041-22995-1-git-send-email-absahu@codeaurora.org> <1525350041-22995-11-git-send-email-absahu@codeaurora.org> <20180522140416.252fb398@xps13> Message-ID: <75ef7936bd1da87f54cac867103a83d6@codeaurora.org> X-Sender: absahu@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-22 17:34, Miquel Raynal wrote: > Hi Abhishek, > > On Thu, 3 May 2018 17:50:37 +0530, Abhishek Sahu > wrote: > >> Currently zero is being returned for all raw page read so >> fix the same. > > What about "Fix value returned by ->read_page_raw() to be the > actual operation status, instead of always 0."? > Sure Miquel. It looks better. I will change this. Thanks, Abhishek >> >> Signed-off-by: Abhishek Sahu >> --- >> * Changes from v1: >> >> NEW CHANGE >> >> drivers/mtd/nand/raw/qcom_nandc.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/mtd/nand/raw/qcom_nandc.c >> b/drivers/mtd/nand/raw/qcom_nandc.c >> index f85d8ab..17b7f3af 100644 >> --- a/drivers/mtd/nand/raw/qcom_nandc.c >> +++ b/drivers/mtd/nand/raw/qcom_nandc.c >> @@ -1900,7 +1900,7 @@ static int qcom_nandc_read_page_raw(struct >> mtd_info *mtd, >> >> free_descs(nandc); >> >> - return 0; >> + return ret; >> } >> >> /* implements ecc->read_oob() */ > > Thanks, > Miquèl