From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753045AbbCJR5I (ORCPT ); Tue, 10 Mar 2015 13:57:08 -0400 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]:58460 "EHLO mail-gw3-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750981AbbCJR5G (ORCPT ); Tue, 10 Mar 2015 13:57:06 -0400 X-IronPort-AV: E=Sophos;i="5.11,376,1422950400"; d="scan'208";a="58933781" Message-ID: <54FF306C.7020407@broadcom.com> Date: Tue, 10 Mar 2015 10:57:00 -0700 From: Ray Jui User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Linus Walleij CC: Alexandre Courbot , Stephen Warren , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , "Grant Likely" , Christian Daudt , Matt Porter , Florian Fainelli , Russell King , Arnd Bergmann , "Paul Bolle" , Scott Branden , "Dmitry Torokhov" , Anatol Pomazau , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" , bcm-kernel-feedback-list , "devicetree@vger.kernel.org" Subject: Re: [PATCH v6 6/8] pinctrl: cygnus: add gpio/pinconf driver References: <1425933902-20652-1-git-send-email-rjui@broadcom.com> <1425933902-20652-7-git-send-email-rjui@broadcom.com> In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, On 3/10/2015 3:20 AM, Linus Walleij wrote: > On Mon, Mar 9, 2015 at 9:45 PM, Ray Jui wrote: > >> This adds the initial support of the Broadcom Cygnus GPIO/PINCONF driver >> that supports all 3 GPIO controllers on Cygnus including the ASIU GPIO >> controller, the chipCommonG GPIO controller, and the always-on GPIO >> controller. Basic PINCONF configurations such as bias pull up/down, and >> drive strength are also supported in this driver. >> >> Pins from the ASIU GPIO controller can be individually muxed to GPIO >> function, through interaction with the Cygnus IOMUX controller >> >> Signed-off-by: Ray Jui >> Reviewed-by: Scott Branden >> Tested-by: Dmitry Torokhov > > Patch applied! But please look at this: > >> +#include > > Doesn't just #include work? > I think I need linux/gpio.h for gpiochip_add_pin_range and some related APIs. >> +static int __init cygnus_gpio_init(void) >> +{ >> + return platform_driver_probe(&cygnus_gpio_driver, cygnus_gpio_probe); >> +} >> +arch_initcall_sync(cygnus_gpio_init); > > arch_initcall_sync() is a bit brutal. > > Can you please investigate if you can have this as a normal device_initcall() > utilizing deferred probe if necessary? > > Follow-up patches accepted! > I understand. Further investigation is needed and this may take a while, since a lot of our Cygnus drivers depend on GPIO and regulators (and all need to be converted to check against deferred probe errors). If possible, I'll definitely fix this. > Yours, > Linus Walleij >