Commit ddd63249 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by Greg Kroah-Hartman

[PATCH] usb/ati_remote: add set_current_state()

Add set_current_state() before schedule_timeout() so that if the
while-loop iterates multiple times, schedule_timeout() delays as
expected. Without the addition, schedule_timeout() will return
immediately.
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 51876731
......@@ -418,6 +418,7 @@ static int ati_remote_sendpacket(struct ati_remote *ati_remote, u16 cmd, unsigne
while (timeout && (ati_remote->out_urb->status == -EINPROGRESS)
&& !(ati_remote->send_flags & SEND_FLAG_COMPLETE)) {
set_current_state(TASK_INTERRUPTIBLE);
timeout = schedule_timeout(timeout);
rmb();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment