Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4032632ybg; Fri, 25 Oct 2019 12:21:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVamCJNAfmv0Y6fSaLy8u9+Bdyy9oIhQGlv4g6oLkNM3Zz8jIZJ1ZVGkh9fqTevaZxM+pv X-Received: by 2002:aa7:d858:: with SMTP id f24mr4011512eds.142.1572031271248; Fri, 25 Oct 2019 12:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031271; cv=none; d=google.com; s=arc-20160816; b=XOKQYshvUAiYOOI3Y6BbkikB4eaavus7wC684XtWmo0P9AgMUZ3BvksrKw/1vV1YtE ni692zsjfUTW4SN0dbN8Nk2e/HOYgJLICsH5o/fS5fLM+ECQjHDrH/nkPtmGqoWWVoIu gT8SoqRcPyoQ592m+ka+iBD0Y0Q6QkTQZNxyXKOIZAYBsyP0kmZfg84EXvLB8vf5pl+v 2Besu/zF3m0ZdXJmMusyuxAXqQ7SMO1jEggtN/s5LVfGjrfJB2GT5OmV3RZAKDUOpErt JLsdTMTv2mD5wtXfs/bPC7sQIjkJ4FR3rBgSuqhmKfcLKTS/EA2/fZIWY2ALnxcl51sS unDQ== 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=9iW6ylAW9Dp3FYTpHBYaqK+oIRGV6BGBbQgkqQP7wk4=; b=T8+WvzL2Whr+bJaFVrDgW5WvhVXig8ltTXko5hbyhrB+N8lh1qnU7D+1SLnhInTqTn oV5ako+U68VYtbI6GxA/xy4sIBi1uMTF/Hhab3+aZTUGfgqZWfkGt417KnYNROIcRRwY hsfrA1h6ugZYFhHnXIF050GD98R6ZnntgZAlL9ETsVIx/ZG53utTiaVEpFbYK6i2/yDO Gsin+wa1DZNK9NipwYphhNajo0QMsvvL8sRwujvWodoivsUEGtZdNRIssBq/TpfsTJQr we+HfP7guzG6elb1Q8s3vgRmyHO3hvx2l4654fXowhIsjLTz1kT7XlNIMcxWq62BIEU0 ttxw== 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 e32si1961615eda.267.2019.10.25.12.20.48; Fri, 25 Oct 2019 12:21:11 -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 S2391951AbfJYDLV (ORCPT + 99 others); Thu, 24 Oct 2019 23:11:21 -0400 Received: from twhmllg4.macronix.com ([122.147.135.202]:50495 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729283AbfJYDLU (ORCPT ); Thu, 24 Oct 2019 23:11:20 -0400 Received: from twhfmnt1.mxic.com.tw (twhfm1p2.macronix.com [172.17.20.92]) by TWHMLLG4.macronix.com with ESMTP id x9P3BEmp012087; Fri, 25 Oct 2019 11:11:14 +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 868335503C09C5A1BD4E; Fri, 25 Oct 2019 11:11:14 +0800 (CST) In-Reply-To: <20191008092832.54492696@dhcp-172-31-174-146.wireless.concordia.ca> References: <1568793387-25199-1-git-send-email-masonccyang@mxic.com.tw> <1568793387-25199-3-git-send-email-masonccyang@mxic.com.tw> <20191007104501.1b4ed8ed@xps13> <20191008092832.54492696@dhcp-172-31-174-146.wireless.concordia.ca> To: "Boris Brezillon" Cc: bbrezillon@kernel.org, computersforpeace@gmail.com, dwmw2@infradead.org, frieder.schrempf@kontron.de, gregkh@linuxfoundation.org, juliensu@mxic.com.tw, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, marcel.ziswiler@toradex.com, marek.vasut@gmail.com, "Miquel Raynal" , richard@nod.at, tglx@linutronix.de, vigneshr@ti.com Subject: Re: [PATCH RFC 3/3] mtd: rawnand: Add support Macronix power down mode MIME-Version: 1.0 X-KeepSent: DC1EA65D:196421DA-4825849E:000FBB73; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3FP4 SHF90 June 10, 2013 Message-ID: From: masonccyang@mxic.com.tw Date: Fri, 25 Oct 2019 11:11:13 +0800 X-MIMETrack: Serialize by Router on MXML06C/TAIWAN/MXIC(Release 9.0.1FP10 HF265|July 25, 2018) at 2019/10/25 AM 11:11:14, Serialize complete at 2019/10/25 AM 11:11:14 Content-Type: text/plain; charset="US-ASCII" X-MAIL: TWHMLLG4.macronix.com x9P3BEmp012087 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, > > Subject > > Re: [PATCH RFC 3/3] mtd: rawnand: Add support Macronix power down mode > > On Tue, 8 Oct 2019 10:06:50 +0800 > masonccyang@mxic.com.tw wrote: > > > > > + nand_select_target(chip, 0); > > > > > > On several NAND controllers there is no way to act on the CS line > > > without actually writing bytes to the NAND chip. So basically this > > > is very likely to not work. > > > > any other way to make it work ? GPIO ? > > or just have some comments description here. > > i.e,. > > > > /* The NAND chip will exit the deep power down mode with #CS toggling, > > * please refer to datasheet for the timing requirement of tCRDP and tRDP. > > */ > > > > Good luck with that. As Miquel said, on most NAND controllers > select_target() is a dummy operation that just assigns nand_chip->target > to the specified value but doesn't assert the CS line. You could send a > dummy command here, like a READ_ID, but I guess you need CS to be > asserted for at least 20ns before asserting any other signals (CLE/ALE) > which might be an issue. > I have validated & checked w/ designer that NANDs device just need CS# line toggling and don't care of CLE/WE#/RE#. That is raw NAND controller sending a command nand_status_op() or nand_power_down_op() will exit the deep power down too. The first command(just CS# line toggling) to NAND device in deep power down mode will not be recognized. We may publish the application notes or update the datasheet later. 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. =====================================================================