From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x225WL7rsCaKN90pFOJjcHOsw3u9JG59KF69t15Zm/qSdLRAHbLfJ8DHiVteM14waiN+Baifg ARC-Seal: i=1; a=rsa-sha256; t=1517256397; cv=none; d=google.com; s=arc-20160816; b=fpjkpVwLsUKDFOYfiOCv29s4AEufnGnHt9Gx1QgXEVD5gtZ9+CkcQ1OOWdB9WhPApW cKyArWEoGLXKiSMpjJU2YjCqNZARDXsQ4qDbqvKdZmr8tyUHmZOGkirwVKMXUesNKB0s lfflTEHt8NOtfUEbAtWC3lhQu/OFNaukRQC5ljRl5DHcdy6Fz+ZUFhYwtz3bjyVg3rv7 WIz04nhznCgUr1JBB2uIemuj92CteHMObm7OdnRsdLF6WeTPwpo20/pXo1O2RKPRrW7x DULuWsjrH3q38axNMpouA/BJfpdoFXnOaFJmvVdP6HSuEV/hcWKAIhtBOXsiJBxwqWBX xYxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=PKu8l7L97r3ht72YKJFrTmAeusipVxDa89jePma4wOo=; b=08fZ/ShqTGuXiIb9H5MLdlfH4H2fJlv7WSw3V79VOA44l8GCa9bJ39nOB/mXuYLPAk 4mdCMY4T45Qp2UCmDgdXvKtA4ad6fcRIRllyyUYa2VYHE+fzxmMAU35iVjG5tARlKZJy MuVhHker8UhA1iANeibR+fbR/evFGlKVU7b8J8BXTkaeP1OQNvmXkoeH5JbI2sRyiOsq LW0nCEJxrTeCzLBu/ZpFE092zy6tnjqR03L5z0oAwZhE0/3KjqILWwV6GpRGWiCqYM7T YXctfOFTTtLallqKCj/8QHO1qehwOWV/KrJ7ssoW1pyKMCxHinbcG07xJ2dxLHeeoC+p ILsA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.71.90 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.71.90 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-LABELS: =?utf-8?b?IlxcU2VudCI=?= X-GMAIL-THRID: =?utf-8?q?1590958644430960291?= X-GMAIL-MSGID: =?utf-8?q?1590958644430960291?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 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";