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
Kirill Smelkov
linux
Commits
686e0b75
Commit
686e0b75
authored
Apr 24, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
into kroah.com:/home/greg/linux/BK/gregkh-2.5
parents
7fb7f2ac
3b4f1bc8
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
253 additions
and
236 deletions
+253
-236
drivers/usb/core/usb.c
drivers/usb/core/usb.c
+0
-1
drivers/usb/host/ehci-hub.c
drivers/usb/host/ehci-hub.c
+20
-16
drivers/usb/host/ohci-hub.c
drivers/usb/host/ohci-hub.c
+4
-1
drivers/usb/net/pegasus.h
drivers/usb/net/pegasus.h
+2
-0
include/linux/brlvger.h
include/linux/brlvger.h
+1
-1
include/linux/usb.h
include/linux/usb.h
+226
-217
No files found.
drivers/usb/core/usb.c
View file @
686e0b75
...
...
@@ -2625,7 +2625,6 @@ EXPORT_SYMBOL(usb_scan_devices);
EXPORT_SYMBOL
(
usb_alloc_dev
);
EXPORT_SYMBOL
(
usb_free_dev
);
EXPORT_SYMBOL
(
usb_inc_dev_use
);
EXPORT_SYMBOL
(
usb_find_interface_driver_for_ifnum
);
EXPORT_SYMBOL
(
usb_driver_claim_interface
);
...
...
drivers/usb/host/ehci-hub.c
View file @
686e0b75
...
...
@@ -91,7 +91,10 @@ ehci_hub_status_data (struct usb_hcd *hcd, char *buf)
if
(
!
(
temp
&
PORT_CONNECT
))
ehci
->
reset_done
[
i
]
=
0
;
if
((
temp
&
(
PORT_CSC
|
PORT_PEC
|
PORT_OCC
))
!=
0
)
{
set_bit
(
i
,
buf
);
if
(
i
<
7
)
buf
[
0
]
|=
1
<<
(
i
+
1
);
else
buf
[
1
]
|=
1
<<
(
i
-
7
);
status
=
STS_PCD
;
}
}
...
...
@@ -141,7 +144,7 @@ static int ehci_hub_control (
)
{
struct
ehci_hcd
*
ehci
=
hcd_to_ehci
(
hcd
);
int
ports
=
HCS_N_PORTS
(
ehci
->
hcs_params
);
u32
temp
;
u32
temp
,
status
;
unsigned
long
flags
;
int
retval
=
0
;
...
...
@@ -219,22 +222,22 @@ static int ehci_hub_control (
if
(
!
wIndex
||
wIndex
>
ports
)
goto
error
;
wIndex
--
;
memset
(
buf
,
0
,
4
)
;
status
=
0
;
temp
=
readl
(
&
ehci
->
regs
->
port_status
[
wIndex
]);
// wPortChange bits
if
(
temp
&
PORT_CSC
)
s
et_bit
(
USB_PORT_FEAT_C_CONNECTION
,
buf
)
;
s
tatus
|=
1
<<
USB_PORT_FEAT_C_CONNECTION
;
if
(
temp
&
PORT_PEC
)
s
et_bit
(
USB_PORT_FEAT_C_ENABLE
,
buf
)
;
s
tatus
|=
1
<<
USB_PORT_FEAT_C_ENABLE
;
// USB_PORT_FEAT_C_SUSPEND
if
(
temp
&
PORT_OCC
)
s
et_bit
(
USB_PORT_FEAT_C_OVER_CURRENT
,
buf
)
;
s
tatus
|=
1
<<
USB_PORT_FEAT_C_OVER_CURRENT
;
/* whoever resets must GetPortStatus to complete it!! */
if
((
temp
&
PORT_RESET
)
&&
jiffies
>
ehci
->
reset_done
[
wIndex
])
{
s
et_bit
(
USB_PORT_FEAT_C_RESET
,
buf
)
;
s
tatus
|=
1
<<
USB_PORT_FEAT_C_RESET
;
/* force reset to complete */
writel
(
temp
&
~
PORT_RESET
,
...
...
@@ -252,26 +255,27 @@ static int ehci_hub_control (
// don't show wPortStatus if it's owned by a companion hc
if
(
!
(
temp
&
PORT_OWNER
))
{
if
(
temp
&
PORT_CONNECT
)
{
s
et_bit
(
USB_PORT_FEAT_CONNECTION
,
buf
)
;
s
et_bit
(
USB_PORT_FEAT_HIGHSPEED
,
buf
)
;
s
tatus
|=
1
<<
USB_PORT_FEAT_CONNECTION
;
s
tatus
|=
1
<<
USB_PORT_FEAT_HIGHSPEED
;
}
if
(
temp
&
PORT_PE
)
s
et_bit
(
USB_PORT_FEAT_ENABLE
,
buf
)
;
s
tatus
|=
1
<<
USB_PORT_FEAT_ENABLE
;
if
(
temp
&
PORT_SUSPEND
)
s
et_bit
(
USB_PORT_FEAT_SUSPEND
,
buf
)
;
s
tatus
|=
1
<<
USB_PORT_FEAT_SUSPEND
;
if
(
temp
&
PORT_OC
)
s
et_bit
(
USB_PORT_FEAT_OVER_CURRENT
,
buf
)
;
s
tatus
|=
1
<<
USB_PORT_FEAT_OVER_CURRENT
;
if
(
temp
&
PORT_RESET
)
s
et_bit
(
USB_PORT_FEAT_RESET
,
buf
)
;
s
tatus
|=
1
<<
USB_PORT_FEAT_RESET
;
if
(
temp
&
PORT_POWER
)
s
et_bit
(
USB_PORT_FEAT_POWER
,
buf
)
;
s
tatus
|=
1
<<
USB_PORT_FEAT_POWER
;
}
#ifndef EHCI_VERBOSE_DEBUG
if
(
*
(
u16
*
)(
buf
+
2
)
)
/* only if wPortChange is interesting */
if
(
status
&
~
0xffff
)
/* only if wPortChange is interesting */
#endif
dbg_port
(
hcd
,
"GetStatus"
,
wIndex
+
1
,
temp
);
cpu_to_le32s
((
u32
*
)
buf
);
// we "know" this alignment is good, caller used kmalloc()...
*
((
u32
*
)
buf
)
=
cpu_to_le32
(
status
);
break
;
case
SetHubFeature
:
switch
(
wValue
)
{
...
...
drivers/usb/host/ohci-hub.c
View file @
686e0b75
...
...
@@ -96,7 +96,10 @@ ohci_hub_status_data (struct usb_hcd *hcd, char *buf)
|
RH_PS_OCIC
|
RH_PS_PRSC
;
if
(
status
)
{
changed
=
1
;
set_bit
(
i
+
1
,
buf
);
if
(
i
<
7
)
buf
[
0
]
|=
1
<<
(
i
+
1
);
else
buf
[
1
]
|=
1
<<
(
i
-
7
);
}
}
return
changed
?
length
:
0
;
...
...
drivers/usb/net/pegasus.h
View file @
686e0b75
...
...
@@ -255,6 +255,8 @@ PEGASUS_DEV( "SMC 2206 USB Ethernet", VENDOR_SMC, 0x0201,
DEFAULT_GPIO_RESET
|
PEGASUS_II
)
PEGASUS_DEV
(
"SOHOware NUB100 Ethernet"
,
VENDOR_SOHOWARE
,
0x9100
,
DEFAULT_GPIO_RESET
)
PEGASUS_DEV
(
"SOHOware NUB110 Ethernet"
,
VENDOR_SOHOWARE
,
0x9110
,
DEFAULT_GPIO_RESET
|
PEGASUS_II
)
PEGASUS_DEV
(
"SpeedStream USB 10/100 Ethernet"
,
VENDOR_SIEMENS
,
0x1001
,
DEFAULT_GPIO_RESET
)
...
...
include/linux/brlvger.h
View file @
686e0b75
...
...
@@ -31,7 +31,7 @@
#define BRLVGER_BUZZ 4
/* Number of supported devices, and range of covered minors */
#define MAX_NR_BRLVGER_DEVS
2
#define MAX_NR_BRLVGER_DEVS
4
/* Base minor for the char devices */
#define BRLVGER_MINOR 128
...
...
include/linux/usb.h
View file @
686e0b75
This diff is collapsed.
Click to expand 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