Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp686337rwb; Wed, 7 Dec 2022 03:56:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf6vWGMA9Skx/pNWYEP0lQ4myG8v/oh91Ec8wqtoFBne5EZHtAb2nVmSvhWVYOUZrCBWKb1b X-Received: by 2002:a17:906:2619:b0:7c1:1cb:8c54 with SMTP id h25-20020a170906261900b007c101cb8c54mr8179429ejc.300.1670414180041; Wed, 07 Dec 2022 03:56:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670414180; cv=none; d=google.com; s=arc-20160816; b=nB5tvDETeXyCcp1XyhdyR/Q4BYsSL5NC/g3G4zkGl1fNdaNrbZ3YEYhboyecPCaE07 eaKHLs7La4zb49Hkrf+jfjXHEpREWvMw5o5EYn44cPYCEoPPY4x064xUI1yFtWOJ+cSN DarxZZrYUBCXlRJgTWWod7pVXuISdX0htDTyf/i7oLQCdV6+CDsLMA/iQHUJUe+S6bnJ SAouDGFJgSzEam0QgpEOopy1GNrp4XkTDfWhVZaSmmfe0+FhOoXSm6PIC8xQhqmH7uh6 bxZfG12SNag4E2alAGJPNUsMG+/gXeU0vKAil425gYghwt/fbMzOa//saYh/p859Wu95 bsqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=leA/6VloLSHmNt5dfl8HBEvdADa4M6ffk9LZYGoLDwM=; b=eoH5T7n+0/Nx4KbOMkK8aTSktdDu4WJoWksJsRibrTfXzxFJUtQqRuAVW6xKM48Yv8 3sdnkOyVT2omd+1PkcPA7Lv/YHm+W7eoIPi53aFw6bPdJQ96f27y0bFLFro6xH6pfluo c+0aJ/VumUUFc9hFf8c+b/cRAOL2n6fSLJ49SDMjzcnbTp30lgOj1nM+ip61vTpx7ZlK g6g0jk6P81K1FecWoOdPY8pf7ynWBW6LF271lZb9s5f71U4jAiMtejSApu8gh3ONd7HK nnEbWTsmpx9eGA5er1SL1acE6muOiQ9M7CRXFHM4rUnbKdoYCp4+OXI25y22VI0QoZgT t0Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=atjsyF5B; 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=QUARANTINE dis=NONE) header.from=gmx.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn12-20020a1709070d0c00b0078dcf11ccf7si17308307ejc.802.2022.12.07.03.56.01; Wed, 07 Dec 2022 03:56:20 -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=@gmx.net header.s=s31663417 header.b=atjsyF5B; 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=QUARANTINE dis=NONE) header.from=gmx.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229769AbiLGL0P (ORCPT + 76 others); Wed, 7 Dec 2022 06:26:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiLGL0N (ORCPT ); Wed, 7 Dec 2022 06:26:13 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C24011025 for ; Wed, 7 Dec 2022 03:26:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1670412357; bh=iWB0Flg1LIj12Mdqtv46GMMJS/VLgndICaJ5qf0GKk0=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=atjsyF5BO9kbRtR6SUckvXF1GJn35ImBXVsdRRs0dIatPjMSQKSNYKEbF6DYavguZ +9E7lQs65obWFdCLZMc0YVhlgBNnZZIUPf7BJQMfGgp2emkZ6HBnYYrHMBwYLGgf89 zxbnWmIP8DZiIFWwjKQAQmQz94JUXAlvdcd3jqPHGlXKtTXN75CKcaeqQ+PLr33hNK LbZ6pSDtnKyaLGVdZ32f3ak3V/2R53623ilVvcds5xx3VKcHGqHhaBgow84zS4kkFN m/sjOxRfiNAOd9esuzuUdQVqf9XM7cTTnkFEJofSQvJ5HXQjox0czMlRQ126PXDqLt mISnvfiPEiLRQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([95.223.44.31]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MI5UD-1p99xy2ihj-00FEMl; Wed, 07 Dec 2022 12:25:57 +0100 Date: Wed, 7 Dec 2022 12:25:53 +0100 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: linux-arm-kernel@lists.infradead.org Cc: Robert Jarzmik , Haojian Zhuang , Daniel Mack , linux-kernel@vger.kernel.org Subject: PXA25x: GPIO driver fails probe due to resource conflict with pinctrl driver Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aQ0C+mz0p8jyb4CT" Content-Disposition: inline X-Provags-ID: V03:K1:+aSGHhafDU13v3wYdeFD2QndWowCdMZNHk5e57ooPW2O+uSrwTJ yOKNiAJkIgSsSLnJp4RKNKkef3Bi222r4gPBpi/VJx2jeCVbsehbgxp2Nj5LvmwuMoSvQge x27Ogy/r1z+gjLfqR710l7Zbbb5sUREFvZ1zTOI57BW8ySo9epU9ujyOvJh7tq6FffNInLS A9CI0hAcfWK9NwoU6gSZg== UI-OutboundReport: notjunk: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, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 --aQ0C+mz0p8jyb4CT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I am currently trying to bring up Linux 6.1-rcX on a PXA255 board, using a devicetree. One problem I encountered is that the PXA GPIO driver fails to probe because it uses the same MMIO register range as the pinctrl driver: [ 0.666169] pxa25x-pinctrl 40e00054.pinctrl: initialized pxa2xx pinctrl driver [ 0.694407] pxa-gpio 40e00000.gpio: can't request region for resource [mem 0x40e00000-0x40e0ffff] [ 0.695050] pxa-gpio: probe of 40e00000.gpio failed with error -16 Before I try to fix this myself: Is GPIO on PXA25x currently expected to work and when has it last been seen working? What would be a good way to fix this? I've considered calling into pinctrl-pxa25x directly from pxa-gpio and passing in the GPIO driver's register mapping, rather than mapping the registers again in pinctrl-pxa25x. This seems like it should address the kernel's requirement that resources shouldn't overlap, but some additional locking between GPIO driver and pinctrl driver might be neccessary to keep register accesses consistent/atomic. Best regards, Jonathan --aQ0C+mz0p8jyb4CT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEvHAHGBBjQPVy+qvDCDBEmo7zX9sFAmOQeB8ACgkQCDBEmo7z X9spEhAArFDxtq11404dxWxRTEZtkVxKwo5KRFcwCo3MJWe2KzfXby928asuBc7v nxqKbSdNRsK9uy6hcX+uDCf/3i8hc3i8d5rxp8Y8FaLX5A6aFFWu7xL95qWWPctV DILTwA2uzEEXUinYWprS+YRFlkmaYo9NVkbJ7a9kT8+A70GlwkBYQ/kL3jwlw2uJ x7PnnTk53wEkwMJ7T7Z47uekJieIb/baSyk4bPUYacGZKwc1IUuvd9/ncc0VEM5W xaWQc6UGcVXOIu4j6kXt5xg14dyqzHSK8zKBmrZAvEvwQQveNlNoaHNfU1RlcGtx KjKwaOB1RBK5hlhdlRZzTdwpefM7i6JQJSfWwJRaiIQyfoLsMql/n8ETbA3k0Z5C LI4pdhkHf8kn7u++wgkGq1H6p1VWDemwwDPUwJ8C5wmJxL9EOYcMpAMyHQS3tuRP 71xfo+bMssVvkzz4Rz4V3nPlB0jopSz7Wqrp5N+BJh65bqwJEkcCmFrqH7Gtx/hr TXxomj9PpZUKBMQTmAnUxc89Iyd3EKECnnc2wDNB97MNEpFyXIxh9e5Peyb2PZ80 P2upMwRP/saroLsiB27EdZJcV01/1pzj2l1C8VASZVBAnFU2cKJuH9Luw6LC77NW K7c+CzZNwJqsrHPjcdNtmdFKDwAUVb4MB46ZdLtu0VqtUxJJzVM= =TWQm -----END PGP SIGNATURE----- --aQ0C+mz0p8jyb4CT--