Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3185702imm; Fri, 20 Jul 2018 11:38:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfRUcsyK/RuYkCH7ldNc7N4bHCfukHDOxzmXhW54vJAgz6AfgPCGLRDX+cuTDDqC45K5i4F X-Received: by 2002:a17:902:46e:: with SMTP id 101-v6mr3189945ple.39.1532111906448; Fri, 20 Jul 2018 11:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532111906; cv=none; d=google.com; s=arc-20160816; b=u0wNexianu7P5m0GaQ5q65vfim2bNmDr+icxQzwNnrAS/NEIy/K7MhFUHPNvBT7kua k16G9mT6d9NUlmlaWDglVP/Qo3hUJ/V6OD8eqqGYgq7umvmVIq+Zd/LYYe6oDGx6W5oY s4QXw+S3u3Cf4Kbu5fc+otJIFQmD2PgsK+7iwe4dKND6+rOXkYHPFedSTrqJZLgeJILr kL5aWJc1ociK5/uvWwTUWZqndcguhhnaIuoKtxfukEZc+hDqcqUpQUJt2ZVAk2ZM5Ou7 oEKbl2LzHSC61+utH7sHWF1/n2kbcRQua6d/t4OAvztNHYCT6PGwS5xFFurfP7ujHjNO CK4g== 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:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=JsWCJcXk2I5J9D+iQuR4M3uhG40dpNyDVB9MM87zk+U=; b=zZTIyj2LSR6nv+ZWiASieYgba60J0nZAF1T5KiMPKZdOSATFDDWIGNsLNPfgKgUCrt mAPnvbwRvbOqzJXAymK6eN8Kmd9XgtBK5FCAZ59903bwRdUK15WLtrjKFKwQibpLiuLi ls+1AOWUaNrsBjNDa81YQ/IBoraKZ0Y73EX3g24x2OHl2lutLVlXekjpD61jBMSb55If cLmgFFI4LeTvP1BSdSqAvE6Kq7RPTHCw81Dc7IqpeIOzUlGKBXy3AmssJedvU9ZmPjDf 5nugipVGrbV52MUgsuD3N3leeUSZRpoMl9Icp3sWHf57d8LPcfFiZkMPygbIDXmBQrjb 0nKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ufOowqFB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5-v6si2123145plr.13.2018.07.20.11.38.11; Fri, 20 Jul 2018 11:38:26 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ufOowqFB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388198AbeGTT1G (ORCPT + 99 others); Fri, 20 Jul 2018 15:27:06 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46194 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731939AbeGTT1F (ORCPT ); Fri, 20 Jul 2018 15:27:05 -0400 Received: by mail-lj1-f195.google.com with SMTP id 203-v6so11855883ljj.13; Fri, 20 Jul 2018 11:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JsWCJcXk2I5J9D+iQuR4M3uhG40dpNyDVB9MM87zk+U=; b=ufOowqFB6kYderNIXsh/2w8lJMWEhT50HKz1c3esgYpyOOwqzcYVPPkMtMFFX/nI/J bZDnDtsBUZG0QVeXaXtitJVmj249UJ06Vm2PlnYKqp9P9GKqaUugvM+VC4MSxmDKzBq+ kKY6q+fwDP4PqHWgFKJNtGC86Erb1nxHMqM8es+aQY7WaqkfOwF1TJb/POOUQiIRYQyc ODiD3QTQeYmi4Z6GfPSq8kzLgGVUGzeC2J3Fbtz4f9kYSw40arAiXCPddpnvvMR+23bx 0QQwlHJaeevwkHoVgjFsSumI88xxxxz6Y7l/FwVGIPql0bfxSzFhtgYcOnqWfXK9sh4B MhNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JsWCJcXk2I5J9D+iQuR4M3uhG40dpNyDVB9MM87zk+U=; b=eDJB6KVCxbOiwhm0B7G/kzFbsH+OzPMIYjz2HpYY3TwB2wVMiQTVtWOuR2NQJt9kCL IBfEdwUxEb3rowPGVP735yriggAnDOXwZA9xV2NrjnINH59G7lcZ8LLgs5xsYkWQeLuW v/SUPPavJFzYJjOCFnNKb9KcvP8U0TMe9QJDjIHS/yyjhV+fyNKHFfjBfDbmikCIfuUE 42nhjo6JJj0W2E5JCZ73w8EJrRzY3AKV/8FzgOY6Xh3zZ6k6pbXv769nSYMWL/pjNWtO OG4meACdC3b8QQJG37kw1mR/JU1vpGZCfhpiTdoCuD2CYQNDTG4/sXm4ZuKGQ9PklmOZ Ujgg== X-Gm-Message-State: AOUpUlHLE6QBCq7dGqHXX2/Xs9clvA4SowbDnut67P1lbCmh/YIF4FtA Q+4/C+JgUliHQUVc/Dl5F/w= X-Received: by 2002:a2e:9dc7:: with SMTP id x7-v6mr2366635ljj.142.1532111854007; Fri, 20 Jul 2018 11:37:34 -0700 (PDT) Received: from z50.localnet ([31.0.82.186]) by smtp.gmail.com with ESMTPSA id z7-v6sm387088lfg.89.2018.07.20.11.37.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 11:37:33 -0700 (PDT) From: Janusz Krzysztofik To: Boris Brezillon 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 8/8] mtd: rawnand: ams-delta: Use GPIO callbacks for data I/O Date: Fri, 20 Jul 2018 20:38:15 +0200 Message-ID: <2165137.iTHcPHRtIn@z50> In-Reply-To: <20180719084749.25ca96a6@bbrezillon> References: <20180718235710.18242-1-jmkrzyszt@gmail.com> <20180718235710.18242-9-jmkrzyszt@gmail.com> <20180719084749.25ca96a6@bbrezillon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, July 19, 2018 8:47:49 AM CEST Boris Brezillon wrote: > On Thu, 19 Jul 2018 01:57:10 +0200 > Janusz Krzysztofik wrote: > > > Don't readw()/writew() data directly from/to GPIO port which is under > > control of gpio-omap driver, use GPIO chip callbacks instead. > > > > Thanks to utilization of get/set_multiple() callbacks, performance > > degrade is minor for typical data transfers. > > Same comment here, don't use the gpio_chip hooks directly, use the > consumer API instead. I tired but performance was not acceptable. I see your point but please understand, what I'm trying to do here is not to develop a shiny general purpose fully GPIO based NAND driver, I'm trying to resolve issues with NAND driver for Amstrad Delta I like to play with, without loosing much performance. I'm going to reconsider all possible options, not only doing data I/O over GPIO inside the driver, to have the task completed. Once done, I can get back to the GPIO based code I developed so far and create a new generic driver as my free time permits, or anyone can do that if needed, the code is open source after all. Thanks, Janusz