Received: by 10.223.176.46 with SMTP id f43csp2661379wra; Mon, 22 Jan 2018 01:06:07 -0800 (PST) X-Google-Smtp-Source: AH8x224MuSG7T11ua74crKK9+f/3co8rMxGu3E6oIKcNtlcED2GRvOMj84Asc98NsXhq+o23zjwe X-Received: by 10.99.6.72 with SMTP id 69mr6667009pgg.50.1516611967801; Mon, 22 Jan 2018 01:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516611967; cv=none; d=google.com; s=arc-20160816; b=MNfZ4MhmuPmSAXlvzVZVYyb/cDQMkl1gUJFtb1DEm5q4kvWHFQ0NDi9wvvnDqSxheV bbycAwWdHpaOP1ymOONeuzN212Oz9kAG+x8Q8eF7U/+4cTGeE+eJAoj1i4oj3Y/2Fjv9 +B+ZfKjF/AoMAR5UpR499nFeiP8dYFVyX75uEHVqCWdSoJ3S1tMzPO5BhmazaJyeU4sb Mm7we6b5Zvd2J7MMAJ4PRDjukkuSxexVUaMBR/yu0PFhVvhGOkuwAb/JC1G52TpGIZQP yKbbMu9BbzQRtcyn69jsmq9c42MdOVe5I+s7OB9xCN3QTNiiJ3w7Hs8/XuHkvun1Go5o +SyQ== 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=yyBMNWOkCM/7RaA46SyVVjAoHbIPl7g71hfg/iVPDLA=; b=kDxqek4DMlyAsfEitB6TPDQTRWtJZ7HCNIwzwClfurrARontn3R2kYKk7eI9afix8C igOe0u0CvcQz5P8NjZJNKdaKKSQfCoQPqqHMeOZuTv0MYaVAfjspNf9rr53BBAtYCOoT 5oQZZ3WwGsa2Ki+4OMy2j3UAljh6rrSZLGR6iePsfyCYsyYApMD+oNfeRi3LNYTukG/h SzOlvkHFHXbA4ZH0ohWNvlxaTFkAnGHEnyxtJaz0VdIgecXMw76NhbpHdS0oUEn3xoQc p04tJZTwMu1Jz8CgDFx24MOtNj4pfFkdWSV7k+Ie8txxlv0DgfhBExwGY0N9t+8ejGyb /fXA== 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 n3-v6si3208464plp.487.2018.01.22.01.05.53; Mon, 22 Jan 2018 01:06:07 -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 S1753418AbeAVIwu (ORCPT + 99 others); Mon, 22 Jan 2018 03:52:50 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:33764 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753375AbeAVIwr (ORCPT ); Mon, 22 Jan 2018 03:52:47 -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 ED8FCF0B; Mon, 22 Jan 2018 08:52:46 +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 4.14 59/89] ARM: dts: kirkwood: fix pin-muxing of MPP7 on OpenBlocks A7 Date: Mon, 22 Jan 2018 09:45:39 +0100 Message-Id: <20180122084000.598638597@linuxfoundation.org> X-Mailer: git-send-email 2.16.0 In-Reply-To: <20180122083954.683903493@linuxfoundation.org> References: <20180122083954.683903493@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 4.14-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";