Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3233010imm; Fri, 20 Jul 2018 12:30:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf2gxtz5FzKOqqjz0JVkcBqunjWkgdaIFb0XgS6NWgZAQuLiNXZQP3r0NkMkth6y/91coFt X-Received: by 2002:a62:d646:: with SMTP id r67-v6mr3488898pfg.130.1532115015617; Fri, 20 Jul 2018 12:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532115015; cv=none; d=google.com; s=arc-20160816; b=lfZ2sykuQFDXMEwVBJQNsi5/Jtf+7ku7RuLX3+gtWMb9jHEXjWS8KpTMWq6ErIRiuH FlqY2tubWURpqREZBiwDSu1NM07CNNmEzWyed8ROZkp0f+AjC3yXbs2KpXaC5zdtXHMh 5A1nUaDfe/PyVpRWRUNcq24pVlt0PVAZEj5EgL0KZNBIrJuVCyTSS64Z4e0RiD6xuWQY qeZt40qNjpW3zlVqwhrPmCW3hN3wn8MeR5PzOj3qtY6vjsN0BRgu7OGYLYF5iIX7gsFw zNonZ9zQQEa4yaps93LvyrdA5rVcE+stN4vhlKIbfaI5tQ5EC1krPcLnrttzqsfdy/xA JZpQ== 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 :arc-authentication-results; bh=/sjrm4NnN+7NT8BKNMOwU8AzU0laMUp4eE6f1p17GZs=; b=OuD4YJoaOPedKjq0OJyre0uWVXEG7c0WvjLfZcxm7FttoSVJ4WkYnUtJINAGNyLFUb NyaI57WCFYnKG/xNu9CEfBq8ZFx8Opo08ghZNyfne5ahgGudFwCgE3KElZ2aXd0F3pfT CcywuNdkJ0OHxJxexTuXoN6RDMB+BWN999DWyO1SeG4BFRhU6E7XfbB7khjz7ZL3hMij 0J/mehPAMcpoijOihCq8dWTO4aw28W1gHG3GlPXJ7IgWILLQ97RTmVkOPRJn9G05Iiab z9eHTGXzxtXrDD1rmeLpGO0pSgP0QUTVVYTazbiu8Q0OqYirjxkcHIeV0Z0PrCPVCbLS xjLA== 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 x5-v6si2472913pgc.210.2018.07.20.12.30.00; Fri, 20 Jul 2018 12:30:15 -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 S2388451AbeGTUTG (ORCPT + 99 others); Fri, 20 Jul 2018 16:19:06 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34826 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388180AbeGTUTG (ORCPT ); Fri, 20 Jul 2018 16:19:06 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C326720717; Fri, 20 Jul 2018 21:29:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [37.173.220.171]) by mail.bootlin.com (Postfix) with ESMTPSA id DB43F2069C; Fri, 20 Jul 2018 21:29:11 +0200 (CEST) Date: Fri, 20 Jul 2018 21:29:10 +0200 From: Boris Brezillon To: Janusz Krzysztofik Cc: Miquel Raynal , Tony Lindgren , Aaro Koskinen , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Linus Walleij , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Artem Bityutskiy Subject: Re: [RFC PATCH 3/8] mtd: rawnand: ams-delta: Set port direction once per transfer Message-ID: <20180720212910.49bb2a88@bbrezillon> In-Reply-To: <90128326.sKM4evrj8F@z50> References: <20180718235710.18242-1-jmkrzyszt@gmail.com> <20180718235710.18242-4-jmkrzyszt@gmail.com> <20180719082318.290abee1@bbrezillon> <90128326.sKM4evrj8F@z50> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; 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, 20 Jul 2018 20:12:05 +0200 Janusz Krzysztofik wrote: > On Thursday, July 19, 2018 8:23:18 AM CEST Boris Brezillon wrote: > > On Thu, 19 Jul 2018 01:57:05 +0200 > > Janusz Krzysztofik wrote: > > > > > In its current shape, the driver sets data port direction before each > > > byte read/write operation, even during multi-byte transfers. Optimize > > > that by setting the port direction only on first byte of each transfer. > > > > Sounds like premature optimization for something you'll rework when > > fully switching to the GPIO consumer API to control the DATA bus. > > Indeed, this optimization was crucial for getting acceptable performance of > data transfers over GPIO. I'm only not sure if there is any action in > response to your comment expected on my side, e.g., did you want to say I > should modify the patch description, or change the order of patches? I'm just saying that, since you switch to a solution that goes through the GPIO framework to control the data bus, making sure the the pin direction change is done only once when reading/writing several bytes is something you can do after/when transitioning to the new approach. So yes, I suggest to re-order patches, except that this patch won't look the same at all if you move it after the "use the GPIO consumer API to control data bus" patch.