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
afc028ba
Commit
afc028ba
authored
Oct 15, 2004
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
8b5915b0
b86da52f
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
18 deletions
+34
-18
drivers/pci/hotplug/rpaphp_pci.c
drivers/pci/hotplug/rpaphp_pci.c
+2
-2
drivers/usb/class/usblp.c
drivers/usb/class/usblp.c
+4
-4
drivers/usb/gadget/net2280.c
drivers/usb/gadget/net2280.c
+10
-9
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hcd.c
+9
-0
drivers/usb/host/ehci.h
drivers/usb/host/ehci.h
+1
-0
drivers/usb/input/hid-core.c
drivers/usb/input/hid-core.c
+1
-1
drivers/usb/media/konicawc.c
drivers/usb/media/konicawc.c
+1
-1
drivers/usb/serial/digi_acceleport.c
drivers/usb/serial/digi_acceleport.c
+6
-1
No files found.
drivers/pci/hotplug/rpaphp_pci.c
View file @
afc028ba
...
@@ -362,7 +362,7 @@ static void rpaphp_eeh_remove_bus_device(struct pci_dev *dev)
...
@@ -362,7 +362,7 @@ static void rpaphp_eeh_remove_bus_device(struct pci_dev *dev)
int
rpaphp_unconfig_pci_adapter
(
struct
slot
*
slot
)
int
rpaphp_unconfig_pci_adapter
(
struct
slot
*
slot
)
{
{
int
retval
=
0
;
int
retval
=
0
;
struct
list_head
*
ln
;
struct
list_head
*
ln
,
*
tmp
;
dbg
(
"Entry %s: slot[%s]
\n
"
,
__FUNCTION__
,
slot
->
name
);
dbg
(
"Entry %s: slot[%s]
\n
"
,
__FUNCTION__
,
slot
->
name
);
if
(
list_empty
(
&
slot
->
dev
.
pci_funcs
))
{
if
(
list_empty
(
&
slot
->
dev
.
pci_funcs
))
{
...
@@ -373,7 +373,7 @@ int rpaphp_unconfig_pci_adapter(struct slot *slot)
...
@@ -373,7 +373,7 @@ int rpaphp_unconfig_pci_adapter(struct slot *slot)
goto
exit
;
goto
exit
;
}
}
/* remove the devices from the pci core */
/* remove the devices from the pci core */
list_for_each
(
ln
,
&
slot
->
dev
.
pci_funcs
)
{
list_for_each
_safe
(
ln
,
tmp
,
&
slot
->
dev
.
pci_funcs
)
{
struct
rpaphp_pci_func
*
func
;
struct
rpaphp_pci_func
*
func
;
func
=
list_entry
(
ln
,
struct
rpaphp_pci_func
,
sibling
);
func
=
list_entry
(
ln
,
struct
rpaphp_pci_func
,
sibling
);
...
...
drivers/usb/class/usblp.c
View file @
afc028ba
...
@@ -397,10 +397,6 @@ static void usblp_cleanup (struct usblp *usblp)
...
@@ -397,10 +397,6 @@ static void usblp_cleanup (struct usblp *usblp)
{
{
info
(
"usblp%d: removed"
,
usblp
->
minor
);
info
(
"usblp%d: removed"
,
usblp
->
minor
);
usb_buffer_free
(
usblp
->
dev
,
USBLP_BUF_SIZE
,
usblp
->
writebuf
,
usblp
->
writeurb
->
transfer_dma
);
usb_buffer_free
(
usblp
->
dev
,
USBLP_BUF_SIZE
,
usblp
->
readbuf
,
usblp
->
readurb
->
transfer_dma
);
kfree
(
usblp
->
device_id_string
);
kfree
(
usblp
->
device_id_string
);
kfree
(
usblp
->
statusbuf
);
kfree
(
usblp
->
statusbuf
);
usb_free_urb
(
usblp
->
writeurb
);
usb_free_urb
(
usblp
->
writeurb
);
...
@@ -1159,6 +1155,10 @@ static void usblp_disconnect(struct usb_interface *intf)
...
@@ -1159,6 +1155,10 @@ static void usblp_disconnect(struct usb_interface *intf)
usb_set_intfdata
(
intf
,
NULL
);
usb_set_intfdata
(
intf
,
NULL
);
usblp_unlink_urbs
(
usblp
);
usblp_unlink_urbs
(
usblp
);
usb_buffer_free
(
usblp
->
dev
,
USBLP_BUF_SIZE
,
usblp
->
writebuf
,
usblp
->
writeurb
->
transfer_dma
);
usb_buffer_free
(
usblp
->
dev
,
USBLP_BUF_SIZE
,
usblp
->
readbuf
,
usblp
->
readurb
->
transfer_dma
);
if
(
!
usblp
->
used
)
if
(
!
usblp
->
used
)
usblp_cleanup
(
usblp
);
usblp_cleanup
(
usblp
);
...
...
drivers/usb/gadget/net2280.c
View file @
afc028ba
...
@@ -303,13 +303,16 @@ static void ep_reset (struct net2280_regs __iomem *regs, struct net2280_ep *ep)
...
@@ -303,13 +303,16 @@ static void ep_reset (struct net2280_regs __iomem *regs, struct net2280_ep *ep)
/* init to our chosen defaults, notably so that we NAK OUT
/* init to our chosen defaults, notably so that we NAK OUT
* packets until the driver queues a read (+note erratum 0112)
* packets until the driver queues a read (+note erratum 0112)
*/
*/
writel
(
(
1
<<
SET_NAK_OUT_PACKETS_MODE
)
tmp
=
(
1
<<
SET_NAK_OUT_PACKETS_MODE
)
|
(
1
<<
SET_NAK_OUT_PACKETS
)
|
(
1
<<
SET_NAK_OUT_PACKETS
)
|
(
1
<<
CLEAR_EP_HIDE_STATUS_PHASE
)
|
(
1
<<
CLEAR_EP_HIDE_STATUS_PHASE
)
|
(
1
<<
CLEAR_INTERRUPT_MODE
)
|
(
1
<<
CLEAR_INTERRUPT_MODE
);
|
(
1
<<
CLEAR_ENDPOINT_TOGGLE
)
|
(
1
<<
CLEAR_ENDPOINT_HALT
)
if
(
ep
->
num
!=
0
)
{
,
&
ep
->
regs
->
ep_rsp
);
tmp
|=
(
1
<<
CLEAR_ENDPOINT_TOGGLE
)
|
(
1
<<
CLEAR_ENDPOINT_HALT
);
}
writel
(
tmp
,
&
ep
->
regs
->
ep_rsp
);
/* scrub most status bits, and flush any fifo state */
/* scrub most status bits, and flush any fifo state */
writel
(
(
1
<<
TIMEOUT
)
writel
(
(
1
<<
TIMEOUT
)
...
@@ -1920,8 +1923,6 @@ static void ep0_start (struct net2280 *dev)
...
@@ -1920,8 +1923,6 @@ static void ep0_start (struct net2280 *dev)
,
&
dev
->
usb
->
stdrsp
);
,
&
dev
->
usb
->
stdrsp
);
writel
(
(
1
<<
USB_ROOT_PORT_WAKEUP_ENABLE
)
writel
(
(
1
<<
USB_ROOT_PORT_WAKEUP_ENABLE
)
|
(
1
<<
SELF_POWERED_USB_DEVICE
)
|
(
1
<<
SELF_POWERED_USB_DEVICE
)
/* erratum 0102 workaround */
|
((
dev
->
chiprev
==
0100
)
?
0
:
1
)
<<
SUSPEND_IMMEDIATELY
|
(
1
<<
REMOTE_WAKEUP_SUPPORT
)
|
(
1
<<
REMOTE_WAKEUP_SUPPORT
)
|
(
dev
->
softconnect
<<
USB_DETECT_ENABLE
)
|
(
dev
->
softconnect
<<
USB_DETECT_ENABLE
)
|
(
1
<<
SELF_POWERED_STATUS
)
|
(
1
<<
SELF_POWERED_STATUS
)
...
@@ -2047,6 +2048,8 @@ int usb_gadget_unregister_driver (struct usb_gadget_driver *driver)
...
@@ -2047,6 +2048,8 @@ int usb_gadget_unregister_driver (struct usb_gadget_driver *driver)
stop_activity
(
dev
,
driver
);
stop_activity
(
dev
,
driver
);
spin_unlock_irqrestore
(
&
dev
->
lock
,
flags
);
spin_unlock_irqrestore
(
&
dev
->
lock
,
flags
);
net2280_pullup
(
&
dev
->
gadget
,
0
);
driver
->
unbind
(
&
dev
->
gadget
);
driver
->
unbind
(
&
dev
->
gadget
);
dev
->
gadget
.
dev
.
driver
=
NULL
;
dev
->
gadget
.
dev
.
driver
=
NULL
;
dev
->
driver
=
NULL
;
dev
->
driver
=
NULL
;
...
@@ -2552,8 +2555,6 @@ static void handle_stat1_irqs (struct net2280 *dev, u32 stat)
...
@@ -2552,8 +2555,6 @@ static void handle_stat1_irqs (struct net2280 *dev, u32 stat)
if
(
stat
&
(
1
<<
SUSPEND_REQUEST_INTERRUPT
))
{
if
(
stat
&
(
1
<<
SUSPEND_REQUEST_INTERRUPT
))
{
if
(
dev
->
driver
->
suspend
)
if
(
dev
->
driver
->
suspend
)
dev
->
driver
->
suspend
(
&
dev
->
gadget
);
dev
->
driver
->
suspend
(
&
dev
->
gadget
);
/* we use SUSPEND_IMMEDIATELY */
stat
&=
~
(
1
<<
SUSPEND_REQUEST_INTERRUPT
);
}
else
{
}
else
{
if
(
dev
->
driver
->
resume
)
if
(
dev
->
driver
->
resume
)
dev
->
driver
->
resume
(
&
dev
->
gadget
);
dev
->
driver
->
resume
(
&
dev
->
gadget
);
...
...
drivers/usb/host/ehci-hcd.c
View file @
afc028ba
...
@@ -695,9 +695,18 @@ static void ehci_work (struct ehci_hcd *ehci, struct pt_regs *regs)
...
@@ -695,9 +695,18 @@ static void ehci_work (struct ehci_hcd *ehci, struct pt_regs *regs)
timer_action_done
(
ehci
,
TIMER_IO_WATCHDOG
);
timer_action_done
(
ehci
,
TIMER_IO_WATCHDOG
);
if
(
ehci
->
reclaim_ready
)
if
(
ehci
->
reclaim_ready
)
end_unlink_async
(
ehci
,
regs
);
end_unlink_async
(
ehci
,
regs
);
/* another CPU may drop ehci->lock during a schedule scan while
* it reports urb completions. this flag guards against bogus
* attempts at re-entrant schedule scanning.
*/
if
(
ehci
->
scanning
)
return
;
ehci
->
scanning
=
1
;
scan_async
(
ehci
,
regs
);
scan_async
(
ehci
,
regs
);
if
(
ehci
->
next_uframe
!=
-
1
)
if
(
ehci
->
next_uframe
!=
-
1
)
scan_periodic
(
ehci
,
regs
);
scan_periodic
(
ehci
,
regs
);
ehci
->
scanning
=
0
;
/* the IO watchdog guards against hardware or driver bugs that
/* the IO watchdog guards against hardware or driver bugs that
* misplace IRQs, and should let us run completely without IRQs.
* misplace IRQs, and should let us run completely without IRQs.
...
...
drivers/usb/host/ehci.h
View file @
afc028ba
...
@@ -53,6 +53,7 @@ struct ehci_hcd { /* one per controller */
...
@@ -53,6 +53,7 @@ struct ehci_hcd { /* one per controller */
struct
ehci_qh
*
async
;
struct
ehci_qh
*
async
;
struct
ehci_qh
*
reclaim
;
struct
ehci_qh
*
reclaim
;
unsigned
reclaim_ready
:
1
;
unsigned
reclaim_ready
:
1
;
unsigned
scanning
:
1
;
/* periodic schedule support */
/* periodic schedule support */
#define DEFAULT_I_TDPS 1024
/* some HCs can do less */
#define DEFAULT_I_TDPS 1024
/* some HCs can do less */
...
...
drivers/usb/input/hid-core.c
View file @
afc028ba
...
@@ -1859,8 +1859,8 @@ static int __init hid_init(void)
...
@@ -1859,8 +1859,8 @@ static int __init hid_init(void)
static
void
__exit
hid_exit
(
void
)
static
void
__exit
hid_exit
(
void
)
{
{
hiddev_exit
();
usb_deregister
(
&
hid_driver
);
usb_deregister
(
&
hid_driver
);
hiddev_exit
();
}
}
module_init
(
hid_init
);
module_init
(
hid_init
);
...
...
drivers/usb/media/konicawc.c
View file @
afc028ba
...
@@ -362,8 +362,8 @@ static void konicawc_isoc_irq(struct urb *urb, struct pt_regs *regs)
...
@@ -362,8 +362,8 @@ static void konicawc_isoc_irq(struct urb *urb, struct pt_regs *regs)
else
if
(
!
urb
->
status
&&
!
cam
->
last_data_urb
->
status
)
else
if
(
!
urb
->
status
&&
!
cam
->
last_data_urb
->
status
)
len
=
konicawc_compress_iso
(
uvd
,
cam
->
last_data_urb
,
urb
);
len
=
konicawc_compress_iso
(
uvd
,
cam
->
last_data_urb
,
urb
);
resubmit_urb
(
uvd
,
urb
);
resubmit_urb
(
uvd
,
cam
->
last_data_urb
);
resubmit_urb
(
uvd
,
cam
->
last_data_urb
);
resubmit_urb
(
uvd
,
urb
);
cam
->
last_data_urb
=
NULL
;
cam
->
last_data_urb
=
NULL
;
uvd
->
stats
.
urb_length
=
len
;
uvd
->
stats
.
urb_length
=
len
;
uvd
->
stats
.
data_count
+=
len
;
uvd
->
stats
.
data_count
+=
len
;
...
...
drivers/usb/serial/digi_acceleport.c
View file @
afc028ba
...
@@ -1546,6 +1546,10 @@ static void digi_close( struct usb_serial_port *port, struct file *filp )
...
@@ -1546,6 +1546,10 @@ static void digi_close( struct usb_serial_port *port, struct file *filp )
dbg
(
"digi_close: TOP: port=%d, open_count=%d"
,
priv
->
dp_port_num
,
port
->
open_count
);
dbg
(
"digi_close: TOP: port=%d, open_count=%d"
,
priv
->
dp_port_num
,
port
->
open_count
);
/* if disconnected, just clear flags */
if
(
!
usb_get_intfdata
(
port
->
serial
->
interface
))
goto
exit
;
/* do cleanup only after final close on this port */
/* do cleanup only after final close on this port */
spin_lock_irqsave
(
&
priv
->
dp_port_lock
,
flags
);
spin_lock_irqsave
(
&
priv
->
dp_port_lock
,
flags
);
priv
->
dp_in_close
=
1
;
priv
->
dp_in_close
=
1
;
...
@@ -1616,6 +1620,7 @@ dbg( "digi_close: TOP: port=%d, open_count=%d", priv->dp_port_num, port->open_co
...
@@ -1616,6 +1620,7 @@ dbg( "digi_close: TOP: port=%d, open_count=%d", priv->dp_port_num, port->open_co
tty
->
closing
=
0
;
tty
->
closing
=
0
;
exit:
spin_lock_irqsave
(
&
priv
->
dp_port_lock
,
flags
);
spin_lock_irqsave
(
&
priv
->
dp_port_lock
,
flags
);
priv
->
dp_write_urb_in_use
=
0
;
priv
->
dp_write_urb_in_use
=
0
;
priv
->
dp_in_close
=
0
;
priv
->
dp_in_close
=
0
;
...
...
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