Merge "diag: Do not clear masks during logging mode switch"
This commit is contained in:
commit
93b010356e
1 changed files with 8 additions and 7 deletions
|
@ -216,13 +216,6 @@ static void usb_connect_work_fn(struct work_struct *work)
|
|||
*/
|
||||
static void usb_disconnect(struct diag_usb_info *ch)
|
||||
{
|
||||
if (!ch)
|
||||
return;
|
||||
|
||||
if (!atomic_read(&ch->connected) &&
|
||||
driver->usb_connected && diag_mask_param())
|
||||
diag_clear_masks(0);
|
||||
|
||||
if (ch && ch->ops && ch->ops->close)
|
||||
ch->ops->close(ch->ctxt, DIAG_USB_MODE);
|
||||
}
|
||||
|
@ -231,6 +224,14 @@ static void usb_disconnect_work_fn(struct work_struct *work)
|
|||
{
|
||||
struct diag_usb_info *ch = container_of(work, struct diag_usb_info,
|
||||
disconnect_work);
|
||||
|
||||
if (!ch)
|
||||
return;
|
||||
|
||||
if (!atomic_read(&ch->connected) &&
|
||||
driver->usb_connected && diag_mask_param())
|
||||
diag_clear_masks(0);
|
||||
|
||||
usb_disconnect(ch);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue