Forcing driver to device match

后端 未结 3 1832
醉梦人生
醉梦人生 2021-01-31 04:38

I have a piece of usb hardware, for which I know the driver. However, the vendor id and product id do not match the VID, PID pair registered in the driver. Is there a way in lin

3条回答
  •  耶瑟儿~
    2021-01-31 04:52

    Find the module in the sysfs tree. In this case it was in

    /sys/bus/usb-serial/drivers/cp2101

    In this directory, there is a new_id file entry that can be used to dynamically add VID PID pair like this :

    echo VID PID >new_id

    Here is a LWN entry about this feature

提交回复
热议问题