Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754324Ab1EVUYU (ORCPT ); Sun, 22 May 2011 16:24:20 -0400 Received: from mga09.intel.com ([134.134.136.24]:16691 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753267Ab1EVUYO (ORCPT ); Sun, 22 May 2011 16:24:14 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,253,1304319600"; d="scan'208";a="2669729" Date: Sun, 22 May 2011 22:24:06 +0200 From: Samuel Ortiz To: Arnd Bergmann Cc: Mark Brown , Subhasish Ghosh , "Nori, Sekhar" , linux-arm-kernel@lists.infradead.org, davinci-linux-open-source@linux.davincidsp.com, sachi@mistralsolutions.com, open list , "Watkins, Melissa" Subject: Re: [PATCH v4 01/11] mfd: add pruss mfd driver. Message-ID: <20110522202405.GF18610@sortiz-mobl> References: <1303474109-6212-1-git-send-email-subhasish@mistralsolutions.com> <20110514160126.GA2791@opensource.wolfsonmicro.com> <201105142233.53659.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105142233.53659.arnd@arndb.de> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1498 Lines: 40 Hi Arnd, On Sat, May 14, 2011 at 10:33:53PM +0200, Arnd Bergmann wrote: > On Saturday 14 May 2011, Mark Brown wrote: > > > Will a misc device be a better choice. > > > > > In that case I can remove the MFD cell from the board_file and add an array > > > of platform_device for the UART & CAN. > > > > I think that for me so long as it can simultaneously do two unrelated > > functions which need to be arbitrated between there's probably a place > > for it in MFD, certainly at the minute. > > I guess drivers/mfd would be a better place than drivers/misc, but it might not > need to be an mfd driver in the sense that it registers mfd cells. > I agree with that. Although if it makes it to drivers/mfd/, I'd prefer to see it using the MF API. > The more important point is to remove the device registration from the board > file. You definitely should not have the cells in the board file, but replacing > them with platform devices in the board file makes it no better. > > My whole point has been that you register them from the main pruss driver > based on run-time data instead of compile-time pre-configured stuff in the > board file. That's certainly right. Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ -- 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/