From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 0/4] arm/tegra: Convert gpio & pinmux to platform devices Date: Fri, 23 Sep 2011 18:48:52 +0200 Message-ID: <201109231848.52318.arnd@arndb.de> References: <1316725567-17881-1-git-send-email-swarren@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1316725567-17881-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Stephen Warren Cc: Russell King , Erik Gilling , Peter De Schrijver , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Colin Cross , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-tegra@vger.kernel.org On Thursday 22 September 2011, Stephen Warren wrote: > > This series converts the Tegra GPIO and pinmux drivers to be regular > platform devices. Looks good overall. > The series is extracted from an earlier series I posted that augmented > these drivers to initialize HW state from the device-tree. I'm holding > off on that aspect of the changes, since it's not entirely clear to me > whether the new pinmux API should drive the initial pinmux state setup > via "system hog" definitions, or whether pinmux drivers should indeed > do their own thing. I think at least you should try to do an ioremap of the pinmux register area in the pinmux probe function and make sure that it's called early enough, if at all possible. Right now, there is an empty probe() function, which is a bit silly, and the pg_readl()/pg_writel() functions use hardcoded register addresses. Arnd