You're on a 6.1.21 kernel, which is very old now. Presumably this means you're still on Bullseye too.my mcp23017 adddress 0x20 is connected with the Interrupt line to raspberrypizero pin 18 see attached picture.
I trid to monitor this pin viaCode:
sudo gpiomon gpiochip0 18
But never get any output .....Do I call this wrongly?
And also see this in dmesgCode:
[ 35.400849] gpio gpiochip1: (mcp23017): not an immutable chip, please consider fixing it![ 35.412129] at24 11-0050: supply vcc not found, using dummy regulator[ 35.456416] ------------[ cut here ]------------[ 35.456448] WARNING: CPU: 0 PID: 404 at drivers/gpio/gpiolib.c:3367 gpiochip_enable_irq+0x98/0xc0[ 35.456496] Modules linked in: at24(+) pinctrl_mcp23s08_i2c(+) pinctrl_mcp23s08 regmap_i2c hci_uart btbcm bluetooth ecdh_generic ecc libaes brcmfmac vc4 brcmutil snd_soc_hdmi_codec sha256_generic libsha256 8021q drm_display_helper garp stp cec llc drm_dma_helper cfg80211 drm_kms_helper snd_soc_core bcm2835_codec(C) snd_compress snd_pcm_dmaengine syscopyarea bcm2835_v4l2(C) sysfillrect sysimgblt raspberrypi_hwmon v4l2_mem2mem fb_sys_fops bcm2835_isp(C) bcm2835_mmal_vchiq(C) videobuf2_vmalloc videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common rfkill snd_bcm2835(C) videodev snd_pcm i2c_bcm2835 snd_timer snd mc vc_sm_cma(C) i2c_gpio i2c_algo_bit uio_pdrv_genirq fixed uio drm i2c_dev fuse drm_panel_orientation_quirks backlight ip_tables x_tables ipv6[ 35.456829] CPU: 0 PID: 404 Comm: modprobe Tainted: G C 6.1.21+ #1642[ 35.456848] Hardware name: BCM2835[ 35.456867] unwind_backtrace from show_stack+0x18/0x1c[ 35.456902] show_stack from dump_stack_lvl+0x34/0x58[ 35.456931] dump_stack_lvl from __warn+0x7c/0xf8[ 35.456964] __warn from warn_slowpath_fmt+0x60/0xcc[ 35.457000] warn_slowpath_fmt from gpiochip_enable_irq+0x98/0xc0[ 35.457030] gpiochip_enable_irq from bcm2835_gpio_irq_unmask+0x38/0x98[ 35.457054] bcm2835_gpio_irq_unmask from unmask_irq.part.8+0x28/0x3c[ 35.457088] unmask_irq.part.8 from irq_startup+0xbc/0xf4[ 35.457115] irq_startup from __setup_irq+0x6b0/0x7b0[ 35.457140] __setup_irq from request_threaded_irq+0xe0/0x164[ 35.457164] request_threaded_irq from devm_request_threaded_irq+0x6c/0xc8[ 35.457192] devm_request_threaded_irq from mcp23s08_probe_one+0x310/0x46c [pinctrl_mcp23s08][ 35.457284] mcp23s08_probe_one [pinctrl_mcp23s08] from mcp230xx_probe+0xe4/0x14c [pinctrl_mcp23s08_i2c][ 35.457361] mcp230xx_probe [pinctrl_mcp23s08_i2c] from i2c_device_probe+0x284/0x2a4[ 35.457407] i2c_device_probe from really_probe+0xcc/0x2b8[ 35.457430] really_probe from __driver_probe_device+0x88/0xec[ 35.457448] __driver_probe_device from driver_probe_device+0x34/0xcc[ 35.457466] driver_probe_device from __driver_attach+0x74/0x108[ 35.457486] __driver_attach from bus_for_each_dev+0x78/0xbc[ 35.457521] bus_for_each_dev from bus_add_driver+0x184/0x1e8[ 35.457553] bus_add_driver from driver_register+0x7c/0x114[ 35.457578] driver_register from i2c_register_driver+0x40/0x90[ 35.457598] i2c_register_driver from do_one_initcall+0x3c/0x1bc[ 35.457626] do_one_initcall from do_init_module+0x48/0x1fc[ 35.457651] do_init_module from load_module+0x1a90/0x1d04[ 35.457670] load_module from sys_init_module+0x164/0x194[ 35.457689] sys_init_module from __sys_trace_return+0x0/0x10[ 35.457708] Exception stack(0xdd8c1fa8 to 0xdd8c1ff0)[ 35.457727] 1fa0: 0002fa2c 01b67b70 01b67b70 00002150 0002de04 00000000[ 35.457744] 1fc0: 0002fa2c 01b67b70 00040000 00000080 01b57660 00000000 00000000 01b57448[ 35.457757] 1fe0: 00040e0c be8bf970 00023c04 b6ca3110[ 35.457767] ---[ end trace 0000000000000000 ]---[ 35.463018] gpio gpiochip2: (mcp23017): not an immutable chip, please consider fixing it!
The backtrace looks to be that it is objecting when enabling the interrupt line for the MCP23017. I'd check that you have got your interrupts defined to use the correct GPIOs in the dtoverlay, and nothing else is trying to use the same GPIO.
Statistics: Posted by 6by9 — Tue Dec 17, 2024 6:12 pm