Re: [PATCH v4 07/10] arm64: select HAVE_SHARED_GPIOS for ARCH_QCOM

Jon Hunter
2025-11-26T15:47:42Z

On 26/11/2025 15:33, Bartosz Golaszewski wrote:
> On Wed, Nov 26, 2025 at 4:29 PM Jon Hunter <jonathanh@nvidia.com> wrote:
>>
>>>>
>>>
>>> Is the device-tree used here upstream? Can you enable DEBUG_GPIO in
>>> Kconfig and post the entire kernel log on pastebin?
>>
>> The kernel log is here: https://pastebin.com/7rBh3T3T
>
> This is not telling me much, can you try again with the printk() I
> posted earlier, please?

Yes, sorry I missed that before kicking off the last test. With
this print I see ...

[ 0.120432] gpio_shared_of_traverse: /bus@0/ethernet@2490000 phy-reset-gpios
[ 0.121407] gpio_shared_of_traverse: /bus@0/mmc@3400000 cd-gpios
[ 0.121891] gpio_shared_of_traverse: /bus@0/host1x@13e00000/sor@15b80000 nvidia,hpd-gpio
[ 0.122035] gpio_shared_of_traverse: /bus@0/pcie-ep@141a0000 reset-gpios
[ 0.122075] gpio_shared_of_traverse: /bus@0/pcie-ep@141a0000 nvidia,refclk-select-gpios
[ 0.122342] gpio_shared_of_traverse: /regulator-vdd-hdmi gpio
[ 0.122381] gpio_shared_of_traverse: /regulator-vdd-3v3-pcie gpio
[ 0.122420] gpio_shared_of_traverse: /regulator-vdd-12v-pcie gpio
[ 0.122453] gpio_shared_of_traverse: /regulator-vdd-5v0-sata gpio
[ 0.122486] gpio_shared_of_traverse: /gpio-keys/key-force-recovery gpios
[ 0.122551] gpio_shared_of_traverse: /gpio-keys/key-power gpios
[ 0.122615] gpio_shared_of_traverse: /__symbols__ gpio
[ 0.122672] OF: /__symbols__: could not find phandle 794981747
[ 0.122701] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.18.0-rc7-next-20251126-00002-g1cd98992c487-dirty #21 PREEMPT
[ 0.122739] Hardware name: NVIDIA Jetson AGX Xavier Developer Kit (DT)
[ 0.122747] Call trace:
[ 0.122753] show_stack+0x18/0x24 (C)
[ 0.122772] dump_stack_lvl+0x74/0x8c
[ 0.122788] dump_stack+0x18/0x24
[ 0.122801] of_phandle_iterator_next+0x18c/0x1c4
[ 0.122819] of_count_phandle_with_args+0xa0/0xc8
[ 0.122832] gpio_shared_of_traverse+0xd4/0x4c8
[ 0.122848] gpio_shared_of_traverse+0x178/0x4c8
[ 0.122860] gpio_shared_init+0x11c/0x1f8
[ 0.122878] do_one_initcall+0x7c/0x1c0
[ 0.122892] kernel_init_freeable+0x204/0x2e0
[ 0.122908] kernel_init+0x20/0x1d8
[ 0.122923] ret_from_fork+0x10/0x20
[ 0.123055] gpiolib_shared: Finished scanning firmware nodes for shared GPIOs

Jon
--
nvpublic