From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF8E5C11D0C for ; Thu, 20 Feb 2020 18:19:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 87B812051A for ; Thu, 20 Feb 2020 18:19:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="k77UyK67"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="zp9UMwZd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 87B812051A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HT22VpDFG8i9Mb8aubCz0Kt6HveIYEHrSokRSV+P72I=; b=k77UyK67COy6EX lH/ZTaKIpF04hrKMdTLYbyUZmxXDoGh5AeT8VoMnwDXQByircHFFk08aLbKfv7/ZZy2IDUta0xhYY pr1q4MmgI41dmvj0AedwXtiN9eDz3YgFhIBS69Nv+Q5QYZYhntklDVK9o0w9Xyh59EYNT3p/0KyM8 gb7vBUKsv547+A9rCh55f+kPRohtzQ7VKv4PpjD4y3pzkM2/AYVwwWdICgNbJ4llQ7SyphJzb5fjp KqHQyAaWAk5+g7a07x2gCTKV3tWYCLVF9zz24h0hoouikHGpViQqxhhxB4RtDw9rsAX34i9Xmh/FL WSgDo7VhwV8wrZT4NIWw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4qQ7-00047u-6q; Thu, 20 Feb 2020 18:19:31 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4qPy-00040x-Ox for linux-arm-kernel@lists.infradead.org; Thu, 20 Feb 2020 18:19:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1KiLvVtdTJR08lV/a34E5gQuMJ2KUL9LQ6F89vXsum0=; b=zp9UMwZdckhNFcCl8erkEJXK9 5tIcna2TJdIQFd8JU2hRRsOEpFKGz1GqKM3w270neVuhiPBlCj1GWZWMo2nTIrv93zEEJx9mc1ttu uX8XzuYd0PLXSF3hLiVSnkwIxGPcn3xSb16zAi6rB/oeotzKathridIKV8n97g1XVePisctZn1T4e sFQxPBEo1xZUZzmNgGDUfSAcWtQv1jGefwoAgkq2JYfy+Xh5EBzaXtOnW7cLbQDSzYwWn/tOHjai4 y9egWVNm5mfDx9Q9E/xinXsAbyY/5iYRuU/QNxuUJm0UsP2whRIwz8+moZn21m/SDqiPYBomi140F y3fiTvylw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:54628) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1j4qPq-0004se-4M; Thu, 20 Feb 2020 18:19:14 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1j4qPo-0002jJ-1o; Thu, 20 Feb 2020 18:19:12 +0000 Date: Thu, 20 Feb 2020 18:19:12 +0000 From: Russell King - ARM Linux admin To: Andrey Smirnov Subject: Re: [REGRESSION] gpio hogging fails with pinctrl gpio drivers Message-ID: <20200220181911.GD25745@shell.armlinux.org.uk> References: <20200206173247.GX25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200220_101922_829149_F44F7D06 X-CRM114-Status: GOOD ( 19.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:GPIO SUBSYSTEM" , Linus Walleij , Peter Rosin , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Feb 20, 2020 at 09:28:14AM -0800, Andrey Smirnov wrote: > On Thu, Feb 20, 2020 at 12:18 AM Linus Walleij wrote: > > > > On Thu, Feb 6, 2020 at 6:33 PM Russell King - ARM Linux admin > > wrote: > > > > > It seems that sometime between 4.20 and 5.5, something has broken the > > > ability to specify gpio-hogs in DT for GPIOs that are written around > > > pinctrl drivers. > > (explanation that makes perfect sense) > > > Consequently, adding a gpio-hog to DT for this driver results in the > > > driver endlessly returning -EPROBE_DEFER. > > > > I suspect this is sx150x-specific and suspect these two commits: > > > > 1a1d39e1b8dd pinctrl: sx150x: Register pinctrl before adding the gpiochip > > b930151e5b55 pinctrl: sx150x: Add a static gpio/pinctrl pin range mapping > > > > I suppose people weren't using hogs very much with the sx150x and > > it didn't turn up in testing so far. > > > > I don't think for example pinctrl-stmfx.c has this problem, as it registers > > the pin ranges from the device tree as part of the core code. > > But other drivers calling gpiochip_add_pin_range() may be experiencing > > this. > > > > Peter/Andrey, do you have some idea? Have you tested this usecase (hogs) > > with the sx150x? > > > > Haven't done any GPIO hogging on sx150x, unfortunately. My use-cases were: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/vf610-zii-dev-rev-c.dts > > and > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/vf610-zii-scu4-aib.dts > > which didn't have any hogs so far (there's a chance Russell is using > the former for his experiments, so maybe that'll change). I don't any > useful input on this regression, sorry. I do have Rev C. board readily > available, so I can provide Tested-by's if I am CC'd on fixes. The ZII dev rev C is where I had the hog as a means of kicking the 88x3310 PHY out of reset. I've now converted it to a proper MDIO bus-level reset, so I no longer have the hog, and I no longer care about the regression - but that's not to say it shouldn't be fixed, as the code is wrong. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel