summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_run.c
AgeCommit message (Collapse)Author
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
2011-02-10now that usb_wait_task() is back, bring back recently revertedJacob Meuser
changes: * use usb_ref_{incr,decr,wait}() to avoid detaching the driver while a process is still using the hardware. * don't add timeout(9)s if the device is detached. * add checks to see if the device has been detached before running ioctls, timeouts, and tasks. * use usb_wait_task() to wait for tasks to complete. ok damien@
2011-02-09revert usb.c to r1.72, and all subsequent changes that depend on it.Jacob Meuser
this is causing problems with suspend/resume for some people.
2011-02-05* use usb_ref_{incr,decr,wait}() to avoid detaching the driver while aJacob Meuser
process is still using the hardware. * don't add timeout(9)s if the device is detached. * add checks to see if the device has been detached before running ioctls, timeouts, and tasks. * use usb_wait_task() to wait for tasks to complete. ok damien@
2011-01-30another runTed Unangst
2011-01-25garbage collect "usb events". without /dev/usb there is no way to accessJacob Meuser
them from userland, and nothing in the kernel uses them. ok krw@, miod@
2011-01-10add the Buffalo WLI-UC-GNHP.Damien Bergamini
from Jordi Beltran Creix.
2010-12-30* do not add timeouts if the driver is dyingJacob Meuser
* use usbd_ref_{incr,decr,wait} to not detach while another process/thread is using the driver * s/usb_rem_task/usb_rem_wait_task/ in detach functions because detach doesn't always happen in the task thread; otherwise a task could be running while the driver detaches * in detach functions, first delete pending timeouts, then wait for processes to be done with the driver before freeing resources ok martynas@
2010-11-06support the logic rt3020 that mtu@ foundTheo de Raadt
2010-10-30in otus, tx() can return on error without releasing the nodeDamien Bergamini
so release the node in the caller (if_start) instead and do the same in run(4) for consistency.
2010-10-30no need to compute hdrlen in (), it is not used.Damien Bergamini
2010-10-30always decrement the number of xfers queued in txeof() evenDamien Bergamini
if transfer failed.
2010-10-30don't release the node twice if tx() failsDamien Bergamini
2010-10-30use (ifp->if_softc != NULL) instead of (ifp->if_flags != 0) to checkDamien Bergamini
if interface was attached. both are correct but this is for consistency with other drivers.
2010-10-30use hw sequence numbering for non-QoS framesDamien Bergamini
2010-10-23check that a timeout(9) has been initialized before deleting itJacob Meuser
ok phessler
2010-10-23create another kthread to run xfer abort tasks. xfer abort tasks cannotJacob Meuser
be run from the generic task kthread, because xfers that need to be aborted block newly queued tasks from running (i.e. the xfer to be aborted blocks the abort of that task). as there are now three types of usb tasks, add an argument to usb_init_task() and another member to struct usb_task to specify the task type. fixes boot hangs that are showing up because we now use usb tasks to attach/detach usb devices.
2010-10-22Attach the two run(4) usb ids that krw@ added to usbdevs.Damien Bergamini
"Feel free to commit!" krw@
2010-08-27remove the unused if_init callback in struct ifnetJonathan Gray
ok deraadt@ henning@ claudio@
2010-04-29- add another run, from markus bergkvistJasper Lievisse Adriaanse
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
sysctl.h was reliant on this particular include, and many drivers included sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed. ok deraadt
2010-04-15new Hawking run(4) idsDamien Bergamini
from Linux
2010-04-14clean Sitecom run(4) ids.Damien Bergamini
use real product names, add some ids, remove some ids that never made it into production.
2010-04-06always enable both 2GHz and 5GHz LNAs regardless of the bandDamien Bergamini
we're using. fixes operation on some 5GHz channels (e.g 153). great thanks to Yao Zhao (dragonlinux at gmail dot com) for identifying the issue on run(4).
2010-04-06add BELKIN F5D8055V2Alexander Hall
ok deraadt@, damien@
2010-04-04Fix 5GHz channels TX power settings for RT2860/RT2870 (does notDamien Bergamini
affect RT3572.) Found (again!) by Yao Zhao (dragonlinux at gmail dot com)
2010-03-27Fix TX power per rate settings.Damien Bergamini
Found by Yao Zhao (dragonlinux at gmail dot com)
2010-02-25new run(4) idsDamien Bergamini
2010-02-24Sweex LW153Damien Bergamini
2010-02-24more run(4) idsDamien Bergamini
2010-02-24ALLWIN TechDamien Bergamini
2010-02-19fix run_set_region_4 to set the whole region specified,Damien Bergamini
not a quarter of it!
2010-02-10check that rf reg is != 0xff, not rf val.Damien Bergamini
2010-02-08remove redundant bits.Damien Bergamini
2010-02-08final bits for RT3572 and some fixes for RT3070 and RT3071.Damien Bergamini
2010-02-08add the 10us sifs directly to the pre-computed ack durations.Damien Bergamini
2010-02-08simplifyDamien Bergamini
2010-02-08s/RT2860_MCU_CMD_BOOT/RT2860_MCU_CMD_RFRESET/Damien Bergamini
no binary change.
2010-02-08fix BBP R82 for RT3572Damien Bergamini
2010-02-07writing to RT2860_TX_PIN_CFG requires some extra steps on RT3572Damien Bergamini
2010-02-07fix my 1.44->1.45 commitDamien Bergamini
2010-02-07we're in 2010.Damien Bergamini
no binary change.
2010-02-07add two more ids for RT3572 and one more id for RT2770.Damien Bergamini
save BBP R25 and R26 values on RT3572 at init.
2010-02-07set tx mixer gain for RT3071Damien Bergamini
2010-02-07change RF init sequence for RT3572Damien Bergamini
2010-02-07cleanup run_rt3070_set_chanDamien Bergamini
2010-02-07add a function to set the channel on RT3572.Damien Bergamini
2010-02-07when calibrating filter, use better target values for >=RT3071Damien Bergamini
2010-02-07read vendor RF settings for >=RT3572 and tx mixer gains for >=RT3070Damien Bergamini
check if we have a hardware RF switch and if we must patch the DAC issue too.
2010-02-07add a new function to set the AGC since the code is a bit differentDamien Bergamini
for RT3572. fix the initial AGC value for >=RT3070 while i'm here.