Xin LI
9fe569d8f9
Some comment/space changes (FALLTHRU -> FALLTHROUGH, space after while).
2009-05-14 22:36:56 +00:00
Xin LI
25e13e6895
Try to workaround a race where bge_stop() may sneak in when bge_rxeof()
...
drops and re-grabs the softc mutex in the middle, resulting in kernel
trap 12. This may happen when a lot of traffic is being hammered on
one bge(4) interface while the system is shutting down.
Reported by: Alexander Sack <pisymbol gmail com>
PR: kern/134548
MFC After: 2 weeks
2009-05-14 22:33:37 +00:00
John Baldwin
bb2aebf3ad
- Add a void pointer to the ata-pci controller softc to allow
...
chipset-specific code to attach chipset-specific data.
- Use chipset-specific data in the acard and promise chipsets rather than
changing the ivars of ATA PCI devices. ivars are reserved for use by the
parent bus driver and are _not_ available for use by devices directly.
This fixes a panic during sysctl -a with certain Promise controllers with
ACPI enabled.
Reviewed by: mav
Tested by: Magnus Kling (kingfon @ gmail) (on 7)
MFC after: 3 days
2009-05-14 14:57:13 +00:00
Christian Brueffer
3af3ff479b
Compare the correct variable against NULL.
...
Reviewed by: scottl
Found with: Coverity Prevent(tm)
CID: 821
MFC after: 2 weeks
2009-05-14 13:32:33 +00:00
Kip Macy
8222d237cb
Call drbr_stats_update to update ifp stats directly when we bypass the buf_ring on transmit
2009-05-14 03:33:04 +00:00
Dag-Erling Smørgrav
e872228f51
Snip redundant assignment.
...
Approved by: scottl
MFC after: 2 weeks
Coverity ID: 3863
2009-05-13 22:31:25 +00:00
Ed Schouten
aa16f86ca5
Keep this line shorter than 80 columns.
2009-05-13 19:29:50 +00:00
Oleksandr Tymoshenko
ecd6163338
- Make SPI bus bridge be non-arch dependent by using more generic
...
name
Reviewed by: imp
2009-05-13 18:42:49 +00:00
Oleksandr Tymoshenko
ab88d607a5
- Remove nonexistent header file from includes list
2009-05-13 18:31:28 +00:00
Andrew Thompson
7261357fbc
Ensure the bmRequestType is the right type for the incoming control request.
...
Submitted by: Hans Petter Selasky
2009-05-13 18:26:55 +00:00
Andrew Thompson
8ea86e467f
Add parenthesis around the xfer macro argument.
...
Submitted by: Hans Petter Selasky
2009-05-13 18:25:14 +00:00
Andrew Thompson
ecf65ed434
Make sure collections have the usage field set.
...
Submitted by: Hans Petter Selasky
2009-05-13 18:06:52 +00:00
Andrew Thompson
07532e4997
Check the correct variable for IO_NDELAY.
...
Submitted by: Hans Petter Selasky
2009-05-13 18:05:40 +00:00
Andrew Thompson
c773c25419
Add debug lines for fullspeed and highspeed xfer completion.
...
Submitted by: Hans Petter Selasky
2009-05-13 18:04:51 +00:00
Andrew Thompson
3a67e91430
Sync to P4
...
Add umass quirks for Alcor AU6390, Cypress PATA 6830XX and MPMan MPF400.
Submitted by: Hans Petter Selasky
2009-05-13 18:03:23 +00:00
Andrew Thompson
f1f8840814
The transfer must return USB_ERR_CANCELLED when the device is gone due to the
...
way usb drivers work.
Submitted by: Hans Petter Selasky
2009-05-13 17:58:37 +00:00
Nathan Whitehorn
8553eea5ce
Add a comment to motivate my last change.
...
Suggested by: sam, imp
2009-05-13 16:19:05 +00:00
Warner Losh
d47f0d75af
ifp->if_softc is managed entirely by the driver. We never set it to
...
NULL or change it. We initialize it before we set if_ioctl. It can
therefore never be NULL, and most other drivers don't bother with this
sanity check.
2009-05-13 14:43:26 +00:00
Nathan Whitehorn
0a594d9ecc
Add a short delay after programming PHY registers to give some time for
...
the engine to catch up. This prevents a machine check exception from
illegal memory requests with a BCM4318.
2009-05-13 14:25:55 +00:00
Christian Brueffer
e831cd36d0
Remove unused variables.
...
Found with: Coverity Prevent(tm)
CID: 544, 545
2009-05-12 23:22:58 +00:00
Christian Brueffer
6282e61346
Remove unused variable.
...
Found with: Coverity Prevent(tm)
CID: 549
2009-05-12 19:33:36 +00:00
Christian Brueffer
75c4b82c36
Remove unused variable.
...
Found with: Coverity Prevent(tm)
CID: 550
2009-05-12 19:30:46 +00:00
Edward Tomasz Napierala
f095d54f01
Remove dead code.
...
Found with: Coverity Prevent(tm)
CID: 556
2009-05-12 16:39:43 +00:00
Kip Macy
24df53962e
fix bug introduced by last change
...
Submitted by: Navdeep Parhar
2009-05-12 03:30:25 +00:00
Weongyo Jeong
922f7c5c21
Add WUSB54AG and XM142 entries for upgt(4)
2009-05-12 02:05:42 +00:00
Kip Macy
673d9d33eb
don't acquire tty lock with console lock held
2009-05-11 23:03:15 +00:00
Kip Macy
94a24e4240
xen console lock needs to be a spin lock in case it is acquired from an interrupt context
2009-05-11 22:55:49 +00:00
Ed Schouten
7fb6f68587
Add macros around the sx operations in snp(4).
...
As an experiment, I changed snp(4) to use a mutex instead of an sx lock.
We can't enable this right now, because Syscons still picks up Giant.
It's nice to already have the framework there.
2009-05-11 18:52:46 +00:00
Warner Losh
d83d76df1f
Update a few XXX comments
...
Submitted by: ddk ddk ddkprog at yahoo dot com
2009-05-11 17:13:52 +00:00
Weongyo Jeong
879f0eff53
ports upgt(4) driver for USB2.
2009-05-11 02:39:49 +00:00
Marius Strobl
0ec607133b
Change uses of the struct ccb_hdr timeout_ch missed when isp(4) was
...
adapted to MPSAFE cam(4) to a isp(4) specific callout structure.
Thanks to Florian Smeets for providing access to a machine exhibiting
this problem for debugging.
Approved by: mjacob
MFC after: 3 days
2009-05-10 20:14:19 +00:00
Andrew Thompson
e1d2045e3f
Abort any scan on a fatal firmware. ic_scan_curchan is overridden to perform
...
the scan in firmware and this relies on the firmware to wake up the scan task
on completion.
2009-05-10 02:44:19 +00:00
Sam Leffler
853569c6ec
push wme parameter setting to the taskq thread; the update callback from
...
net80211 can happen from the ithread and submitting the fw cmd requires
a sleepable context
2009-05-09 19:22:37 +00:00
Warner Losh
ec54a3a337
Unmark the ASR Compat IOCTLs as BURN_BRIDGES, per scottl@
2009-05-09 17:47:42 +00:00
David Christensen
8ef3f835d2
- Fixed incorrect packet length problem caused be earlier change to
...
support ZERO_COPY_SOCKETS.
- Created #define for context initialization retry count.
MFC after: 1 week
2009-05-08 22:20:45 +00:00
Andrew Thompson
b569d2132e
Drain the tasks before the interface stop call in case a restart was queued.
2009-05-08 13:44:33 +00:00
Alexander Motin
6e8e2779b3
Add one more board ID with inverted external amplifier control.
...
PR: kern/121156
2009-05-08 03:19:57 +00:00
Sam Leffler
b4307a77d2
kill more portability functions that are no longer useful
2009-05-08 00:23:00 +00:00
Sam Leffler
8ab663f305
kill unused OS_GETUPTIME
2009-05-08 00:15:27 +00:00
Alexander Motin
88413c6b88
Add ID of one more SII3132 revision found on adaptec aar-1225sa rev a2.
...
PR: kern/127289
2009-05-07 19:17:06 +00:00
Philip Paeps
541bfd6180
Add PCI IDs for the Broadcom 5825 incarnation.
...
Submitted by: Brian A. Seklecki <bseklecki -at- collaborativefusion.com>
MFC after: 1 day
2009-05-07 18:03:47 +00:00
Andrew Thompson
822e5d76f8
Use a 32 bit type for the interface mask as this equals the max interface
...
count.
2009-05-07 17:05:03 +00:00
Andrew Thompson
426909d969
Add the Sierra AC885U and increase the max ports to 8.
2009-05-07 02:17:09 +00:00
Andrew Thompson
e92a451510
- Fix the u3g port detection where it would not calculate the correct number of
...
ports when multiple interfaces are present.
- Claim all interfaces regardless of how many are attached
2009-05-07 02:15:58 +00:00
Andrew Thompson
a173706bbd
Use vendor and product macro expansion to make the device table smaller and
...
more readable.
2009-05-07 02:13:56 +00:00
Sam Leffler
ab06fdf2a5
optimize ath_tx_findrix: there's no need to walk the rates table as
...
sc_rixmap is an inverse map
NB: could eliminate the check for an invalid rate by filling in 0 for
invalid entries but the rate control modules use it to identify
bogus rates so leave it for now
2009-05-07 00:35:32 +00:00
Sam Leffler
a8962181ad
o cleanup checks for which vap combinations are permitted and what to
...
use for ic_opmode
o fixes the case where creating ahdemo+wds vaps caused ic_opmode to be
set to hostap
2009-05-06 23:49:55 +00:00
Sam Leffler
a00b852cab
add support for the Beacon Not Ready (BNR) interrupt
...
(available on 5211 and later)
2009-05-06 23:09:26 +00:00
Andrew Thompson
b9c81a5dce
Make sure the frame list base address is re-programmed after stopping the USB
...
schedule, in case the hardware clears the frame list base address.
Submitted by: Hans Petter Selasky
Reported by: Chao Shin
2009-05-05 15:41:30 +00:00
Andrew Thompson
6b1bca02b9
Remove USB shutdown methods from device drivers as its the host controllers
...
responsibility to detach the bus.
PR: usb/133896
Submitted by: Hans Petter Selasky
2009-05-05 15:39:29 +00:00