Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757376AbcJYMLQ (ORCPT ); Tue, 25 Oct 2016 08:11:16 -0400 Received: from mail-qt0-f180.google.com ([209.85.216.180]:37795 "EHLO mail-qt0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751521AbcJYMLN (ORCPT ); Tue, 25 Oct 2016 08:11:13 -0400 MIME-Version: 1.0 In-Reply-To: <580EE62D.4090704@mentor.com> References: <580EE62D.4090704@mentor.com> From: Linus Walleij Date: Tue, 25 Oct 2016 14:11:12 +0200 Message-ID: Subject: Re: [PATCH] gpio: mxc: Shift generic request/free after gpiochip registration To: Deepak Das Cc: Shawn Guo , "linux-gpio@vger.kernel.org" , Vladimir Zapolskiy , Fabio Estevam , Sascha Hauer , Philipp Zabel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 864 Lines: 23 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