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
9a7a579e
Commit
9a7a579e
authored
Feb 15, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/gregkh/linux/fix-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
f2dbdbf8
20f758ca
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
drivers/usb/core/hub.c
drivers/usb/core/hub.c
+3
-0
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hcd.c
+23
-2
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci-q.c
+2
-1
No files found.
drivers/usb/core/hub.c
View file @
9a7a579e
...
...
@@ -1382,6 +1382,9 @@ static int hub_port_reset(struct usb_hub *hub, int port1,
/* return on disconnect or reset */
switch
(
status
)
{
case
0
:
/* TRSTRCY = 10 ms */
msleep
(
10
);
/* FALL THROUGH */
case
-
ENOTCONN
:
case
-
ENODEV
:
clear_port_feature
(
hub
->
hdev
,
...
...
drivers/usb/host/ehci-hcd.c
View file @
9a7a579e
...
...
@@ -389,8 +389,29 @@ static int ehci_hc_reset (struct usb_hcd *hcd)
temp
=
HCS_N_CC
(
ehci
->
hcs_params
)
*
HCS_N_PCC
(
ehci
->
hcs_params
);
temp
&=
0x0f
;
if
(
temp
&&
HCS_N_PORTS
(
ehci
->
hcs_params
)
>
temp
)
{
ehci_dbg
(
ehci
,
"bogus port configuration: "
"cc=%d x pcc=%d < ports=%d
\n
"
,
HCS_N_CC
(
ehci
->
hcs_params
),
HCS_N_PCC
(
ehci
->
hcs_params
),
HCS_N_PORTS
(
ehci
->
hcs_params
));
#ifdef CONFIG_PCI
if
(
hcd
->
self
.
controller
->
bus
==
&
pci_bus_type
)
{
struct
pci_dev
*
pdev
;
pdev
=
to_pci_dev
(
hcd
->
self
.
controller
);
switch
(
pdev
->
vendor
)
{
case
0x17a0
:
/* GENESYS */
/* GL880S: should be PORTS=2 */
temp
|=
(
ehci
->
hcs_params
&
~
0xf
);
ehci
->
hcs_params
=
temp
;
break
;
case
PCI_VENDOR_ID_NVIDIA
:
/* NF4: should be PCC=10 */
break
;
}
}
#endif
}
/* force HC to halt state */
...
...
drivers/usb/host/ehci-q.c
View file @
9a7a579e
...
...
@@ -267,6 +267,7 @@ __acquires(ehci->lock)
}
static
void
start_unlink_async
(
struct
ehci_hcd
*
ehci
,
struct
ehci_qh
*
qh
);
static
void
unlink_async
(
struct
ehci_hcd
*
ehci
,
struct
ehci_qh
*
qh
);
static
void
intr_deschedule
(
struct
ehci_hcd
*
ehci
,
struct
ehci_qh
*
qh
);
static
int
qh_schedule
(
struct
ehci_hcd
*
ehci
,
struct
ehci_qh
*
qh
);
...
...
@@ -430,7 +431,7 @@ qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh, struct pt_regs *regs)
intr_deschedule
(
ehci
,
qh
);
(
void
)
qh_schedule
(
ehci
,
qh
);
}
else
start_
unlink_async
(
ehci
,
qh
);
unlink_async
(
ehci
,
qh
);
break
;
/* otherwise, unlink already started */
}
...
...
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