Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756655Ab2HTOZJ (ORCPT ); Mon, 20 Aug 2012 10:25:09 -0400 Received: from mail-vc0-f174.google.com ([209.85.220.174]:46195 "EHLO mail-vc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754645Ab2HTOZG (ORCPT ); Mon, 20 Aug 2012 10:25:06 -0400 MIME-Version: 1.0 In-Reply-To: <1344689809-6223-5-git-send-email-sebastian.hesselbarth@gmail.com> References: <1344689809-6223-1-git-send-email-sebastian.hesselbarth@gmail.com> <1344689809-6223-5-git-send-email-sebastian.hesselbarth@gmail.com> Date: Mon, 20 Aug 2012 16:25:05 +0200 Message-ID: Subject: Re: [PATCH 04/11] pinctrl: mvebu: add pinctrl driver for Armada 370 From: Linus Walleij To: Sebastian Hesselbarth Cc: Thomas Petazzoni , Grant Likely , Rob Herring , Rob Landley , Russell King , Lior Amsalem , Andrew Lunn , Gregory CLEMENT , Ben Dooks , devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Warren Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1304 Lines: 45 On Sat, Aug 11, 2012 at 2:56 PM, Sebastian Hesselbarth wrote: > This pinctrl driver is not a full-blown pinctrl driver from scratch: > it relies on the common pinctrl-mvebu driver, which is used for all > Marvell EBU SoCs. Good! > +config PINCTRL_ARMADA_370 > + bool "Support for Marvell Armada 370 SoCs" > + depends on PINCTRL_MVEBU > + depends on MACH_ARMADA_370_XP select PINCTRL_MVEBU simply? And then have the Armada Kconfig select PINCTRL select PINCTRL_ARMADA_370 This machine doesn't seem to depend in the MVEBU driver, I guess it's the same ARCH as something else, oh well. Still suspect the MVEBU driver should depend on PLAT_ORION until proven wrong. (...) > +static int __devinit armada_370_pinctrl_probe(struct platform_device *pdev) > +{ > + struct mvebu_pinctrl_soc_info *soc = &armada_370_pinctrl_info; > + > + soc->variant = 0; Shouldn't this be a #defined thing or something. "variant 0" doesn't tell me much. No further comments, looking good. Yours, Linus Walleij -- 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/