Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3114379pxx; Sun, 1 Nov 2020 23:35:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1YjTGWQFFKWk6MuQ8nMNMg/bzBCvPZgxLoibipa1XYxTXT/FUXr2RD/O61An4T2TMRcU1 X-Received: by 2002:aa7:d7ca:: with SMTP id e10mr15068869eds.269.1604302544239; Sun, 01 Nov 2020 23:35:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604302544; cv=none; d=google.com; s=arc-20160816; b=G26uEN0CObfdMUL71B/VjW60qIDXsl6l9cHU8RPr/cSDL1tsLDTDov13TEyoDmqGDW K6bMH6IRgWp/H3mmeZY9brkSSfqM6tk5QtaQac2gUj8S0wSBNx+jv6gKli/ZxFLKCYJI FZt5jEQb+1q5OtqtMNDvp5LWg+gzh/Vjxm4GYIU0jOslpyzD807BKnESVEwI0RWGBlY7 WEZJpd/kxoY5mxau023KTjmFTpSVMGHLEqHKOLMFoHA2VuA75TCW9HdI5W4nLxUW1v+1 Qn7hqzzRBHhXzPQTb3EEy0Y1Z/T5rm7y4shnBLlAc35IDhjqqfmgAmi5T73fWr20wrX/ 6t8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=OKKhuxEfGsOe0HoovGjEC2PrtZeh4Zm1KeXW4ZrLiSI=; b=cfRzPFNU7BjZFC0mgxl59gF8NWtwN7kOetbim7CmZfeE4wC52WuznylIsp03Y+OHaf nsYeeMDmPqArRhAd3G1MJN4zH80Hhjk63aYlulElQ3ELN5DLNBz8mjabmAFKI1FTdkSF VOrJAuTau+EMgtTnyP7jgV1xL0vsJIRtHvEqMQMjuVSqJKzVY7F4gptZgN+tWG6Z5Ect jk9bqQV3IZDAbUAjPuQ8B4m1wOluXxqnQHRewopjVFB41fHq/J59n2SXDnZDFJ2RjX65 KVE766q4hAQGnXvvuk7ZIXfX8JIiuLJUzQRU2E9Wa0LPlhJV8ACekoLElG34JWIQfWyX /Bkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si7943587ejk.371.2020.11.01.23.35.21; Sun, 01 Nov 2020 23:35:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728022AbgKBHdh convert rfc822-to-8bit (ORCPT + 99 others); Mon, 2 Nov 2020 02:33:37 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:58773 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727961AbgKBHdh (ORCPT ); Mon, 2 Nov 2020 02:33:37 -0500 Received: from xps13 (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 1D7DE20000A; Mon, 2 Nov 2020 07:32:59 +0000 (UTC) Date: Mon, 2 Nov 2020 08:32:58 +0100 From: Miquel Raynal To: =?UTF-8?B?6LW15Luq5bOw?= Cc: "Johan Jonker" , richard , vigneshr , robh+dt , devicetree , =?UTF-8?B?SGVpa29TdMO8Ym5lcg==?= , linux-kernel , linux-rockchip , linux-mtd , linux-arm-kernel Subject: Re: [PATCH v13 2/8] mtd: rawnand: rockchip: NFC drivers for RK3308, RK2928 and others Message-ID: <20201102083258.3a748c44@xps13> In-Reply-To: <20201102114503679684135@rock-chips.com> References: <20201028095326.15562-1-yifeng.zhao@rock-chips.com> <20201028095326.15562-3-yifeng.zhao@rock-chips.com> <0dabd80e-b281-be65-b8e2-da00f46964fb@gmail.com> <20201102114503679684135@rock-chips.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, 赵仪峰 wrote on Mon, 2 Nov 2020 11:46:04 +0800: > Hi Johan, > > void nand_deselect_target(struct nand_chip *chip) > { > if (chip->legacy.select_chip) > chip->legacy.select_chip(chip, -1); > > chip->cur_cs = -1; > } > > I need add the code below and it work. > >    chip->legacy.select_chip = rk_nfc_select_chip; > > But I found almost all nandc drivers do not add this code. Is there any other way to implement it? Indeed, we don't accept new code we legacy bindings. I don't understand what extra consumption you are trying to avoid, because if it is the NAND device itself that is able to save power when it gets unselected, it's really none of you controller's business. Perhaps it's the time to focus on the controller support and tune the code base later in a bid to reduce consumption. Thanks, Miquèl