Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efdff608 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman
Browse files

USB: io_ti: sleep with spinlock held detected by automatic tool



this fixes the sleep found with the automatic tool.

Signed-off-by: default avatarOliver Neukum <oneukum@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 756aa6b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2364,7 +2364,7 @@ static int restart_read(struct edgeport_port *edge_port)
		urb->complete = edge_bulk_in_callback;
		urb->complete = edge_bulk_in_callback;
		urb->context = edge_port;
		urb->context = edge_port;
		urb->dev = edge_port->port->serial->dev;
		urb->dev = edge_port->port->serial->dev;
		status = usb_submit_urb(urb, GFP_KERNEL);
		status = usb_submit_urb(urb, GFP_ATOMIC);
	}
	}
	edge_port->ep_read_urb_state = EDGE_READ_URB_RUNNING;
	edge_port->ep_read_urb_state = EDGE_READ_URB_RUNNING;
	edge_port->shadow_mcr |= MCR_RTS;
	edge_port->shadow_mcr |= MCR_RTS;