Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753702Ab3FKHoN (ORCPT ); Tue, 11 Jun 2013 03:44:13 -0400 Received: from eu1sys200aog111.obsmtp.com ([207.126.144.131]:37803 "EHLO eu1sys200aog111.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871Ab3FKHoK (ORCPT ); Tue, 11 Jun 2013 03:44:10 -0400 Message-ID: <51B6D49F.3030203@st.com> Date: Tue, 11 Jun 2013 08:41:19 +0100 From: Srinivas KANDAGATLA Reply-To: srinivas.kandagatla@st.com Organization: STMicroelectronics User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, Linus Walleij , "David S. Miller" , Russell King - ARM Linux , Samuel Ortiz , "linux-doc@vger.kernel.org" , Greg Kroah-Hartman , "devicetree-discuss@lists.ozlabs.org" , Stephen Gallimore , Rob Herring , "linux-kernel@vger.kernel.org" , Stuart Menefy , Mark Brown , John Stultz , "linux-serial@vger.kernel.org" , Grant Likely , Thomas Gleixner , Andrew Morton , Mauro Carvalho Chehab Subject: Re: [PATCH v2 04/11] mfd:stixxxx-syscfg: Add ST System Configuration support. References: <1370855828-5318-1-git-send-email-srinivas.kandagatla@st.com> <51B5DA26.6070707@st.com> <2757224.FBxg98dX57@wuerfel> In-Reply-To: <2757224.FBxg98dX57@wuerfel> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1377 Lines: 48 On 10/06/13 15:02, Arnd Bergmann wrote: > There are multiple ways of doing that, e.g. you could export a function > from syscon.c that you call to register the device node and then import > the regmap from syscon into your high-level driver again. > Hi Arnd/Linus, Thankyou for your comments, I did try using the full sysconf names in compatible and make use of syscon driver, with this change the nodes look much neater. The nodes changes to: syscfg_sbc:syscfg@fe600000{ compatible = "st,stih416-sbc-syscfg", "syscon"; reg = <0xfe600000 0x1000>; }; From: syscfg_sbc:syscfg@fe600000{ compatible = "st,stih416-syscfg"; reg = <0xfe600000 0x1000>; syscfg-range = <0 999>; syscfg-name = "SYSCFG_SBC"; }; Also I got rid of the drivers/mfd/stixxxx-syscfg.c driver all together for this basic support patch series, I will add this once there are new high level functions. Additional compatible string will allow code to get to regmap via syscon apis. I will get rid of this driver in next version for this series. Thanks, srini > Arnd > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/