Forcing use of quectel QMI driver over generic driver

Hello,
We are using a setup in which we have an RG500Q-EA module in OpenWrt and we would like to test the usage of Quectel’s QMI driver to compare with the generic Linux driver. We have installed the qmi-wwan driver from OpenWrt’s repository and compiled from source the qmi_wwan_q driver from Quectel. After adding the Quectel driver to the kernel we thought quectel-cm would automatically detect it and use it to establish the connection but still reports that it is using the generic linux driver.

In the driver’s guide says that both drivers can coexist so I assume it is not required to remove the qmi-wwan driver. In any case I disabled it for a moment but this caused the cdc-wdm0 device to not show.

I would appreciate any help.

qmi_wwan and qmi_wwan_q could probe at the same.

Could you provide some log about it?

Both the qmi_wwan and the qmi_wwan_q should work fine and the /dev/cdc-wdm0 should exist.
I guess maybe if you remove the qmi_wwan but you foget to add the cdc_wdm.c.

I think you can just relace the qmi_wwan,c with qmi_wwan_q.c

Hello,

Eventually, I was able to make the driver work by removing qmi_wwan. I didn’t receive any cdc_wdm.c file with the drivers. Is this file important for the correct operation of the device?

cdc-wdm.c is already in the kernel source code.
It should be in drivers/usb/class/.

Some drivers such as qmi_wwan_q.c / qmi_wwan.c / cdc_mbim.c will need it.