Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752202AbdDCIqW (ORCPT ); Mon, 3 Apr 2017 04:46:22 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:35570 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752162AbdDCIqU (ORCPT ); Mon, 3 Apr 2017 04:46:20 -0400 MIME-Version: 1.0 In-Reply-To: <20170330161639.1855-1-tony@atomide.com> References: <20170330161639.1855-1-tony@atomide.com> From: Geert Uytterhoeven Date: Mon, 3 Apr 2017 10:46:08 +0200 X-Google-Sender-Auth: GOMk6kyFkABHuY9sumNtL0bK-iA Message-ID: Subject: Re: [PATCH] pinctrl: core: Fix pinctrl_register_and_init() with pinctrl_enable() To: Tony Lindgren Cc: Linus Walleij , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Fabio Estevam , Gary Bisson , Haojian Zhuang , Masahiro Yamada , =?UTF-8?Q?Mika_Penttil=C3=A4?= , Mika Westerberg , Nishanth Menon , Shawn Guo , Stefan Agner Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v338kRGQ025091 Content-Length: 1926 Lines: 47 Hi Tony, On Thu, Mar 30, 2017 at 6:16 PM, Tony Lindgren wrote: > Recent pinctrl changes to allow dynamic allocation of pins exposed one > more issue with the pinctrl pins claimed early by the controller itself. > This caused a regression for IMX6 pinctrl hogs. > > Before enabling the pin controller driver we need to wait until it has > been properly initialized, then claim the hogs, and only then enable it. > > To fix the regression, split the code into pinctrl_claim_hogs() and > pinctrl_enable(). And then let's require that pinctrl_enable() is always > called by the pin controller driver when ready after calling > pinctrl_register_and_init(). > > Depends-on: 950b0d91dc10 ("pinctrl: core: Fix regression caused by delayed > work for hogs") > Fixes: df61b366af26 ("pinctrl: core: Use delayed work for hogs") > Fixes: e566fc11ea76 ("pinctrl: imx: use generic pinctrl helpers for > managing groups") > Cc: Fabio Estevam > Cc: Gary Bisson > Cc: Geert Uytterhoeven > Cc: Haojian Zhuang > Cc: Masahiro Yamada > Cc: Mika Penttilä > Cc: Mika Westerberg > Cc: Nishanth Menon > Cc: Shawn Guo > Cc: Stefan Agner > Signed-off-by: Tony Lindgren The display on r8a7740-armadillo800eva still works, so the GPIO hog needed for that is OK. Tested-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds