Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932462AbcCLEsZ (ORCPT ); Fri, 11 Mar 2016 23:48:25 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:35540 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750926AbcCLEsW (ORCPT ); Fri, 11 Mar 2016 23:48:22 -0500 MIME-Version: 1.0 In-Reply-To: References: <1457192586-25596-1-git-send-email-vishnupatekar0510@gmail.com> <1457192586-25596-2-git-send-email-vishnupatekar0510@gmail.com> From: Vishnu Patekar Date: Sat, 12 Mar 2016 12:48:02 +0800 Message-ID: Subject: Re: [PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller support To: Linus Walleij Cc: Rob Herring , Jon Corbet , =?UTF-8?Q?Pawe=C5=82_Moll?= , Mark Rutland , "ijc+devicetree@hellion.org.uk" , Kumar Gala , Maxime Ripard , Russell King - ARM Linux , Emilio Lopez , Jens Kuske , Hans de Goede , Chen-Yu Tsai , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , linux-sunxi , "linux-gpio@vger.kernel.org" , Michael Turquette , Stephen Boyd , Reinder de Haan , linux-clk 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: 1577 Lines: 52 Hello Linus, On Wed, Mar 9, 2016 at 10:55 AM, Linus Walleij wrote: > On Sat, Mar 5, 2016 at 10:42 PM, Vishnu Patekar > wrote: > >> The A83T has R_PIO pin controller, it's same as A23, execpt A83T >> interrupt bit is 6th and A83T has one extra pin PL12. >> >> Signed-off-by: Vishnu Patekar >> Acked-by: Chen-Yu Tsai >> Acked-by: Rob Herring > > As partly noted by others: > >> +config PINCTRL_SUN8I_A83T_R >> + def_bool MACH_SUN8I > > bool > >> + depends on RESET_CONTROLLER > > Should it rather select RESET_CONTROLLER? I used depends on and def_bool as it is used for other sunxi pinctrl drivers. Using bool and select will not harm anything. Should I change it to bool and select ? or keep it to be uniform with earlier options? > >> +static const struct of_device_id sun8i_a83t_r_pinctrl_match[] = { >> + { .compatible = "allwinner,sun8i-a83t-r-pinctrl", }, >> + {} >> +}; >> +MODULE_DEVICE_TABLE(of, sun8i_a83t_r_pinctrl_match); > > Module talk in bool driver. I'll remove it. > >> +static struct platform_driver sun8i_a83t_r_pinctrl_driver = { >> + .probe = sun8i_a83t_r_pinctrl_probe, >> + .driver = { >> + .name = "sun8i-a83t-r-pinctrl", >> + .of_match_table = sun8i_a83t_r_pinctrl_match, >> + }, >> +}; >> +module_platform_driver(sun8i_a83t_r_pinctrl_driver); > > Should be builtin? Yes, It should be. I missed Maxime's earlier commets. > > Yours, > Linus Walleij