multiple interface test case

Roman Kagan rkagan at mail.ru
Tue Apr 12 10:49:23 EDT 2005


On Tue, Apr 12, 2005 at 04:38:00PM +0200, Duncan Sands wrote:
> I think you should use this in your test module:
> 
> void test_usb_disconnect(struct usb_interface *intf)
> {
>         struct usb_device *usb_dev = interface_to_usbdev(intf);
>         int num_interfaces = usb_dev->actconfig->desc.bNumInterfaces;
> 
>         dbg("%s entered", __func__);
> 
>         if (usb_get_intfdata(intf))
>                 release_interfaces(usb_dev, num_interfaces);
>         else
>                 dbg("NULL instance");
> }
> 

Right...  I remember myself putting it in, but it isn't there :)  OTOH
usb_driver_release_interface protects from this too, so the problem is
somewhere else...

Roman.



More information about the Usbatm mailing list