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
b547a01b
Commit
b547a01b
authored
Feb 15, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge kroah.com:/home/linux/linux/BK/bleeding-2.5
into kroah.com:/home/linux/linux/BK/gregkh-2.5
parents
0a785252
bde2159c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
17 deletions
+20
-17
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.c
+3
-0
drivers/usb/input/Kconfig
drivers/usb/input/Kconfig
+4
-5
drivers/usb/input/usbkbd.c
drivers/usb/input/usbkbd.c
+1
-1
drivers/usb/input/usbmouse.c
drivers/usb/input/usbmouse.c
+1
-1
drivers/usb/misc/atmsar.c
drivers/usb/misc/atmsar.c
+3
-3
drivers/usb/misc/speedtouch.c
drivers/usb/misc/speedtouch.c
+0
-3
drivers/usb/net/kaweth.c
drivers/usb/net/kaweth.c
+3
-2
drivers/usb/net/pegasus.h
drivers/usb/net/pegasus.h
+4
-1
drivers/usb/storage/transport.c
drivers/usb/storage/transport.c
+1
-1
No files found.
drivers/usb/class/cdc-acm.c
View file @
b547a01b
...
@@ -606,6 +606,7 @@ static int acm_probe (struct usb_interface *intf,
...
@@ -606,6 +606,7 @@ static int acm_probe (struct usb_interface *intf,
if
(
!
acm
->
ctrlurb
)
{
if
(
!
acm
->
ctrlurb
)
{
err
(
"out of memory"
);
err
(
"out of memory"
);
kfree
(
acm
);
kfree
(
acm
);
kfree
(
buf
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
acm
->
readurb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
acm
->
readurb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
...
@@ -613,6 +614,7 @@ static int acm_probe (struct usb_interface *intf,
...
@@ -613,6 +614,7 @@ static int acm_probe (struct usb_interface *intf,
err
(
"out of memory"
);
err
(
"out of memory"
);
usb_free_urb
(
acm
->
ctrlurb
);
usb_free_urb
(
acm
->
ctrlurb
);
kfree
(
acm
);
kfree
(
acm
);
kfree
(
buf
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
acm
->
writeurb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
acm
->
writeurb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
...
@@ -621,6 +623,7 @@ static int acm_probe (struct usb_interface *intf,
...
@@ -621,6 +623,7 @@ static int acm_probe (struct usb_interface *intf,
usb_free_urb
(
acm
->
readurb
);
usb_free_urb
(
acm
->
readurb
);
usb_free_urb
(
acm
->
ctrlurb
);
usb_free_urb
(
acm
->
ctrlurb
);
kfree
(
acm
);
kfree
(
acm
);
kfree
(
buf
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
...
...
drivers/usb/input/Kconfig
View file @
b547a01b
...
@@ -163,11 +163,10 @@ config USB_POWERMATE
...
@@ -163,11 +163,10 @@ config USB_POWERMATE
tristate "Griffin PowerMate and Contour Jog support"
tristate "Griffin PowerMate and Contour Jog support"
depends on USB && INPUT
depends on USB && INPUT
---help---
---help---
Say Y here if you want to use Griffin PowerMate or Contour Jog devices.
Say Y here if you want to use Griffin PowerMate or Contour Jog devices.
These are stainless steel dials which can measure clockwise and
These are aluminum dials which can measure clockwise and anticlockwise
anticlockwise rotation. The dial also acts as a pushbutton. The base
rotation. The dial also acts as a pushbutton. The base contains an LED
contains an LED which can be instructed to pulse or to switch to a
which can be instructed to pulse or to switch to a particular intensity.
particular intensity.
You can download userspace tools from http://sowerbutts.com/powermate/
You can download userspace tools from http://sowerbutts.com/powermate/
...
...
drivers/usb/input/usbkbd.c
View file @
b547a01b
...
@@ -355,7 +355,7 @@ static struct usb_device_id usb_kbd_id_table [] = {
...
@@ -355,7 +355,7 @@ static struct usb_device_id usb_kbd_id_table [] = {
MODULE_DEVICE_TABLE
(
usb
,
usb_kbd_id_table
);
MODULE_DEVICE_TABLE
(
usb
,
usb_kbd_id_table
);
static
struct
usb_driver
usb_kbd_driver
=
{
static
struct
usb_driver
usb_kbd_driver
=
{
.
name
=
"
keyboar
d"
,
.
name
=
"
usbkb
d"
,
.
probe
=
usb_kbd_probe
,
.
probe
=
usb_kbd_probe
,
.
disconnect
=
usb_kbd_disconnect
,
.
disconnect
=
usb_kbd_disconnect
,
.
id_table
=
usb_kbd_id_table
,
.
id_table
=
usb_kbd_id_table
,
...
...
drivers/usb/input/usbmouse.c
View file @
b547a01b
...
@@ -238,7 +238,7 @@ static struct usb_device_id usb_mouse_id_table [] = {
...
@@ -238,7 +238,7 @@ static struct usb_device_id usb_mouse_id_table [] = {
MODULE_DEVICE_TABLE
(
usb
,
usb_mouse_id_table
);
MODULE_DEVICE_TABLE
(
usb
,
usb_mouse_id_table
);
static
struct
usb_driver
usb_mouse_driver
=
{
static
struct
usb_driver
usb_mouse_driver
=
{
.
name
=
"usb
_
mouse"
,
.
name
=
"usbmouse"
,
.
probe
=
usb_mouse_probe
,
.
probe
=
usb_mouse_probe
,
.
disconnect
=
usb_mouse_disconnect
,
.
disconnect
=
usb_mouse_disconnect
,
.
id_table
=
usb_mouse_id_table
,
.
id_table
=
usb_mouse_id_table
,
...
...
drivers/usb/misc/atmsar.c
View file @
b547a01b
...
@@ -285,14 +285,14 @@ struct atmsar_vcc_data *atmsar_open (struct atmsar_vcc_data **list, struct atm_v
...
@@ -285,14 +285,14 @@ struct atmsar_vcc_data *atmsar_open (struct atmsar_vcc_data **list, struct atm_v
{
{
struct
atmsar_vcc_data
*
new
;
struct
atmsar_vcc_data
*
new
;
if
(
!
vcc
)
return
NULL
;
new
=
kmalloc
(
sizeof
(
struct
atmsar_vcc_data
),
GFP_KERNEL
);
new
=
kmalloc
(
sizeof
(
struct
atmsar_vcc_data
),
GFP_KERNEL
);
if
(
!
new
)
if
(
!
new
)
return
NULL
;
return
NULL
;
if
(
!
vcc
)
return
NULL
;
memset
(
new
,
0
,
sizeof
(
struct
atmsar_vcc_data
));
memset
(
new
,
0
,
sizeof
(
struct
atmsar_vcc_data
));
new
->
vcc
=
vcc
;
new
->
vcc
=
vcc
;
/*
/*
...
...
drivers/usb/misc/speedtouch.c
View file @
b547a01b
...
@@ -88,15 +88,12 @@
...
@@ -88,15 +88,12 @@
#define SPEEDTOUCH_VENDORID 0x06b9
#define SPEEDTOUCH_VENDORID 0x06b9
#define SPEEDTOUCH_PRODUCTID 0x4061
#define SPEEDTOUCH_PRODUCTID 0x4061
#define UDSL_OBUF_SIZE 32768
#define UDSL_MINOR 48
#define UDSL_NUMBER_RCV_URBS 1
#define UDSL_NUMBER_RCV_URBS 1
#define UDSL_NUMBER_SND_URBS 1
#define UDSL_NUMBER_SND_URBS 1
#define UDSL_RECEIVE_BUFFER_SIZE 64*53
#define UDSL_RECEIVE_BUFFER_SIZE 64*53
/* max should be (1500 IP mtu + 2 ppp bytes + 32 * 5 cellheader overhead) for
/* max should be (1500 IP mtu + 2 ppp bytes + 32 * 5 cellheader overhead) for
* PPPoA and (1500 + 14 + 32*5 cellheader overhead) for PPPoE */
* PPPoA and (1500 + 14 + 32*5 cellheader overhead) for PPPoE */
#define UDSL_MAX_AAL5_MRU 2048
#define UDSL_MAX_AAL5_MRU 2048
#define UDSL_SEND_CONTEXTS 8
#define UDSL_IOCTL_START 1
#define UDSL_IOCTL_START 1
#define UDSL_IOCTL_STOP 2
#define UDSL_IOCTL_STOP 2
...
...
drivers/usb/net/kaweth.c
View file @
b547a01b
...
@@ -130,6 +130,7 @@ static struct usb_device_id usb_klsi_table[] = {
...
@@ -130,6 +130,7 @@ static struct usb_device_id usb_klsi_table[] = {
{
USB_DEVICE
(
0x03e8
,
0x0008
)
},
/* AOX Endpoints USB Ethernet */
{
USB_DEVICE
(
0x03e8
,
0x0008
)
},
/* AOX Endpoints USB Ethernet */
{
USB_DEVICE
(
0x04bb
,
0x0901
)
},
/* I-O DATA USB-ET/T */
{
USB_DEVICE
(
0x04bb
,
0x0901
)
},
/* I-O DATA USB-ET/T */
{
USB_DEVICE
(
0x0506
,
0x03e8
)
},
/* 3Com 3C19250 */
{
USB_DEVICE
(
0x0506
,
0x03e8
)
},
/* 3Com 3C19250 */
{
USB_DEVICE
(
0x0506
,
0x11f8
)
},
/* 3Com 3C460 */
{
USB_DEVICE
(
0x0557
,
0x2002
)
},
/* ATEN USB Ethernet */
{
USB_DEVICE
(
0x0557
,
0x2002
)
},
/* ATEN USB Ethernet */
{
USB_DEVICE
(
0x0557
,
0x4000
)
},
/* D-Link DSB-650C */
{
USB_DEVICE
(
0x0557
,
0x4000
)
},
/* D-Link DSB-650C */
{
USB_DEVICE
(
0x0565
,
0x0002
)
},
/* Peracom Enet */
{
USB_DEVICE
(
0x0565
,
0x0002
)
},
/* Peracom Enet */
...
@@ -712,7 +713,7 @@ static void kaweth_usb_transmit_complete(struct urb *urb, struct pt_regs *regs)
...
@@ -712,7 +713,7 @@ static void kaweth_usb_transmit_complete(struct urb *urb, struct pt_regs *regs)
static
int
kaweth_start_xmit
(
struct
sk_buff
*
skb
,
struct
net_device
*
net
)
static
int
kaweth_start_xmit
(
struct
sk_buff
*
skb
,
struct
net_device
*
net
)
{
{
struct
kaweth_device
*
kaweth
=
net
->
priv
;
struct
kaweth_device
*
kaweth
=
net
->
priv
;
char
*
private_header
;
u16
*
private_header
;
int
res
;
int
res
;
...
@@ -744,7 +745,7 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
...
@@ -744,7 +745,7 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
}
}
private_header
=
__skb_push
(
skb
,
2
);
private_header
=
__skb_push
(
skb
,
2
);
*
private_header
=
cpu_to_le16
(
skb
->
len
);
*
private_header
=
cpu_to_le16
(
skb
->
len
-
2
);
kaweth
->
tx_skb
=
skb
;
kaweth
->
tx_skb
=
skb
;
usb_fill_bulk_urb
(
kaweth
->
tx_urb
,
usb_fill_bulk_urb
(
kaweth
->
tx_urb
,
...
...
drivers/usb/net/pegasus.h
View file @
b547a01b
...
@@ -133,6 +133,7 @@ struct usb_eth_dev {
...
@@ -133,6 +133,7 @@ struct usb_eth_dev {
#define VENDOR_LANEED 0x056e
#define VENDOR_LANEED 0x056e
#define VENDOR_LINKSYS 0x066b
#define VENDOR_LINKSYS 0x066b
#define VENDOR_MELCO 0x0411
#define VENDOR_MELCO 0x0411
#define VENDOR_MOBILITY 0x1342
#define VENDOR_NETGEAR 0x0846
#define VENDOR_NETGEAR 0x0846
#define VENDOR_SMARTBRIDGES 0x08d1
#define VENDOR_SMARTBRIDGES 0x08d1
#define VENDOR_SMC 0x0707
#define VENDOR_SMC 0x0707
...
@@ -167,7 +168,7 @@ PEGASUS_DEV( "USB 10/100 Fast Ethernet", VENDOR_ABOCOM, 0x200c,
...
@@ -167,7 +168,7 @@ PEGASUS_DEV( "USB 10/100 Fast Ethernet", VENDOR_ABOCOM, 0x200c,
PEGASUS_DEV
(
"Accton USB 10/100 Ethernet Adapter"
,
VENDOR_ACCTON
,
0x1046
,
PEGASUS_DEV
(
"Accton USB 10/100 Ethernet Adapter"
,
VENDOR_ACCTON
,
0x1046
,
DEFAULT_GPIO_RESET
)
DEFAULT_GPIO_RESET
)
PEGASUS_DEV
(
"SpeedStream USB 10/100 Ethernet"
,
VENDOR_ACCTON
,
0x5046
,
PEGASUS_DEV
(
"SpeedStream USB 10/100 Ethernet"
,
VENDOR_ACCTON
,
0x5046
,
DEFAULT_GPIO_RESET
)
DEFAULT_GPIO_RESET
|
PEGASUS_II
)
PEGASUS_DEV
(
"ADMtek ADM8511
\"
Pegasus II
\"
USB Ethernet"
,
PEGASUS_DEV
(
"ADMtek ADM8511
\"
Pegasus II
\"
USB Ethernet"
,
VENDOR_ADMTEK
,
0x8511
,
VENDOR_ADMTEK
,
0x8511
,
DEFAULT_GPIO_RESET
|
PEGASUS_II
)
DEFAULT_GPIO_RESET
|
PEGASUS_II
)
...
@@ -215,6 +216,8 @@ PEGASUS_DEV( "D-Link DSB-650", VENDOR_DLINK, 0xabc1,
...
@@ -215,6 +216,8 @@ PEGASUS_DEV( "D-Link DSB-650", VENDOR_DLINK, 0xabc1,
DEFAULT_GPIO_RESET
)
DEFAULT_GPIO_RESET
)
PEGASUS_DEV
(
"GOLDPFEIL USB Adapter"
,
VENDOR_ELCON
,
0x0002
,
PEGASUS_DEV
(
"GOLDPFEIL USB Adapter"
,
VENDOR_ELCON
,
0x0002
,
DEFAULT_GPIO_RESET
|
PEGASUS_II
|
HAS_HOME_PNA
)
DEFAULT_GPIO_RESET
|
PEGASUS_II
|
HAS_HOME_PNA
)
PEGASUS_DEV
(
"EasiDock Ethernet"
,
VENDOR_MOBILITY
,
0x0304
,
DEFAULT_GPIO_RESET
)
PEGASUS_DEV
(
"Elsa Micolink USB2Ethernet"
,
VENDOR_ELSA
,
0x3000
,
PEGASUS_DEV
(
"Elsa Micolink USB2Ethernet"
,
VENDOR_ELSA
,
0x3000
,
DEFAULT_GPIO_RESET
)
DEFAULT_GPIO_RESET
)
PEGASUS_DEV
(
"Hawking UF100 10/100 Ethernet"
,
VENDOR_HAWKING
,
0x400c
,
PEGASUS_DEV
(
"Hawking UF100 10/100 Ethernet"
,
VENDOR_HAWKING
,
0x400c
,
...
...
drivers/usb/storage/transport.c
View file @
b547a01b
...
@@ -314,7 +314,7 @@ static int interpret_urb_result(struct us_data *us, unsigned int pipe,
...
@@ -314,7 +314,7 @@ static int interpret_urb_result(struct us_data *us, unsigned int pipe,
return
USB_STOR_XFER_ERROR
;
return
USB_STOR_XFER_ERROR
;
/* the transfer was cancelled, presumably by an abort */
/* the transfer was cancelled, presumably by an abort */
case
-
E
NODEV
:
case
-
E
CONNRESET
:
US_DEBUGP
(
"-- transfer cancelled
\n
"
);
US_DEBUGP
(
"-- transfer cancelled
\n
"
);
return
USB_STOR_XFER_ERROR
;
return
USB_STOR_XFER_ERROR
;
...
...
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