Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758730AbcJYMVC (ORCPT ); Tue, 25 Oct 2016 08:21:02 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:45373 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751594AbcJYMVB (ORCPT ); Tue, 25 Oct 2016 08:21:01 -0400 Subject: Re: [PATCH] gpio: mxc: Shift generic request/free after gpiochip registration To: Linus Walleij References: <580EE62D.4090704@mentor.com> CC: Shawn Guo , "linux-gpio@vger.kernel.org" , Vladimir Zapolskiy , Fabio Estevam , Sascha Hauer , Philipp Zabel , "linux-kernel@vger.kernel.org" From: Deepak Das Message-ID: <580F4E22.8020805@mentor.com> Date: Tue, 25 Oct 2016 17:50:50 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1319 Lines: 37 On Tuesday 25 October 2016 05:41 PM, Linus Walleij wrote: > On Tue, Oct 25, 2016 at 6:57 AM, Deepak Das wrote: > >> generic gpio request/free should be added after gpiocip registration >> to validate mapping of gpiochip with pinctrl subsystem. >> >> gpiochip->pin_ranges list contains the information used by pinctrl >> subsystem to configure corresponding pins for gpio usage. >> This list will be empty if gpiochip fails to map with >> pinctrl subsystem for any reason. >> For Ex.:- >> generic gpio request/free should not be used if IOMUX pin controller >> device node is disabled in device tree. >> >> This commit checks above list and skips adding generic gpio request/free >> if list is found empty. >> >> Signed-off-by: Deepak Das >> Signed-off-by: Vladimir Zapolskiy > > Third time I find this in my inbox and it still doesn't apply. > > Yours, > Linus Walleij Hi Linus, Sorry for the trouble. Three patches were sent by mistake. I am rebasing this patch on top of your gpio fixes branch. This might not be required for stable branch since the original patch 4c806c9 "gpio: mxc: add generic gpio request/free callbacks to pinctrl" was included in v4.9 so this cane be added in v4.9 fixes. with warm regards, Deepak Das >