Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2778121imu; Thu, 17 Jan 2019 22:23:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN5PwYeBrl/YPyiq4CC2/psU5R4MvdTTc8e43p8y1kFazxj8edrAVf24Ho73XSuLV2UNVbLN X-Received: by 2002:a65:4646:: with SMTP id k6mr11582293pgr.153.1547792586079; Thu, 17 Jan 2019 22:23:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547792586; cv=none; d=google.com; s=arc-20160816; b=QWY55lrxnWwxsCzwzgq5qGbxVdspva4tcz84R33lb9jRrffcyuLga8Fx/EY/5yIK8V zOc6sRBtS6q2g12DWJzZFsVQ8g7XokGHSbr+gZFwwoy58NCo3tNeSSgOUnkY+mzo4ze7 9NqrzEegDvpxsMcmBniBt2fI3nvTyhKxUREVzTzBajKaD1WI45CotScCtF/6cMUfj+ub nTJzbvNJs9T5rYGhMU/q1VkTMILUgbAbMafZVOBHZDT5WOVz1oxJQw4ypNf0g6bdfL5V nwBifZBzjmmE5vlvxSiadwDJLZdvjoPWUoYMIZqRbpgVaSxAS83KuRK047zq2OdPy8jx 7ZSA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=0YgRaqDx7TvrLAv5DC1M6Q9rwJDqFILQRpuo2B+E4Ko=; b=BAJBPrwvcCw0G/8pHKtY2SPM1D+f2maSsLtLmJAifyeD1pexMvsXQbn//lZ3Of5e5u c5fD08Eg4sL8p26tw0fW5G3rPX0pmDepYTYJzf4c3GaWv57tmRQ2Sj572U6MNY/gpEnp 1YqM0e8LB+ADuM0o94GtXtMJ6GFbU91aVw32VNXrNNQhA/D5WFcuU/6mSANn0Mgc0KsX oCaeoefkwFECoT++ACY8Jhea6ipd+845D6pvlBYqM6pKMrTC2fWMqAyPi9Bdmr5xCKMH oWn/hM6sE7Fp/YgoLRWIWG6ZJQhiRFkb1Wbb/fLg5ixafYyMVemfQjUjJdMttQontDIM SDUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HL7oGQKl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si3405573pgj.208.2019.01.17.22.22.45; Thu, 17 Jan 2019 22:23:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=HL7oGQKl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727250AbfARGTb (ORCPT + 99 others); Fri, 18 Jan 2019 01:19:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:56478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727106AbfARGT3 (ORCPT ); Fri, 18 Jan 2019 01:19:29 -0500 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBA9E2086D; Fri, 18 Jan 2019 06:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547792368; bh=L0hcXLWboVxbebYY+QO8RZp3MMEjZK7FjCy6m/7Z25Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HL7oGQKljHAmg9xImIo+BF+RQIMRzRK7ClyDNp2sGsWwiYqjuEhiBir67EVacw2tv xh3oOo7tjsxTaeYf4D/ld2w61ikDmYIzhr36sKEp3T/69ZvH7LyGGNJLr1B+pzd5eO JLgc8T0vTB4rXZ4InJWWlTxn/LnOQ7/SH+rHFe0s= Date: Fri, 18 Jan 2019 07:19:19 +0100 From: Boris Brezillon To: Masahiro Yamada Cc: linux-mtd@lists.infradead.org, Boris Brezillon , Miquel Raynal , Marek Vasut , Richard Weinberger , linux-kernel@vger.kernel.org, "linux-stable # v4 . 20" , Brian Norris , David Woodhouse Subject: Re: [PATCH] mtd: rawnand: denali: get ->setup_data_interface() working again Message-ID: <20190118071919.5c4015f6@bbrezillon> In-Reply-To: <1547789438-11899-1-git-send-email-yamada.masahiro@socionext.com> References: <1547789438-11899-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Jan 2019 14:30:38 +0900 Masahiro Yamada wrote: > Commit 7a08dbaedd36 ("mtd: rawnand: Move ->setup_data_interface() to > nand_controller_ops") missed to invert the if-conditonal for denali. > Since then, the Denali NAND driver cannnot invoke setup_data_interface. > > Fixes: 7a08dbaedd36 ("mtd: rawnand: Move ->setup_data_interface() to nand_controller_ops") > Cc: linux-stable # v4.20 Commit 7a08dbaedd36 was merged in 5.0, I'll drop Cc stable when applying. > Signed-off-by: Masahiro Yamada > --- > > drivers/mtd/nand/raw/denali.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/nand/raw/denali.c b/drivers/mtd/nand/raw/denali.c > index eebac35..6e8edc9 100644 > --- a/drivers/mtd/nand/raw/denali.c > +++ b/drivers/mtd/nand/raw/denali.c > @@ -1322,7 +1322,7 @@ int denali_init(struct denali_nand_info *denali) > } > > /* clk rate info is needed for setup_data_interface */ > - if (denali->clk_rate && denali->clk_x_rate) > + if (!denali->clk_rate || !denali->clk_x_rate) > chip->options |= NAND_KEEP_TIMINGS; > > chip->legacy.dummy_controller.ops = &denali_controller_ops;