From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934415AbdEKTLQ (ORCPT ); Thu, 11 May 2017 15:11:16 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:36713 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932811AbdEKTLO (ORCPT ); Thu, 11 May 2017 15:11:14 -0400 Subject: Re: pinctrl-sx150x.c broken in 4.11 To: Tony Lindgren References: <04424bd9-daba-e803-23ce-e7604bf41c71@cogentembedded.com> <20170511151647.GT3489@atomide.com> <252b379a-d3fe-8020-5209-f1de43004b08@cogentembedded.com> <20170511163615.GU3489@atomide.com> <7f79af49-2aae-2bd2-4b85-e65220cb27e8@cogentembedded.com> <20170511175106.GV3489@atomide.com> Cc: Linus Walleij , "linux-gpio@vger.kernel.org" , Andrey Smirnov , Chris Healy , Jeff White , "linux-kernel@vger.kernel.org" , Geert Uytterhoeven From: Nikita Yushchenko Message-ID: <8e203964-064c-260d-71eb-b430df365a08@cogentembedded.com> Date: Thu, 11 May 2017 22:11:05 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170511175106.GV3489@atomide.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> Maybe create_pinctrl() could check if the pin controller device >>> for a potential hog points to the device itself and bail out >>> if that's not the case? >> >> Well that's exactly what patch from my first mail in this thread does. >> This indeed fixes my case, but I don't know if it is correct in generic >> case. > > OK, yeah I just looked it up as I was not in cc. > >> Should I submit it? Do you ack? > > Yeah please submit a proper patch. I assume you already checked > that this change only affects the pinctrl hogs only, not regular > device pins? I'd assume so as it's in create_pinctrl().. Regular device pins go via pinctrl_get() which calls create_pinctrl() with second argument set to NULL.