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
1bee5616
Commit
1bee5616
authored
Mar 18, 2003
by
David Brownell
Committed by
Oleg Drokin
Mar 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: ehci-hcd, prink tweaks
A not-very interesting patch, it just cleans up some debug output.
parent
cda9846c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
drivers/usb/host/ehci-dbg.c
drivers/usb/host/ehci-dbg.c
+3
-3
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hcd.c
+8
-7
No files found.
drivers/usb/host/ehci-dbg.c
View file @
1bee5616
...
@@ -117,10 +117,10 @@ static inline void dbg_hcc_params (struct ehci_hcd *ehci, char *label) {}
...
@@ -117,10 +117,10 @@ static inline void dbg_hcc_params (struct ehci_hcd *ehci, char *label) {}
static
void
__attribute__
((
__unused__
))
static
void
__attribute__
((
__unused__
))
dbg_qh
(
char
*
label
,
struct
ehci_hcd
*
ehci
,
struct
ehci_qh
*
qh
)
dbg_qh
(
char
*
label
,
struct
ehci_hcd
*
ehci
,
struct
ehci_qh
*
qh
)
{
{
dbg
(
"%s %p info1 %x info2 %x hw_curr %x qtd_next %x"
,
label
,
dbg
(
"%s %p
n%08x
info1 %x info2 %x hw_curr %x qtd_next %x"
,
label
,
qh
,
qh
->
hw_info1
,
qh
->
hw_info2
,
qh
,
qh
->
hw_
next
,
qh
->
hw_
info1
,
qh
->
hw_info2
,
qh
->
hw_current
,
qh
->
hw_qtd_next
);
qh
->
hw_current
,
qh
->
hw_qtd_next
);
dbg
(
" alt+
errs
= %x, token= %x, page0= %x, page1= %x"
,
dbg
(
" alt+
nak+t
= %x, token= %x, page0= %x, page1= %x"
,
qh
->
hw_alt_next
,
qh
->
hw_token
,
qh
->
hw_alt_next
,
qh
->
hw_token
,
qh
->
hw_buf
[
0
],
qh
->
hw_buf
[
1
]);
qh
->
hw_buf
[
0
],
qh
->
hw_buf
[
1
]);
if
(
qh
->
hw_buf
[
2
])
{
if
(
qh
->
hw_buf
[
2
])
{
...
...
drivers/usb/host/ehci-hcd.c
View file @
1bee5616
...
@@ -576,7 +576,7 @@ static int ehci_suspend (struct usb_hcd *hcd, u32 state)
...
@@ -576,7 +576,7 @@ static int ehci_suspend (struct usb_hcd *hcd, u32 state)
int
ports
;
int
ports
;
int
i
;
int
i
;
dbg
(
"%s: suspend to %d"
,
hcd_to_bus
(
hcd
)
->
bus_name
,
state
);
ehci_dbg
(
ehci
,
"suspend to %d
\n
"
,
state
);
ports
=
HCS_N_PORTS
(
ehci
->
hcs_params
);
ports
=
HCS_N_PORTS
(
ehci
->
hcs_params
);
...
@@ -593,7 +593,7 @@ static int ehci_suspend (struct usb_hcd *hcd, u32 state)
...
@@ -593,7 +593,7 @@ static int ehci_suspend (struct usb_hcd *hcd, u32 state)
if
((
temp
&
PORT_PE
)
==
0
if
((
temp
&
PORT_PE
)
==
0
||
(
temp
&
PORT_OWNER
)
!=
0
)
||
(
temp
&
PORT_OWNER
)
!=
0
)
continue
;
continue
;
dbg
(
"%s: suspend port %d"
,
hcd_to_bus
(
hcd
)
->
bus_name
,
i
);
ehci_dbg
(
ehci
,
"suspend port %d"
,
i
);
temp
|=
PORT_SUSPEND
;
temp
|=
PORT_SUSPEND
;
writel
(
temp
,
&
ehci
->
regs
->
port_status
[
i
]);
writel
(
temp
,
&
ehci
->
regs
->
port_status
[
i
]);
}
}
...
@@ -615,7 +615,7 @@ static int ehci_resume (struct usb_hcd *hcd)
...
@@ -615,7 +615,7 @@ static int ehci_resume (struct usb_hcd *hcd)
int
ports
;
int
ports
;
int
i
;
int
i
;
dbg
(
"%s: resume"
,
hcd_to_bus
(
hcd
)
->
bus_name
);
ehci_dbg
(
ehci
,
"resume
\n
"
);
ports
=
HCS_N_PORTS
(
ehci
->
hcs_params
);
ports
=
HCS_N_PORTS
(
ehci
->
hcs_params
);
...
@@ -635,7 +635,7 @@ static int ehci_resume (struct usb_hcd *hcd)
...
@@ -635,7 +635,7 @@ static int ehci_resume (struct usb_hcd *hcd)
if
((
temp
&
PORT_PE
)
==
0
if
((
temp
&
PORT_PE
)
==
0
||
(
temp
&
PORT_SUSPEND
)
!=
0
)
||
(
temp
&
PORT_SUSPEND
)
!=
0
)
continue
;
continue
;
dbg
(
"%s: resume port %d"
,
hcd_to_bus
(
hcd
)
->
bus_name
,
i
);
ehci_dbg
(
ehci
,
"resume port %d"
,
i
);
temp
|=
PORT_RESUME
;
temp
|=
PORT_RESUME
;
writel
(
temp
,
&
ehci
->
regs
->
port_status
[
i
]);
writel
(
temp
,
&
ehci
->
regs
->
port_status
[
i
]);
readl
(
&
ehci
->
regs
->
command
);
/* unblock posted writes */
readl
(
&
ehci
->
regs
->
command
);
/* unblock posted writes */
...
@@ -880,8 +880,8 @@ static void ehci_free_config (struct usb_hcd *hcd, struct usb_device *udev)
...
@@ -880,8 +880,8 @@ static void ehci_free_config (struct usb_hcd *hcd, struct usb_device *udev)
/* ASSERT: no requests/urbs are still linked (so no TDs) */
/* ASSERT: no requests/urbs are still linked (so no TDs) */
/* ASSERT: nobody can be submitting urbs for this any more */
/* ASSERT: nobody can be submitting urbs for this any more */
dbg
(
"%s: free_config devnum %d
"
,
ehci_dbg
(
ehci
,
"free_config %s devnum %d
\n
"
,
hcd_to_bus
(
hcd
)
->
bus_name
,
udev
->
devnum
);
udev
->
devpath
,
udev
->
devnum
);
spin_lock_irqsave
(
&
ehci
->
lock
,
flags
);
spin_lock_irqsave
(
&
ehci
->
lock
,
flags
);
for
(
i
=
0
;
i
<
32
;
i
++
)
{
for
(
i
=
0
;
i
<
32
;
i
++
)
{
...
@@ -912,7 +912,8 @@ static void ehci_free_config (struct usb_hcd *hcd, struct usb_device *udev)
...
@@ -912,7 +912,8 @@ static void ehci_free_config (struct usb_hcd *hcd, struct usb_device *udev)
dev
->
ep
[
i
]
=
0
;
dev
->
ep
[
i
]
=
0
;
if
(
qh
->
qh_state
==
QH_STATE_IDLE
)
if
(
qh
->
qh_state
==
QH_STATE_IDLE
)
goto
idle
;
goto
idle
;
dbg
(
"free_config, async ep 0x%02x qh %p"
,
i
,
qh
);
ehci_dbg
(
ehci
,
"free_config, async ep 0x%02x qh %p"
,
i
,
qh
);
/* scan_async() empties the ring as it does its work,
/* scan_async() empties the ring as it does its work,
* using IAA, but doesn't (yet?) turn it off. if it
* using IAA, but doesn't (yet?) turn it off. if it
...
...
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