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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 84C95C4332F for ; Fri, 9 Dec 2022 08:59:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:In-reply-to:Date:Subject:Cc: To:From:References:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IDoO60RRpLyfe+fLhQHXo8IXTUq6TrVt/N/9v0VBi3g=; b=WSg+m1WJowxTWmdyATOiAtQenr cmLdVS++AzIbfEc0lDNABzJSz19Y+HlWl5+n+/2tUFy2ITVJXK64KuhvKL54Oan3GOoRIyDQJDFeQ oOUfxnP34JNY12uIOezwgwy9gG33AnZUeqhGrtC5bBtr1S/saAkYNRq+hQyq0BhnARjRl6vPfKk+B GTZ401uFg4LqbVTyEWCFADU9PooTL7tDjTIoRxsYdByFVeCSE403AChigP9CEBXoeoCOghHcuS+cr 6f+SfiMM2od7miCGycY0a0TGXof8HialwFh245j/P6oOu94ogC5KYl24tmH6+EMUM9k/WILp58HI3 i4eB2vKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3ZCy-006586-QS; Fri, 09 Dec 2022 08:58:16 +0000 Received: from smtp1-g21.free.fr ([2a01:e0c:1:1599::10]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3ZCu-0064zd-Rx for linux-arm-kernel@lists.infradead.org; Fri, 09 Dec 2022 08:58:14 +0000 Received: from sopl295-1.home (unknown [IPv6:2a01:cb19:8d70:d500:6d47:7868:523:4848]) (Authenticated sender: robert.jarzmik@free.fr) by smtp1-g21.free.fr (Postfix) with ESMTPSA id 7925FB0055A; Fri, 9 Dec 2022 09:57:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1670576288; bh=oRefIkAOXaxlM+bT0sR8pPl0+u4qpNREsz38vn7WHa8=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=RPv/uX2dNIKGvFFvNU6I1/8oSaOePqh3z0IbJxv/rb73w+y5q4/X/6i0SXkPqYeG0 2ziZ7pyEbWDaiKuo6DKB9Or04quHsdFyni60J4W4+uLN0MnderyhXgLJWDfYqm9/97 mUwicQIzh5IuA+wA/MryWxAOrPciElB72FY7s62Ig7NqfYnePSkJ4Sl1BHe33MT86g HMprOaXwkvQ3rOHgDT5DbOKsu1pNTB2qv91DfRgBJmT65D5Xow/aK6TPGZEmhBko4U RgmG1oa7oYZq46o1UmQ4ZpLX82yk1FdR34u6f8WY2K2xfqbKxaRMi1ncWR0gcevpYc g0+bTV+wJsJiw== References: User-agent: mu4e 1.8.11; emacs 28.1 From: Robert Jarzmik To: "Russell King (Oracle)" Cc: Robert Jarzmik , Jonathan =?utf-8?Q?Neusch?= =?utf-8?Q?=C3=A4fer?= , Andrew Lunn , linux-arm-kernel@lists.infradead.org, Haojian Zhuang , Daniel Mack , linux-kernel@vger.kernel.org Subject: Re: PXA25x: GPIO driver fails probe due to resource conflict with pinctrl driver Date: Fri, 09 Dec 2022 09:55:41 +0100 In-reply-to: Message-ID: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221209_005813_074094_D6DB5FCE X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org "Russell King (Oracle)" writes: > Does the GPIO driver talk to the pinctrl driver to switch GPIOs > between > input and output mode? If it does, that's fine. If not, that can > cause > regressions, as GPIOs may need to be switched between input and > output > mode at runtime (e.g. for I2C gpio-based bitbang). It does. Basically it tries pinctrl first, and falls back to direct registers access. Here is a small extract of the gpio direction manipulation in gpio-pxa.c : if (pxa_gpio_has_pinctrl()) { ret = pinctrl_gpio_direction_output(chip->base + offset); if (ret) return ret; } spin_lock_irqsave(&gpio_lock, flags); tmp = readl_relaxed(base + GPDR_OFFSET); ... blablabal we set the bit, and write back the register. Cheers. -- Robert _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel