Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5685938imu; Wed, 30 Jan 2019 01:42:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN64TG6doxzH3+3oggtmfdSL0aeHXp4SRDeH1ficTVwwWULnyd0Aevh9c9ZYrp1rkGtUhnDf X-Received: by 2002:a17:902:f082:: with SMTP id go2mr29719708plb.115.1548841379180; Wed, 30 Jan 2019 01:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548841379; cv=none; d=google.com; s=arc-20160816; b=D8Yr6BBwSlHaxbSgGhODZX+mCpA7xzmpHXlfCZa+96mqM1VygkXrTfwloEcdOKrIjC oX8LKr7BcS47sWln/kWuAGrTMcOOjbyBBaEgcYLApWpoAPx7olYaZo3IFsHQTqXJCCPk Key6XPAt0T0ElWqW952EI42S2vHgxKNd5i46v9+3ikHsas1NeBMvuuR2fAlY1DoIjY3G WF/JVEWHwnCD2Tg+ewuDdVCmKyfnwpoqwLWaXnmCFQR1hc5croCDUXf0E9kN73W68OT9 tBic6n6y7wdWZErc2N9K6BS9VTDvjFaF9fxzGZ8xRWegnSAhopDmFa4qjKY2hMymaZ3t rRow== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=1I4NXeV3A/LIRTIKO1+ah3p0ueP8G68QZkZPn7VxTgU=; b=aushewXOzAWMCFYLjEwnrSRvj/aPP3btjp81jB3XvtPO7dt1leEIFiYBPK96bhfGGj 8sbMWjOfUe+3aKauxQGGFzqgioPOindoklGuy2JV7fVICLEC4KqILT2sKSr4P9ta/yPL 4Bw9e1cvvAikwsdNGDPsYGuKpNxZ/Erj3DrWYlMySmPYoZJMH25DAumbxTr9q2jO2QnF etm8KQZZ2zDJsyotEWyUKwvoJUcMIDDz55mU7dynif/LFD//THYzvSr8UfvvwT5bPOhV 8mcNCLOnR69jPYaBfvic7l0r8zUMWzOskL00TnDJ9ww8FCCUOvEQpVJzhSQ9ECXp6uuM Re+g== 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 91si1046459ply.222.2019.01.30.01.42.43; Wed, 30 Jan 2019 01:42:59 -0800 (PST) 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 S1729280AbfA3Jmg (ORCPT + 99 others); Wed, 30 Jan 2019 04:42:36 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:37684 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbfA3Jmg (ORCPT ); Wed, 30 Jan 2019 04:42:36 -0500 Received: from [10.28.18.236] (10.28.18.236) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Wed, 30 Jan 2019 17:43:19 +0800 Subject: Re: [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init To: Colin Ian King , Miquel Raynal CC: Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Kevin Hilman , , , , , References: <20190129105757.19138-1-colin.king@canonical.com> <20190130103250.4080a3b3@xps13> <25109367-14bc-90b1-f0a9-ad65aac46bf8@canonical.com> From: Liang Yang Message-ID: <30e51df9-d1ad-9066-41e0-d8ee6aa3ad4a@amlogic.com> Date: Wed, 30 Jan 2019 17:43:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <25109367-14bc-90b1-f0a9-ad65aac46bf8@canonical.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.28.18.236] X-ClientProxiedBy: mail-sz.amlogic.com (10.28.11.5) To mail-sz.amlogic.com (10.28.11.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miquel, Colin, On 2019/1/30 17:34, Colin Ian King wrote: > On 30/01/2019 09:32, Miquel Raynal wrote: >> Hi Liang, Colin, >> >> Liang Yang wrote on Wed, 30 Jan 2019 17:26:49 >> +0800: >> >>> Hi Colin, >>> >>> On 2019/1/29 18:57, Colin King wrote: >>>> From: Colin Ian King >>>> >>>> The call to meson_chip_buffer_init is not assigning ret, however, ret >>>> is being checked for failure. Fix this by adding in the missing assignment. >>>> >>>> Fixes: 2d570b34b41a ("mtd: rawnand: meson: add support for Amlogic NAND flash controller") >>>> Signed-off-by: Colin Ian King >>>> --- >>>> drivers/mtd/nand/raw/meson_nand.c | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/drivers/mtd/nand/raw/meson_nand.c b/drivers/mtd/nand/raw/meson_nand.c >>>> index e858d58d97b0..b9c543d1054c 100644 >>>> --- a/drivers/mtd/nand/raw/meson_nand.c >>>> +++ b/drivers/mtd/nand/raw/meson_nand.c >>>> @@ -1206,7 +1206,7 @@ static int meson_nand_attach_chip(struct nand_chip *nand) >>>> dev_err(nfc->dev, "16bits bus width not supported"); >>>> return -EINVAL; >>>> } >>>> - meson_chip_buffer_init(nand); >>>> + ret = meson_chip_buffer_init(nand); >>> >>> Looks good to me: >>> >>> Acked-by: Liang Yang >> >> This is nand/next material, so if you don't mind I would like to squash >> the two fixes you sent into the original commit inserting the driver. > > Sure, ok with me, squashing them makes sense. > > Colin ok. >> >> >> Thanks, >> Miquèl >> > > . >