Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1491953imm; Tue, 22 May 2018 05:05:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr7qDdLzPKUCTfGzdZnV3yTZ19zy1+lhF4FLfYGHJGDsNQBMRYIReAkg7Ee6BVLU4jb5MRS X-Received: by 2002:a63:375d:: with SMTP id g29-v6mr8661265pgn.413.1526990710498; Tue, 22 May 2018 05:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526990710; cv=none; d=google.com; s=arc-20160816; b=kdShFszbIsGrZsd+61RWHDev4KswWhAFjJH0rP4G/jW7MXR7CPZGnEcEmV0uhheQbP kNZs4EfjUbAk97YFx6Wr+U70IwCW3bVv5Q4Ki3F4ySTGczg60R0jqbdWzBuEYt1TSD8i UesuBjsymGQxQu/3h9LB+D9TsWigXJKH6s9VQ2tnoqmbTca+S0BJRFkBOiNrsXvWr78m uVURQ5i0yl743iCbvjHPG6O+m/z7SgX4yP5sfK3Qgp+flh3vKkD+v1LvJZa3aR92UG02 sO4PueTiqBOW6bItvE+Gwb1NQp4cEFfcabLNyyzvec6b1qRTz8p3EHXIGu/20gdLa29L Y4CQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=cypicAwuJEwIY60Ba2S1g8dTww+eOkAsU5snlxqdeSo=; b=wJndO0nVdOPodNbDQ6LLfma/BOgOcCllagXWg7HYAnSTZwut1v2kKGt2TxoO26AteP +BJFDjGvokYXBHHjiLTczsx3Yb1nStvM202Ajfq8093kxLKNZeYmvMyXaPRMVhTNh3rE z+4GfwwIVjgC2DGvXI7t8TrW2gcA7G0dA6bcM5YJGxBfRveGu7Fg7bXCuijVaNEIkBi+ NmAK94w3V3uWRybnqh+kQLZxWalxVifLVqHuQNycloTWSybOAl2JaNv2OhhUIHrd5G4P XXW/4GJaDrcSSV3s8YzUOgX3o2u8Y7445v89LdOiDtmfVRH7CwSgbo3E4quOp9wKQCiW LwAA== ARC-Authentication-Results: i=1; mx.google.com; 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 w5-v6si16544679pfi.88.2018.05.22.05.04.31; Tue, 22 May 2018 05:05:10 -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; 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 S1751473AbeEVMEV convert rfc822-to-8bit (ORCPT + 99 others); Tue, 22 May 2018 08:04:21 -0400 Received: from mail.bootlin.com ([62.4.15.54]:54677 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbeEVMET (ORCPT ); Tue, 22 May 2018 08:04:19 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id B39522072C; Tue, 22 May 2018 14:04:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from xps13 (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 66E60206FB; Tue, 22 May 2018 14:04:16 +0200 (CEST) Date: Tue, 22 May 2018 14:04:16 +0200 From: Miquel Raynal To: Abhishek Sahu 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 Message-ID: <20180522140416.252fb398@xps13> In-Reply-To: <1525350041-22995-11-git-send-email-absahu@codeaurora.org> References: <1525350041-22995-1-git-send-email-absahu@codeaurora.org> <1525350041-22995-11-git-send-email-absahu@codeaurora.org> Organization: Bootlin X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) 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 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."? > > 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 -- Miquel Raynal, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com