Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1498537ybm; Thu, 23 May 2019 02:00:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYskAqoKeAI3NyNdPVH43vT++MDtgf60BX/llwm75jz3A6wxIyYJpQ3t9g3GaTMrvDmrgV X-Received: by 2002:aa7:99dd:: with SMTP id v29mr103266097pfi.252.1558602017803; Thu, 23 May 2019 02:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558602017; cv=none; d=google.com; s=arc-20160816; b=TKKTsR2fqlI2jW7fLfo/F1cU9Q4TZCRuacKux7ObwFED3tt+56u3MHjXKhu+DD9esc f3cxhzqZn0N+xkw3ObsFAHzQR+CgiPdoTmj7bM9gKyR0veQMrqEhBe2IrW3n1wfR8v3h GcEH5AkfZf6PKOPulenNdjYrSj4hW8HjNYqHu2wsGyDz1S0XwhU1UmQ6DwtIIVTnUxbV NGGvME5pwNuUXY3Dp24LeehZUxGopfoRjQXZ5antDOQrrzlpZvbRWuM0w85kSyL4/naZ qUcSV2ak1/Ky3VQzPbU0SehIhucrPbXtndgJ66RFOxsYGmAVt4dY7Mc7pXSVJvn4CeQy c1NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:from:message-id:mime-version:subject :cc:to:references:in-reply-to; bh=HqL5tB+6WL0JTjHTZPNJC/gDirUZwYLJWvbarup0KNk=; b=XMzgsnsiLaFzvUKwTQdavzsaqAp4eEUpZqkCmQtkVre6R9P4zMvPrWuj4FzYRJ8y7i iy9rBYA1FHGXC0tNaajB7Qyz5DquaWgUMoN+VKz/BtKFdA7a2zrUfGsPAJ27Ppsp/PHM vmxIAYC97OYEY/+OQ8CO07toeaeGpLDMBsnzdrfLE0aWygc7NwqmDtPEg5Oi/z6/VzC2 7hGJZK8KmqEzg1ha6dbkEI9rFr0tpo1TSRDX1Pv7Ov12Gp4i2q0qZIoq3lAPygE3lixu yhj9BrOEEaVhua2jM0MImHYxgwKriInFqqbBxzGaOltAA094DZhrhjR7knlO4KL6OYbv 1GiQ== 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 m189si32131865pfb.74.2019.05.23.02.00.02; Thu, 23 May 2019 02:00:17 -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 S1730080AbfEWI6L (ORCPT + 99 others); Thu, 23 May 2019 04:58:11 -0400 Received: from twhmllg4.macronix.com ([211.75.127.132]:48787 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727428AbfEWI6L (ORCPT ); Thu, 23 May 2019 04:58:11 -0400 Received: from twhfmnt1.mxic.com.tw (twhfm1p2.macronix.com [172.17.20.92]) by TWHMLLG4.macronix.com with ESMTP id x4N8w1Kv035351; Thu, 23 May 2019 16:58:01 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) Received: from MXML06C.mxic.com.tw (mxml06c.mxic.com.tw [172.17.14.55]) by Forcepoint Email with ESMTP id 84B201FAC184BC8B8955; Thu, 23 May 2019 16:58:01 +0800 (CST) In-Reply-To: <20190520142333.390091d5@xps13> References: <1555320234-15802-1-git-send-email-masonccyang@mxic.com.tw> <1555320234-15802-3-git-send-email-masonccyang@mxic.com.tw> <20190512151820.4f2dd9da@xps13> <20190520142333.390091d5@xps13> To: "Miquel Raynal" Cc: bbrezillon@kernel.org, broonie@kernel.org, christophe.kerello@st.com, computersforpeace@gmail.com, devicetree@vger.kernel.org, dwmw2@infradead.org, geert@linux-m68k.org, juliensu@mxic.com.tw, lee.jones@linaro.org, liang.yang@amlogic.com, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, marcel.ziswiler@toradex.com, marek.vasut@gmail.com, mark.rutland@arm.com, paul.burton@mips.com, richard@nod.at, robh+dt@kernel.org, stefan@agner.ch, zhengxunli@mxic.com.tw Subject: Re: [PATCH v3 2/4] mtd: rawnand: Add Macronix MX25F0A NAND controller MIME-Version: 1.0 X-KeepSent: ADC47344:0F9941B2-48258403:002336E3; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3FP4 SHF90 June 10, 2013 Message-ID: From: masonccyang@mxic.com.tw Date: Thu, 23 May 2019 16:58:02 +0800 X-MIMETrack: Serialize by Router on MXML06C/TAIWAN/MXIC(Release 9.0.1FP10 HF265|July 25, 2018) at 2019/05/23 PM 04:58:01, Serialize complete at 2019/05/23 PM 04:58:01 Content-Type: text/plain; charset="US-ASCII" X-MAIL: TWHMLLG4.macronix.com x4N8w1Kv035351 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miquel, > > > > > > + > > > > +static void mxic_nand_select_chip(struct nand_chip *chip, int chipnr) > > > > > > _select_target() is preferred now > > > > Do you mean I implement mxic_nand_select_target() to control #CS ? > > > > If so, I need to call mxic_nand_select_target( ) to control #CS ON > > and then #CS OFF in _exec_op() due to nand_select_target() > > is still calling chip->legacy.select_chip ? > > You must forget about the ->select_chip() callback. Now it should be > handled directly from the controller driver. Please have a look at the > commit pointed against the marvell_nand.c driver. I have no Marvell NFC datasheet and have one question. In marvell_nand.c, there is no xxx_deselect_target() or something like that doing #CS OFF. marvell_nfc_select_target() seems always to make one of chip or die #CS keep low. Is it right ? How to make all #CS keep high for NAND to enter low-power standby mode if driver don't use "legacy.select_chip()" ? thanks & best regards, Mason CONFIDENTIALITY NOTE: This e-mail and any attachments may contain confidential information and/or personal data, which is protected by applicable laws. Please be reminded that duplication, disclosure, distribution, or use of this e-mail (and/or its attachments) or any part thereof is prohibited. If you receive this e-mail in error, please notify us immediately and delete this mail as well as its attachment(s) from your system. In addition, please be informed that collection, processing, and/or use of personal data is prohibited unless expressly permitted by personal data protection laws. Thank you for your attention and cooperation. Macronix International Co., Ltd. ===================================================================== ============================================================================ CONFIDENTIALITY NOTE: This e-mail and any attachments may contain confidential information and/or personal data, which is protected by applicable laws. Please be reminded that duplication, disclosure, distribution, or use of this e-mail (and/or its attachments) or any part thereof is prohibited. If you receive this e-mail in error, please notify us immediately and delete this mail as well as its attachment(s) from your system. In addition, please be informed that collection, processing, and/or use of personal data is prohibited unless expressly permitted by personal data protection laws. Thank you for your attention and cooperation. Macronix International Co., Ltd. =====================================================================