Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2432807rwb; Fri, 9 Dec 2022 01:56:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf78vwmb7cgYvJeTQuxo0nw8+D++Urbgj5lr725AKay86QjSBybwi4L+MWe4eqFeIWsd2yhQ X-Received: by 2002:a05:6402:c07:b0:46b:203:f388 with SMTP id co7-20020a0564020c0700b0046b0203f388mr4486060edb.39.1670579806253; Fri, 09 Dec 2022 01:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670579806; cv=none; d=google.com; s=arc-20160816; b=f6Gt0l2vaGHwxnCeHDEiniHcJ9/j5Ji231LHQdaSqPDe3jK1B8FPh85ztF69h+hhrd fGIaNPNndrWzIjIStKdEQDwpq+0Sgu/Bl5eaT02WO0slLAEOgOwPEapYwkIbMt0STb4y wN3gib659aPpgiIflcSImcgtoqt+wnvacnk1JAtFlS0nFqeAASgg609lrZXThkYe6BUQ itTLB6vjolwVKWboyFiFPH2f+yPpVjaFXKLBIk9a+OLHBYNPFKLJE3Ikg2OovQfkgjHh ABMaRMXYan3p15rdgqpuIu4+ka2oK9RMc1CaKMDrS9/8Y/SQYlBO+BEUzcFzaVrikF6v lVHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=MXbJKJ47USAozSqWPqqsmKHOAUsEDX/fhBjXoI7FWF4=; b=j6SqS0trkcTG3ctGRl+eCRGytS/q7FcQiiY77fhIuMyiU5w2isUKNxu1VKrVwoELFo hl5bXaFaus88Tn1/saAiNgkHsrCFh8jHig6U2Hf8kc+egZv4kZzRyz6cVs7luk6UwJ5e 5Ywur+60G5fwTqCs5CTGs0n2IVD8JCKkLnEnRty3D/wmycjOkB2/M8CkNJ6QeF2uZrPt 962bfDh7EdwD365iWRkFCPegGy0hgubErhbcqRuxXEq9InoXbQLVzgeCcjFlC6xsltnU z7zkUv75ZbiPJTG9Bdh449pb7cpLiu1mKxzas5LOTXb5l6IJFZvENWhSEoIjxYdHzg9B vGYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@free.fr header.s=smtp-20201208 header.b="RPv/uX2d"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=free.fr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c16-20020aa7df10000000b00461540620f1si946656edy.169.2022.12.09.01.56.28; Fri, 09 Dec 2022 01:56:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@free.fr header.s=smtp-20201208 header.b="RPv/uX2d"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=free.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229891AbiLII6R (ORCPT + 73 others); Fri, 9 Dec 2022 03:58:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiLII6L (ORCPT ); Fri, 9 Dec 2022 03:58:11 -0500 Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D382C4876E for ; Fri, 9 Dec 2022 00:58:09 -0800 (PST) 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 Content-Type: text/plain; format=flowed X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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