linux - why USB Device gets disconnected immediately after successful probe -
i learning how write kernel module usb devices, changed usb_skeleton sample found in 'drivers/usb_skeleton.c' according vid/pid of usb device. able insert module using insmod. after plugging in, device probe function beingness called , returns successfully, after disconnect function gets called.
when seek lsmod(the device still plugged in) shows driver not beingness used device.
dmesg after insmod:
[ 207.206082] usb_skeleton: module verification failed: signature and/or required key missing - tainting kernel
[ 207.206451] usbcore: registered new interface driver skeleton
dmesg after device plugged in:
[ 275.794675] skeleton 1-1.2:1.0: usb skeleton device attached usbskel-1
[ 275.946207] usb 1-1.2: usbfs: interface 0 claimed skeleton while 'brltty' sets config #1
[ 275.946924] skeleton 1-1.2:1.0: usb skeleton #1 disconnected
please guide me going wrong cause device disconnected.
linux linux-kernel linux-device-driver
No comments:
Post a Comment