예제 #1
0
static int wdm_post_reset(struct usb_interface *intf)
{
	struct wdm_device *desc = usb_get_intfdata(intf);
	int rv;

	clear_bit(WDM_OVERFLOW, &desc->flags);
	rv = recover_from_urb_loss(desc);
	mutex_unlock(&desc->wlock);
	mutex_unlock(&desc->rlock);
	return 0;
}
예제 #2
0
파일: cdc-wdm.c 프로젝트: chunyenho/RTS-hw2
static int wdm_resume(struct usb_interface *intf)
{
    struct wdm_device *desc = usb_get_intfdata(intf);
    int rv;

    dev_dbg(&desc->intf->dev, "wdm%d_resume\n", intf->minor);
    mutex_lock(&desc->plock);
    rv = recover_from_urb_loss(desc);
    mutex_unlock(&desc->plock);
    return rv;
}
예제 #3
0
파일: cdc-wdm.c 프로젝트: 454053205/linux
static int wdm_resume(struct usb_interface *intf)
{
	struct wdm_device *desc = usb_get_intfdata(intf);
	int rv;

	dev_dbg(&desc->intf->dev, "wdm%d_resume\n", intf->minor);

	clear_bit(WDM_SUSPENDING, &desc->flags);
	rv = recover_from_urb_loss(desc);

	return rv;
}