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
57b40886
Commit
57b40886
authored
Apr 29, 2003
by
Alan Stern
Committed by
Greg Kroah-Hartman
Apr 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: Minor patch for uhci-hcd.c
parent
efead44a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
drivers/usb/host/uhci-hcd.c
drivers/usb/host/uhci-hcd.c
+9
-4
No files found.
drivers/usb/host/uhci-hcd.c
View file @
57b40886
...
...
@@ -1283,7 +1283,8 @@ static int isochronous_find_limits(struct uhci_hcd *uhci, struct urb *urb, unsig
}
if
(
last_urb
)
{
*
end
=
(
last_urb
->
start_frame
+
last_urb
->
number_of_packets
)
&
1023
;
*
end
=
(
last_urb
->
start_frame
+
last_urb
->
number_of_packets
*
last_urb
->
interval
)
&
(
UHCI_NUMFRAMES
-
1
);
ret
=
0
;
}
else
ret
=
-
1
;
/* no previous urb found */
...
...
@@ -1933,9 +1934,10 @@ static void suspend_hc(struct uhci_hcd *uhci)
dbg
(
"%x: suspend_hc"
,
io_addr
);
outw
(
USBCMD_EGSM
,
io_addr
+
USBCMD
);
uhci
->
is_suspended
=
1
;
smp_wmb
();
outw
(
USBCMD_EGSM
,
io_addr
+
USBCMD
);
}
static
void
wakeup_hc
(
struct
uhci_hcd
*
uhci
)
...
...
@@ -1945,6 +1947,9 @@ static void wakeup_hc(struct uhci_hcd *uhci)
dbg
(
"%x: wakeup_hc"
,
io_addr
);
/* Global resume for 20ms */
outw
(
USBCMD_FGR
|
USBCMD_EGSM
,
io_addr
+
USBCMD
);
wait_ms
(
20
);
outw
(
0
,
io_addr
+
USBCMD
);
/* wait for EOP to be sent */
...
...
@@ -1965,7 +1970,7 @@ static int ports_active(struct uhci_hcd *uhci)
int
i
;
for
(
i
=
0
;
i
<
uhci
->
rh_numports
;
i
++
)
connection
|=
(
inw
(
io_addr
+
USBPORTSC1
+
i
*
2
)
&
0x1
);
connection
|=
(
inw
(
io_addr
+
USBPORTSC1
+
i
*
2
)
&
USBPORTSC_CCS
);
return
connection
;
}
...
...
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