Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3923029imm; Tue, 17 Jul 2018 12:39:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfeqYhrQyzm4lcV1gO3v6zR1gJH5jlarbedh4IYb+mb2XDdmFHd/bpqEC9hnUcnOFgkzBDN X-Received: by 2002:a63:7d48:: with SMTP id m8-v6mr2916231pgn.0.1531856374493; Tue, 17 Jul 2018 12:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531856374; cv=none; d=google.com; s=arc-20160816; b=gqLhy3VByl6JPu8UknR98tQfOuj4DRWKKpC32JrHD8z4joGN5sHnQodrzbHSvFgln4 CvFa6DBXu52o+oykaeNJ0VZE+5ix874CqIDo/FfsDZ3XMwb9AnKordSWakQh420Hyce3 sZUX0YR0ZWW1mE3IzB3B6OL4xMMsxiiTTJRU5YBAEvZUEUJki5guKZ6ee3CtfjpHF+HG VDU0k2uKSN8wL7bzwb9sBmtcKMHWazximISYGJrc06SYyS9MLgXEWayhnCv5fyi4TnXi 1elQofJmnAUn6D0dO9xt5vWMuZ9W1aGvg/ICzWXj5fyp0kZeS9tuj6ZaHpwdk7uj0zxC qYSw== 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=pDvOowYnrx9YGNACy6RAP2d+a7it2e5GXINhuUhpWHw=; b=yPVSCM/mwVwXphE05ydNCfla1U5ZK/B2Vcl2RQdLy+33MxLzCnRwrLuVs2PZg6E348 UguvRvhxGcMYVDQlw2ILhzBfi67H1iob9PL32xW7QfOAi3eU7rVGgJMnXRzrlZRQE0E4 NVSTR2GdB25cCuOTq464Rv3ysZ+WoevBULVNIq3Z/EcqH4+IO8mvsgZ1I466XJACMD00 ofmrcmACbmZdO8I3uQpJKlpYLpb/k+T/FzZmn2dBT+6NLc2yyavdYkujeXj5D3TYtSoh JIK16DOrifND0fTKHXlbTjUUcVpx7qm533w3BKOz+cfZ9VcBNA9YZTBjgZ6XHO1tBxU0 p+DQ== 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 p1-v6si1643602pfe.150.2018.07.17.12.39.19; Tue, 17 Jul 2018 12:39:34 -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 S1730107AbeGQUL4 (ORCPT + 99 others); Tue, 17 Jul 2018 16:11:56 -0400 Received: from mail.bootlin.com ([62.4.15.54]:52842 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729704AbeGQULz (ORCPT ); Tue, 17 Jul 2018 16:11:55 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 7CD02208C4; Tue, 17 Jul 2018 21:37:48 +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 (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 03D04207AB; Tue, 17 Jul 2018 21:37:37 +0200 (CEST) Date: Tue, 17 Jul 2018 21:37:36 +0200 From: Boris Brezillon To: Janusz Krzysztofik Cc: Miquel Raynal , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Krzysztof Kozlowski , Vladimir Zapolskiy , Gregory CLEMENT , Shreeya Patel , Arvind Yadav , linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH v3] mtd: rawnand: ams-delta: use GPIO lookup table Message-ID: <20180717213736.3cd0a747@bbrezillon> In-Reply-To: <20180709193850.20191-1-jmkrzyszt@gmail.com> References: <20180525222046.11200-1-jmkrzyszt@gmail.com> <20180709193850.20191-1-jmkrzyszt@gmail.com> 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 Hi Janusz, On Mon, 9 Jul 2018 21:38:50 +0200 Janusz Krzysztofik wrote: > Now as Amstrad Delta board - the only user of this driver - provides > GPIO lookup tables, switch from GPIO numbers to GPIO descriptors and > use the table to locate required GPIO pins. > > Declare static variables for storing GPIO descriptors and replace > gpio_ function calls with their gpiod_ equivalents. > > Pin naming used by the driver should be followed while respective GPIO > lookup table is initialized by a board init code. > > Signed-off-by: Janusz Krzysztofik > --- > Changlog: > v1: Fix handling of devm_gpiod_get_optional() return values - thanks to > Andy Shevchenko. > v2: Remove problematic error code conversion, no longer needed if used > on top of commit d08605a64e67 ("ARM: OMAP1: ams-delta: move late > devices back to init_machine") already in linux-next and commit > 8853daf3b4ac ("gpiolib: Defer on non-DT find_chip_by_name() > failure") just applied to linux-gpio/devel. Sorry, but we can't apply this patch now because of the dependency on those 2 commits. I guess it's not a big issue if we defer it to 4.20. Alternatively, we could consider queuing it to mtd/fixes after 4.19-rc1 is out, but we'll need a good reason to do that (like a regression that this patch is supposed to fix). Note for your future contributions: for this kind of cross-subsystem changes, it's better to let everything go through a single tree (usually done by sending all patches in a single series and explaining the dependencies between the patches in the cover letter), but it's already too late here (I guess d08605a64e67 is in the omap tree and 8853daf3b4ac in the gpio one). Regards, Boris