Received: by 10.223.176.5 with SMTP id f5csp3436108wra; Mon, 29 Jan 2018 13:09:00 -0800 (PST) X-Google-Smtp-Source: AH8x22401z2Ob4VRChkwG8JIopaHQPpq18UH5ImI29JCpLL9xBebETbH1FMxjD9tG6K2CekK5kL9 X-Received: by 10.98.194.8 with SMTP id l8mr28206411pfg.26.1517260140415; Mon, 29 Jan 2018 13:09:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517260140; cv=none; d=google.com; s=arc-20160816; b=asVFixXIqO5ixiqia7GLuPFY005UUj4AnPbCYf1mP42meSJu7+hMwkzp7lVW9RKfJP 1AmCoF73y8OgoeycVaL6YzBGVRzYA6oduF8rPgWMsH91GNvTIKsoyo4q2oW6xvoMom6r 87ZTEFJz9BpAEqQcx5jinHDzcLCUlYPGRxdWMaBaryO8rJgnBe6sj9OlRFkQpSg1i2tH gr4q6LnrgBCY22nlcVf2Wna4pMH55xvwFgcSrfEaF2e2QjNeCpZ4kl0lhZfU1ONQBNCQ vcLmpbEYWMw6PvOF0rd1VHACjHA7cP+kKazBpZmXcN/DjkRAXYnbX7UCG/SdeoK8fcaH W83g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=PKu8l7L97r3ht72YKJFrTmAeusipVxDa89jePma4wOo=; b=Y0Y7ANSouabv5jKVHjk0ytMQCCP8RyR+sPkzEcncIlljt0I8kd9Dqu6Jvnt4g9SXEF JwelrXegruxp3ayNmc5hBc2xcBEylK+JDuCDi7c9HKluPE4CTX0c80dXPc+7MMVuopvV WrViYug44wTwEBgOWq1T7roNlGpb7OgLEW7bz8dWc2IneEBLV8MLlNDssKfsEvF6soQM 3Atsma+UNKpmxcUB6RpCHNS+b+Iw4r2Oz0xWnLDMmdIYX+USIJ/52v9wu98MFkdQjywJ 7G6wV7FYOI5FeBnvjjOSCIqkdYznjhm1sjUWFdV45nXf+IAxZxU82pwVcgruzUkVv7dH RUGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i135si7954980pgc.459.2018.01.29.13.08.45; Mon, 29 Jan 2018 13:09:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751968AbeA2VHN (ORCPT + 99 others); Mon, 29 Jan 2018 16:07:13 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:48578 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752748AbeA2UGg (ORCPT ); Mon, 29 Jan 2018 15:06:36 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 69F312EC3; Mon, 29 Jan 2018 13:00:01 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Petazzoni , Andrew Lunn , Gregory CLEMENT Subject: [PATCH 3.18 15/52] ARM: dts: kirkwood: fix pin-muxing of MPP7 on OpenBlocks A7 Date: Mon, 29 Jan 2018 13:56:33 +0100 Message-Id: <20180129123628.860119873@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123628.168904217@linuxfoundation.org> References: <20180129123628.168904217@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Petazzoni commit 56aeb07c914a616ab84357d34f8414a69b140cdf upstream. MPP7 is currently muxed as "gpio", but this function doesn't exist for MPP7, only "gpo" is available. This causes the following error: kirkwood-pinctrl f1010000.pin-controller: unsupported function gpio on pin mpp7 pinctrl core: failed to register map default (6): invalid type given kirkwood-pinctrl f1010000.pin-controller: error claiming hogs: -22 kirkwood-pinctrl f1010000.pin-controller: could not claim hogs: -22 kirkwood-pinctrl f1010000.pin-controller: unable to register pinctrl driver kirkwood-pinctrl: probe of f1010000.pin-controller failed with error -22 So the pinctrl driver is not probed, all device drivers (including the UART driver) do a -EPROBE_DEFER, and therefore the system doesn't really boot (well, it boots, but with no UART, and no devices that require pin-muxing). Back when the Device Tree file for this board was introduced, the definition was already wrong. The pinctrl driver also always described as "gpo" this function for MPP7. However, between Linux 4.10 and 4.11, a hog pin failing to be muxed was turned from a simple warning to a hard error that caused the entire pinctrl driver probe to bail out. This is probably the result of commit 6118714275f0a ("pinctrl: core: Fix pinctrl_register_and_init() with pinctrl_enable()"). This commit fixes the Device Tree to use the proper "gpo" function for MPP7, which fixes the boot of OpenBlocks A7, which was broken since Linux 4.11. Fixes: f24b56cbcd9d ("ARM: kirkwood: add support for OpenBlocks A7 platform") Signed-off-by: Thomas Petazzoni Reviewed-by: Andrew Lunn Signed-off-by: Gregory CLEMENT Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/kirkwood-openblocks_a7.dts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- a/arch/arm/boot/dts/kirkwood-openblocks_a7.dts +++ b/arch/arm/boot/dts/kirkwood-openblocks_a7.dts @@ -53,7 +53,8 @@ }; pinctrl: pin-controller@10000 { - pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header>; + pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header + &pmx_gpio_header_gpo>; pinctrl-names = "default"; pmx_uart0: pmx-uart0 { @@ -85,11 +86,16 @@ * ground. */ pmx_gpio_header: pmx-gpio-header { - marvell,pins = "mpp17", "mpp7", "mpp29", "mpp28", + marvell,pins = "mpp17", "mpp29", "mpp28", "mpp35", "mpp34", "mpp40"; marvell,function = "gpio"; }; + pmx_gpio_header_gpo: pxm-gpio-header-gpo { + marvell,pins = "mpp7"; + marvell,function = "gpo"; + }; + pmx_gpio_init: pmx-init { marvell,pins = "mpp38"; marvell,function = "gpio";