mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
usb: gadget: composite: reset delayed_status on reset_config
The delayed_status value is used to keep track of status response packets on ep0. It needs to be reset or the set_config function would still delay the answer, if the usb device got unplugged while waiting for setup_continue to be called. Cc: [email protected] Signed-off-by: Michael Grzeschik <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
This commit is contained in:
parent
a655f481d8
commit
2bac51a182
1 changed files with 1 additions and 0 deletions
|
|
@ -593,6 +593,7 @@ static void reset_config(struct usb_composite_dev *cdev)
|
|||
bitmap_zero(f->endpoints, 32);
|
||||
}
|
||||
cdev->config = NULL;
|
||||
cdev->delayed_status = 0;
|
||||
}
|
||||
|
||||
static int set_config(struct usb_composite_dev *cdev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue