Re: USB driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, do you mean vendor & product id? Do you mean to unload/unbind for any particular one?

[root@hp kernel_mod]# lsusb
Bus 003 Device 023: ID 045e:0800 Microsoft Corp. Microsoft® Nano Transceiver v2.0

[root@hp kernel_mod]# lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 3: Dev 23, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 3: Dev 23, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 3: Dev 23, If 2, Class=Human Interface Device, Driver=usbhid, 12M

On Sat, Apr 25, 2020 at 9:01 AM Greg KH <greg@xxxxxxxxx> wrote:
On Sat, Apr 25, 2020 at 07:44:12AM +0200, Sohaib Mhmd wrote:
> Hi everyone, I made a very simple USB driver
> <https://gist.github.com/smalinux/3d6a5b000a32b97250b2d0c86b90711b>,
> but the problem is that the probe and disconnect functions never was called.

What USB device is currently attached to the ids that your driver wants
to bind to?  Unload/unbind that and then your driver should work.

greg k-h
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux