Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp3646238ooa; Mon, 13 Aug 2018 15:37:53 -0700 (PDT) X-Google-Smtp-Source: AA+uWPydNmj7hhaneD+DoXjZ+Doxr/4JIIWFQryaaglZ3Na9nkUZCmxN+QWPwYmAw+HMMdr/gwVg X-Received: by 2002:a63:f002:: with SMTP id k2-v6mr18291617pgh.8.1534199873434; Mon, 13 Aug 2018 15:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534199873; cv=none; d=google.com; s=arc-20160816; b=KrmhacoNdBraTfBEdrIFK8AgaS9p4BZ3ex+TwC2548BdEUXkiPs2OcVXEk8tJQ41Zc aPAxSIykxwOr43SrmVbGuHK3VaFnV6AHsWx/S7wQvcuIPGbL9oAscbYioxNYELRC/EqN mHSYd9Xe/mSwnsDhcpXU423xz/w0himH0rGXgDqZZ/cSKR72qSl3FTScwr/cuyL+Hage eo/iU6wdwt0AtXGs9tH1p/8zbgnqZJmkpjcGLflcMqxXKPI2eIAkuH/8zffU8SqueYf9 uU+3b914Ry8Whytwx1EOiUBMBN5g+l9N6BHoHlT2jPATTKM1Uu5VtR+SZtBwQbOEybet qRYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=E/pecawERtjJIxLEh1DU7x47/6hRfEvwWGaPsttKek8=; b=lePYfY9k0a1a7fce91U4OumepoElO5sW4m437CULa6kcQfnYObFocH1cGokFRjo0jC 7FjSkq3D87+TF+MUgthcEZtVCdyix6bOUdaI5N3xC6X92+ps0cV+DdsnjGWqFp8lzrqb YtgpdlxGt7mqY+Ab2HDoKE/9PJF1eW7paOCNNYTQpp7XyA5148Rp1fvjyUY8+1yEqm6A wxmRpxSMlYjuFA7QYnSIJceHk4JfOjGbaKy+z9j2aAKGYnwm63scbm7EEtL1PD3y0Pz0 MZt+pzwN2GEAr4FSU5CAfN0qziOVpu/PSRvolFvuer0RQcneRdgByFxaCbMiwd4j63QJ A8hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KMHgvyGA; 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 w19-v6si15140045plq.413.2018.08.13.15.37.38; Mon, 13 Aug 2018 15:37: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KMHgvyGA; 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 S1731813AbeHNBSx (ORCPT + 99 others); Mon, 13 Aug 2018 21:18:53 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:39481 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729230AbeHNBSx (ORCPT ); Mon, 13 Aug 2018 21:18:53 -0400 Received: by mail-lj1-f194.google.com with SMTP id l15-v6so13832380lji.6; Mon, 13 Aug 2018 15:34:37 -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; bh=E/pecawERtjJIxLEh1DU7x47/6hRfEvwWGaPsttKek8=; b=KMHgvyGA+Bfkxywhq5Ya+7yljcsBIheKJWkdDgitUFMCCvKEEfVojMhoESSWjT+BKH 9L9b/K22b2aJy+qIx3v0T33EVRwfFJPenC6qBHzEGcT1uE2codHIDMn1isIRiTNVdONQ kbUFdOPTzNKuE0sx/T3Y5RsxxMqGADHZC8aK/iN8WnTrGXCoCyjnEKRXNggaxggafKky QZIFA7h62zFnT358ECiwEbu4k+29pHiCyXH2deIB6E+Sy0Nj5EJmxnYSXwn40E+KQPpi jlq1COhdedzlXt1OkbdSgci3Si8Q9KdckrI/lMYnguF0r9RGXL7K2rKgDwMDKZ0H9FhC uEww== 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; bh=E/pecawERtjJIxLEh1DU7x47/6hRfEvwWGaPsttKek8=; b=SmyJD3hd25Ua5TehC4Fk6tgD8GnTczgvHxJ/xJsIn3+2bQezZS6JKgcNUSkoHgJBO0 qUAaCDy+cERSLRodZ3yp1ycg65Rzx8zh8vk/qc+KF+T98Dl7GesVk4uLEOPwkiQJbv0n YdTT1a5denxxWGxZKBA84l7fa563tEfjlpvSMaHSbollfhiWEi0iHNDyh5zBAA1+VIyP +6PgGJhhHuuVuXeneAOvcNL+iDaQfAmDJHAmI1i1XW79/mISTfm46/0LUzH3DYidEewE m6LGKl+duhabgMKWhzgGgjnD3/i+q2trssRFnPjYZzN+a0Npdwmy5nb3feSM3+gnX4Yr 0Z/w== X-Gm-Message-State: AOUpUlGTwIm2PSUAy5FPJyo/Yp0brsEBJznXsw1D68vNsa9aVN5t9Llv VJcKu9eGgA2GMtuytCjdnK0= X-Received: by 2002:a2e:7c12:: with SMTP id x18-v6mr1079340ljc.71.1534199677055; Mon, 13 Aug 2018 15:34:37 -0700 (PDT) Received: from z50.lan (93-181-165-181.internetia.net.pl. [93.181.165.181]) by smtp.gmail.com with ESMTPSA id f136-v6sm3572702lfe.71.2018.08.13.15.34.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Aug 2018 15:34:35 -0700 (PDT) From: Janusz Krzysztofik To: Boris Brezillon , Miquel Raynal Cc: Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Tony Lindgren , Aaro Koskinen , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-mtd@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Janusz Krzysztofik Subject: [PATCH v3 0/7] mtd: rawnand: ams-delta: Use GPIO API for data I/O Date: Tue, 14 Aug 2018 00:34:41 +0200 Message-Id: <20180813223448.21316-1-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180806222918.12644-1-jmkrzyszt@gmail.com> References: <20180806222918.12644-1-jmkrzyszt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Implement the idea suggested by Artem Bityutskiy and Tony Lindgren, described in commit b027274d2e3a ("mtd: ams-delta: fix request_mem_region() failure"). Use pure GPIO API as suggested by Boris Brezillon. Janusz Krzysztofik (7): mtd: rawnand: ams-delta: show parent device in sysfs mtd: rawnand: ams-delta: Use private structure ARM: OMAP1: ams-delta: Provide GPIO lookup table for NAND data port mtd: rawnand: ams-delta: request data port GPIO resource mtd: rawnand: ams-delta: Set port direction when needed mtd: rawnand: ams-delta: Simplify pointer resolution on read/write mtd: rawnand: ams-delta: use GPIO API for data I/O Changelog: v3: [PATCH v3 1/7] mtd: rawnand: ams-delta: show parent device in sysfs - renamed and an explanation added based on other similar patches on Marek Vasut request, thanks. [PATCH v3 2/7] mtd: rawnand: ams-delta: Use private structure - no changes. [PATCH v3 3/7] ARM: OMAP1: ams-delta: Provide GPIO lookup table for NAND data port - no changes. [PATCH v3 4/7] mtd: rawnand: ams-delta: request data port GPIO resource - no changes. [PATCH v3 5/7] mtd: rawnand: ams-delta: Set port direction when needed - modified to set port direction only when needed instead of on each transfer as suggested by Boris, thanks, though I kept separate *_next_byte() functions to maximize performance as much as possible, - moved back in front of "mtd: rawnand: ams-delta: use GPIO API for data I/O" with a comment added referring to the planned switch to GPIO API. [PATCH v3 6/7] mtd: rawnand: ams-delta: Simplify pointer resolution - moved back in front of "mtd: rawnand: ams-delta: use GPIO API for data I/O" on Boris request, thanks. [RFC PATCH v3 7/7] mtd: rawnand: ams-delta: use GPIO API for data I/O - rebased back on top of the two mentioned above, - not intended to apply it yet due to performance issues on Amstrad Delta. Removed from the series: [RFC PATCH v2 09/12] gpiolib: Identify GPIO descriptor arrays with direct mapping [RFC PATCH v2 10/12] gpiolib: Introduce bitmap get/set array API extension [RFC PATCH v2 11/12] mtd: rawnand: ams-delta: Use GPIO API bitmap extension [RFC PATCH v2 12/12] gpiolib: Add fast processing path to bitmap API functions - intended to be still iterated in a follow up series until performance issues are resolved. [RFC PATCH v2 06/12] ARM: OMAP1: ams-delta: drop obsolete NAND resources - postponed until acceptable performance on Amstrad Delta is achieved. v2: [RFC PATCH v2 00/12] mtd: rawnand: ams-delta: Use GPIO API for data I/O - renamed from former [RFC PATCH 0/8] mtd: rawnand: ams-delta: Use gpio-omap accessors for data I/O [RFC PATCH v2 01/12] mtd: rawnand: ams-delta: Assign mtd->dev.parent, not mtd->owner - split out from former [RFC PATCH 1/8] on Boris request, thanks. [RFC PATCH v2 02/12] mtd: rawnand: ams-delta: Use private structure - remaining part of the former [RFC PATCH 1/8]. [RFC PATCH v2 03/12] ARM: OMAP1: ams-delta: Provide GPIO lookup table for NAND data port - split out from former [RFC PATCH 5/8] on Boris requesst, thanks, [RFC PATCH v2 04/12] mtd: rawnand: ams-delta: request data port GPIO resource - remaining part of the former [RFC PATCH 5/8], [RFC PATCH v2 05/12] mtd: rawnand: ams-delta: use GPIO API for data read/write - reworked from former [RFC PATCH 8/8] on Boris requesst to use pure GPIO API, thanks, - moved up in front of former [RFC PATCH 3/8] on Boris request, thanks. [RFC PATCH v2 06/12] ARM: OMAP1: ams-delta: drop obsolete NAND resources - split out from former [RFC PATCH 8/8]. [RFC PATCH v2 07/12] mtd: rawnand: ams-delta: Set port direction once per transfer - reworked from former [RFC PATCH 3/8] on top of [RFC PATCH v2 05/12]. [RFC PATCH v2 08/12] mtd: rawnand: ams-delta: Simplify pointer resolution on read/write - reworked from former [RFC PATCH 4/8] on top of [RFC PATCH v2 08/12], - renamed from 'Optimize' to 'Simplify' on Boris request, thanks. [RFC PATCH v2 09/12] gpiolib: Identify GPIO descriptor arrays with direct mapping - new patch. [RFC PATCH v2 10/12] gpiolib: Introduce bitmap get/set array API extension - new patch. [RFC PATCH v2 11/12] mtd: rawnand: ams-delta: Use GPIO API bitmap extension - new patch. [RFC PATCH v2 12/12] gpiolib: Add fast processing path to bitmap API functions - new patch. Removed from the series: [RFC PATCH 2/8] mtd: rawnand: ams-delta: Write protect device during probe - postponed on Boris request, thanks. [RFC PATCH 6/8] gpio: omap: Add get/set_multiple() callbacks - already applied by Linux in linux-gpio tree, thanks. [RFC PATCH 7/8] mtd: rawnand: ams-delta: Check sanity of data GPIO resource - most controversial one, no longer needed after switching to GPIO API. diffstat arch/arm/mach-omap1/board-ams-delta.c | 11 - drivers/mtd/nand/raw/ams-delta.c | 351 +++++++++++++++++++--------------- 2 files changed, 209 insertions(+), 153 deletions(-) Thanks, Janusz