Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1100722imm; Wed, 8 Aug 2018 10:43:53 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx2fs/E26oo/seNrEucfnXFiFFP8pnlpeCEZwGdQOeIGwd20LpvJPtobXqwhfoGPCM7S/G1 X-Received: by 2002:a62:8d7:: with SMTP id 84-v6mr3992657pfi.172.1533750233269; Wed, 08 Aug 2018 10:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533750233; cv=none; d=google.com; s=arc-20160816; b=pSlY1h7BXJYXMlDIqjUBbLLjf26ELvWx+XAKdrUYmBcpTg7qgQKIIrqVcBxu8k4w6t cpPYIEA7kXzw0t50KBzQiK/oo+5mBBS3nOYdYDaSgmi3eHwvQKqShnGtpwrNYtAn/nln +lFll76MP46U0WqonkbrOvcfXuUpnVzpHPUWs8a6s5PIBNSjjIK3xUqsHDkyxS+8YjNt SptlSXdgbqaZdTYp2SCoc83NWaOOwrzBJUIFN/sQjYzrgL3uq/IeVygoJM8AIka92KFp JJAD/YYe1DqZCJIS4B3NVthk0JJ1SBmO9FX5kcwvBdtOnKp17YT6TnJTwNZqrb5miPOd Qv7w== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=YxyxU9kw23vdIBMjSHaRkGq81BmmnUNQBJrmFTtQ3Rg=; b=F1WmXk90+sEaeVHe0d0vCfzlGs/kbqHzOnkqKaU02VhIgjBrpyDB94dtDs+4viTSRW 8MiM+3+KbzLgP2RziaaAJ9QzmSyyvv5fp5XBrlATXSoapToR2biCW1ZDwWNFHAi1v6qs 5EhwE4wF82XcnJUmMeH/H9z8mGXizQVyZ9URu/ujmXNv79snP4KBzYf4g30xAEFIEg0m HXLQx2SxUnJR/3QfzUESAmuw0tUAQRUA4oHqpc3+iEWjZ28ZxX/hIhOmgTnFyKcw3PSb +LswHiRHQoxIjpJcdwF3pRRlfZvaHCD49SWacglZ1Ys/a9etU5HeuDKar8L6InGCOGzR OiHA== 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 k7-v6si4913240pfb.309.2018.08.08.10.43.39; Wed, 08 Aug 2018 10:43:53 -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 S1729660AbeHHUDc convert rfc822-to-8bit (ORCPT + 99 others); Wed, 8 Aug 2018 16:03:32 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42884 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729221AbeHHUDb (ORCPT ); Wed, 8 Aug 2018 16:03:31 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 6FDA22084E; Wed, 8 Aug 2018 19:42:45 +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 xps13 (unknown [91.224.148.103]) by mail.bootlin.com (Postfix) with ESMTPSA id 75D8D207E5; Wed, 8 Aug 2018 19:42:44 +0200 (CEST) Date: Wed, 8 Aug 2018 19:42:42 +0200 From: Miquel Raynal To: Janusz Krzysztofik Cc: Boris Brezillon , Linus Walleij , linux-omap@vger.kernel.org, Jonathan Corbet , Tony Lindgren , Richard Weinberger , linux-gpio@vger.kernel.org, Aaro Koskinen , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Vasut , linux-mtd@lists.infradead.org, Brian Norris , David Woodhouse , linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH v2 07/12] mtd: rawnand: ams-delta: Set port direction once per transfer Message-ID: <20180808194242.7540ce12@xps13> In-Reply-To: <3260564.acbQT1CZaz@z50> References: <20180718235710.18242-1-jmkrzyszt@gmail.com> <20180806222918.12644-8-jmkrzyszt@gmail.com> <20180807205752.32cd3e53@bbrezillon> <3260564.acbQT1CZaz@z50> Organization: Bootlin 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=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Janusz, Janusz Krzysztofik wrote on Wed, 08 Aug 2018 18:55:35 +0200: > Hi Boris, > > On Tuesday, August 7, 2018 8:57:52 PM CEST Boris Brezillon wrote: > > On Tue, 7 Aug 2018 00:29:13 +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. Since > > > performance of the driver is completely not acceptable on Amstrad Delta > > > after it has been converted to GPIO bitbang, try to improve things a > > > bit by setting the port direction only on first byte of each transfer. > > ... > > I'd suggest a slightly different approach where the data pins > > direction state is stored in the the priv struct and only changed when > > required. This way you just have to add a test in > > ams_delta_read/write_byte(). > > Good idea, I'm going to use it, thanks. > > Once done, may I also move that one earlier in the series so that it can be > applied while our discussion on GPIO bitmap changes still continues? I think I may answer on his behalf: yes! You can move the GPIO bitmap changes at the end of the series, checking that you never break the bisectability. Then I could apply the major changes and let us iterate on the GPIO bitmap stuff only. Thanks, Miquèl