Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5e226e83
Commit
5e226e83
authored
Sep 23, 2003
by
Alexey Dobriyan
Committed by
Greg Kroah-Hartman
Sep 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: Remove setting TASK_RUNNING after schedule_timeout in /drivers/usb/
parent
4bee83fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
5 deletions
+0
-5
drivers/usb/host/uhci-hcd.c
drivers/usb/host/uhci-hcd.c
+0
-2
drivers/usb/serial/digi_acceleport.c
drivers/usb/serial/digi_acceleport.c
+0
-2
drivers/usb/storage/transport.c
drivers/usb/storage/transport.c
+0
-1
No files found.
drivers/usb/host/uhci-hcd.c
View file @
5e226e83
...
...
@@ -1965,13 +1965,11 @@ static void reset_hc(struct uhci_hcd *uhci)
outw
(
USBCMD_GRESET
,
io_addr
+
USBCMD
);
set_current_state
(
TASK_UNINTERRUPTIBLE
);
schedule_timeout
((
HZ
*
50
+
999
)
/
1000
);
set_current_state
(
TASK_RUNNING
);
outw
(
0
,
io_addr
+
USBCMD
);
/* Another 10ms delay */
set_current_state
(
TASK_UNINTERRUPTIBLE
);
schedule_timeout
((
HZ
*
10
+
999
)
/
1000
);
set_current_state
(
TASK_RUNNING
);
uhci
->
resume_detect
=
0
;
}
...
...
drivers/usb/serial/digi_acceleport.c
View file @
5e226e83
...
...
@@ -594,8 +594,6 @@ static inline long cond_wait_interruptible_timeout_irqrestore(
timeout
=
schedule_timeout
(
timeout
);
set_current_state
(
TASK_RUNNING
);
remove_wait_queue
(
q
,
&
wait
);
return
(
timeout
);
...
...
drivers/usb/storage/transport.c
View file @
5e226e83
...
...
@@ -1074,7 +1074,6 @@ static int usb_stor_reset_common(struct us_data *us,
up
(
&
us
->
dev_semaphore
);
set_current_state
(
TASK_UNINTERRUPTIBLE
);
schedule_timeout
(
HZ
*
6
);
set_current_state
(
TASK_RUNNING
);
down
(
&
us
->
dev_semaphore
);
if
(
test_bit
(
US_FLIDX_DISCONNECTING
,
&
us
->
flags
))
{
US_DEBUGP
(
"Reset interrupted by disconnect
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment