RM530N-GL PCI recognize issue

I have RM530N-GL under the Ubuntu 24.04 system, normally can be seen with USB mode.

— lsusb —
root@pi5:/home/lab# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 006: ID 2c7c:0801 Quectel Wireless Solutions Co., Ltd. RM530N-GL
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

After I change to the PCI module with below command, sometimes they can bee seen via pci with “lspci”, however, if i reboot the system, they may lost the pci connection, back to USB, and hard to recover to pci again,
I try both the driver of mhi_pci from Quetuel and mhi_pci_generic from ubuntu, result is wired, who can help me on that, to stable the work mode?
Below is the AT command for reference. Thanks!

AT+QCFG=“data_interface”,1,0
AT+QCFG=“pcie/mode”,0
AT+QCFG=“usbnet”,2
AT+CFUN=1,1

Some others command for reference:

root@pi5:/home/lab# dmesg | grep mhi
root@pi5:/home/lab# dmesg | grep usb
[ 0.942703] usbcore: registered new interface driver usbfs
[ 0.948228] usbcore: registered new interface driver hub
[ 0.953573] usbcore: registered new device driver usb
[ 1.374354] usbcore: registered new interface driver lan78xx
[ 1.380141] usbcore: registered new interface driver smsc95xx
[ 2.113365] dwc2 1000480000.usb: supply vusb_d not found, using dummy regulat or
[ 2.126019] dwc2 1000480000.usb: supply vusb_a not found, using dummy regulat or
[ 2.345654] dwc2 1000480000.usb: EPs: 8, dedicated fifos, 4080 entries in SPR AM
[ 2.355153] dwc2 1000480000.usb: DWC OTG Controller
[ 2.365908] dwc2 1000480000.usb: new USB bus registered, assigned bus number 1
[ 2.371847] dwc2 1000480000.usb: irq 40, io mem 0x1000480000
[ 2.383163] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bc dDevice= 6.08
[ 2.395176] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber= 1
[ 2.401818] usb usb1: Product: DWC OTG Controller
[ 2.410118] usb usb1: Manufacturer: Linux 6.8.0-1038-raspi dwc2_hsotg
[ 2.417980] usb usb1: SerialNumber: 1000480000.usb
[ 2.862120] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bc dDevice= 6.08
[ 2.870427] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber= 1
[ 2.877685] usb usb2: Product: xHCI Host Controller
[ 2.882582] usb usb2: Manufacturer: Linux 6.8.0-1038-raspi xhci-hcd
[ 2.888877] usb usb2: SerialNumber: xhci-hcd.0
[ 2.901492] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bc dDevice= 6.08
[ 2.909797] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber= 1
[ 2.917054] usb usb3: Product: xHCI Host Controller
[ 2.921952] usb usb3: Manufacturer: Linux 6.8.0-1038-raspi xhci-hcd
[ 2.928249] usb usb3: SerialNumber: xhci-hcd.0
[ 2.986827] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bc dDevice= 6.08
[ 2.995131] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber= 1
[ 3.002388] usb usb4: Product: xHCI Host Controller
[ 3.007284] usb usb4: Manufacturer: Linux 6.8.0-1038-raspi xhci-hcd
[ 3.013575] usb usb4: SerialNumber: xhci-hcd.1
[ 3.026103] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003, bc dDevice= 6.08
[ 3.034411] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber= 1
[ 3.041666] usb usb5: Product: xHCI Host Controller
[ 3.046566] usb usb5: Manufacturer: Linux 6.8.0-1038-raspi xhci-hcd
[ 3.052860] usb usb5: SerialNumber: xhci-hcd.1
[ 6.603408] usbcore: registered new interface driver brcmfmac
[ 52.147645] usb 4-1: new high-speed USB device number 2 using xhci-hcd
[ 52.279156] usb 4-1: New USB device found, idVendor=2c7c, idProduct=0801, bcd Device= 5.04
[ 52.279164] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 52.279168] usb 4-1: Product: RM530N-GL
[ 52.279172] usb 4-1: Manufacturer: Quectel
[ 52.279175] usb 4-1: SerialNumber: f714cd16
[ 52.412731] usbcore: registered new interface driver usbserial_generic
[ 52.412750] usbserial: USB Serial support registered for generic
[ 52.420231] usbcore: registered new interface driver option
[ 52.420256] usbserial: USB Serial support registered for GSM modem (1-port)
[ 52.420459] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 52.420625] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 52.420796] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 52.421168] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 307.873826] usb 4-1: USB disconnect, device number 2
[ 348.776118] usb 4-1: new high-speed USB device number 3 using xhci-hcd
[ 348.908087] usb 4-1: New USB device found, idVendor=2c7c, idProduct=0801, bcd Device= 5.04
[ 348.908096] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 348.908101] usb 4-1: Product: RM530N-GL
[ 348.908104] usb 4-1: Manufacturer: Quectel
[ 348.908115] usb 4-1: SerialNumber: f714cd16
[ 349.019927] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 349.020132] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 349.020333] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 349.020529] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 484.540198] usb 4-1: USB disconnect, device number 3
[ 484.799584] usb 4-1: new high-speed USB device number 4 using xhci-hcd
[ 484.932743] usb 4-1: New USB device found, idVendor=2c7c, idProduct=0801, bcd Device= 5.04
[ 484.932750] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 484.932755] usb 4-1: Product: RM530N-GL
[ 484.932759] usb 4-1: Manufacturer: Quectel
[ 484.932762] usb 4-1: SerialNumber: f714cd16
[ 485.088649] usb 4-1: can’t set config #1, error -71
[ 485.093654] usb 4-1: USB disconnect, device number 4
[ 613.684452] usb 4-1: new high-speed USB device number 5 using xhci-hcd
[ 613.815833] usb 4-1: New USB device found, idVendor=2c7c, idProduct=0801, bcd Device= 5.04
[ 613.815843] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 613.815848] usb 4-1: Product: RM530N-GL
[ 613.815852] usb 4-1: Manufacturer: Quectel
[ 613.815855] usb 4-1: SerialNumber: f714cd16
[ 613.929190] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 613.929401] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 613.929625] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 613.929820] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 714.107504] usb 4-1: USB disconnect, device number 5
[ 754.962453] usb 4-1: new high-speed USB device number 6 using xhci-hcd
[ 755.092999] usb 4-1: New USB device found, idVendor=2c7c, idProduct=0801, bcd Device= 5.04
[ 755.093006] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 755.093010] usb 4-1: Product: RM530N-GL
[ 755.093014] usb 4-1: Manufacturer: Quectel
[ 755.093017] usb 4-1: SerialNumber: f714cd16
[ 755.214352] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 755.214578] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 755.214770] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 755.214957] usb 4-1: GSM modem (1-port) converter now attached to ttyUSB3

Dear @william8709
Please refer to this.

How can i ensure the PCIe interface initializes correctly in the proper time sequence?


root@pi5:/home/lab# lsmod | grep mhi
mhi 98304 0
pcie_mhi 221184 0

root@pi5:/home/lab# dmesg | grep mhi
[ 502.137898] pcie_mhi: loading out-of-tree module taints kernel.
[ 502.139694] mhi_init Quectel_Linux_PCIE_MHI_Driver_V1.3.8
[ 1388.711189] mhi_controller_qcom_exit enter
[ 1388.711246] mhi_controller_qcom_exit exit
[ 1407.538575] mhi_init Quectel_Linux_PCIE_MHI_Driver_V1.3.

root@pi5:/home/lab# lspci
00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21)
01:00.0 Ethernet controller: Raspberry Pi Ltd RP1 PCIe 2.0 South Bridge


Below result is current result, pcie_mhi/mhi is normal, also i had hard reboot the module and system, still can’t recognize the PCI, USB can still work.
Thanks!