summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2018-10-23Fix OFW GPIO regulator by breaking out of the loop once the correctPatrick Wildt
match has been found. Otherwise the error condition will always be true. ok kettenis@
2018-10-22More "explicitely" -> "explicitly" in various comments.Kenneth R Westerback
ok guenther@ tb@ deraadt@
2018-10-22regenJonathan Gray
2018-10-22Add AMD 400 series (promontory), vega 10, more 17h ids seen onJonathan Gray
Ryzen 5 2600X, rename KernCZ FCH ids incorrectly labelled as Carrizo.
2018-10-21regenmortimer
2018-10-21Add some devices found on Lenovo A485.mortimer
ok jsg@
2018-10-04Force 8051 reset/enable before waiting for firmware to get ready forKevin Lo
RTL8723AE, like we alreay do for RTL8188C/RTL8192C. ok jmatthew@
2018-10-02Make some USB ioctls return ENXIO, instead of EIO, if usbd_is_dying().Stefan Sperling
Brings us one step closer towards making this condition's error code consistent across all USB drivers. Patch by Moritz Buhl ok mpi@ bluhm@
2018-10-02Add support for RT3290 chipset by James Hastings.Kevin Lo
Tested by me and James Hastings.
2018-10-01add RTL8723AE supportJonathan Matthew
ok kevlo@ stsp@
2018-10-01regenJonathan Matthew
2018-10-01add RTL8723AEJonathan Matthew
2018-10-01The sequence number field in the 802.11 frame header includes the sequenceJonathan Matthew
number and the fragment number, so shift it to get just the sequence number for the tx descriptor. While here, add a #define for the flag in the same field that enables hardware sequence numbering, and use existing constants for some R92C_RSV_CTRL writes. prompted by feedback from kevlo@ on another diff, tested on 8188CE, EE, EU ok stsp@ kevlo@
2018-09-28Move the unions into the rom struct which fixes Coverity CID 1473649 andKevin Lo
makes it more readable. ok stsp@ and jmatthew@
2018-09-25Insert a workaround for per-ifp ioctl being called w/o NET_LOCK().Martin Pieuchot
An example of such code path is vlan_destroy() where we don't want to grab the lock because this driver is already NET_LOCK()-free. The real solution to this problem is to stop holding the NET_LOCK() around driver *_ioctl() routines. Problem reported & fix tested by Élie Bouttier, ok visa@, bluhm@
2018-09-24Add "Spleen 5x8" to wsfont, a font targetted at small OLED displaysFrederic Cambus
to be used with devices handled by ssdfb(4). It contains all printable ASCII characters (96 glyphes). The font is 2-Clause BSD licensed and is my original creation. OK patrick@
2018-09-22Only clear the character backing store when the RI_CLEAR flag is set.Mark Kettenis
ok deraadt@
2018-09-22Back out the following if_iwm.c revisions:Stefan Sperling
r1.232 Fix length checks in the receive path of iwm(4) r1.230 Add monitor mode support to iwm(4) r1.229 Implement Rx of multiple frames per interrupt in the iwm(4) driver There is an apparent block-ack problem (base.tgz takes 8 hours to download) which goes away when these changes are reverted. To be revisited after release. ok deraadt@
2018-09-21Add support for RTL8188EE.Jonathan Matthew
This needs a new firmware image, which should be added to the rtwn firmware package shortly. testing and lots of help from kevlo@ ok kevlo@ stsp@
2018-09-20fix a memory leak in ihidev_hid_command()Jonathan Gray
ok claudio@
2018-09-19Report duplex state correctly for adapters with firmware interface versionsJonathan Matthew
older than 1.08. tested by and ok ccardenas@
2018-09-19In mue_iff() move the initialization of the hash table up so that is doneRicardo Mestre
unconditionally, like it's done on other devices, so that we don't end up in the situation of the card being put in promiscuous mode or if ac->ac_multirangecnt > 0 and then we would write into the table while being uninitialized a little bit later. Noticed on Coverity ID 1473316. hint from claudio@ and kettenis@ OK kevlo@ claudio@
2018-09-19Delete checks of the CST bit_width ('vendor') field, as new Ryzen machinesPhilip Guenther
are showing up with vendor 2 and it doesn't seem to mean anything: Linux doesn't check it at all, so this exhibits all the normal ACPI spec lossage tested in snaps for a few weeks shrug kettenis@
2018-09-18cast HWRM_NA_SIGNATURE when shortening it to keep gcc happy, prodded by jsg@Jonathan Matthew
2018-09-16Fix length checks in the receive path of iwm(4).Stefan Sperling
Prompted by a panic reported by Xavier Guerin on bugs@ ok tb@
2018-09-14ansify auich_trigger_input() and remove #ifdef around DPRINTF(); ok ratchov@miko
2018-09-14mark some suspend/resume functions always returning zero as void; ok ratchov@miko
2018-09-13In drm_wait_one_vblank() add a delay when we're "cold". Interrupts aren'tMark Kettenis
enabled at that point, so we cannot wait for one to happen. But having no delay at all breaks detection of some output connectors. Thanks to Philippe Meunier for tracking down the issue. ok millert@, jsg@
2018-09-13- There's no need to set R92C_HSSI_PARAM2_READ_EDGE for R92C_HSSI_PARAM2(0)Kevin Lo
for rtl8188eu - Fix typo in structure r92c_rom in comment: s/0x8192/0x8129/ - Add id member to struct r88e_rom which identifies eeprom - Replace magic numbers with something more readable - Cosmetic tweaking ok stsp@
2018-09-13clarify that config_activate_children() is called unconditionally in ↵miko
*activate(). ok ratchov@
2018-09-13drm/drivers: add support for using the arch wc mapping API.Jonathan Gray
From Dave Airlie c59fdc4cfbda52ce081c59540762185d765c3369 in linux 4.4.y/4.4.155 7cf321d118a825c1541b43ca45294126fd474efa in mainline linux
2018-09-13drm/i915/userptr: reject zero user_sizeJonathan Gray
From Matthew Auld 182e963432d867384f2e55487ec60ca7a9f99cd1 in linux 4.4.y/4.4.155 c11c7bfd213495784b22ef82a69b6489f8d0092f in mainline linux
2018-09-13avoid sequence-point warning with gcc 4.9Jonathan Gray
ok kettenis@
2018-09-11Only look for acpi tables if acpi(4) attached. Fixes radeondrm(4) crashMark Kettenis
on arm64 when using a device tree.
2018-09-10Prevent a panic in umb(4) when roaming is diabled.Gerhard Roth
Found by beck@, tested and ok by bluhm@
2018-09-10put the port into autonegotiate mode on attach, since that's the defaultJonathan Matthew
media setting. tested by and ok ccardenas@
2018-09-10if the adapter can't determine the phy type on a port, pretend it's baseCRJonathan Matthew
so we get a usable list of media types to pick from. tested by and ok ccardenas@
2018-09-10bit rates over 2G won't fit in an int, so use uint64_ts insteadJonathan Matthew
2018-09-07remove some unused variables and otherwise tidy up a bit.Jonathan Matthew
2018-09-07clarify that goto error in alloc_all_endpoints_fixed_ep() always returnsmiko
USBD_INVAL. ok mpi@
2018-09-07move initial jack count to alloc_all_endpoints(), and reset count to zeromiko
in free_all_jacks(). ok stsp@ ratchov@
2018-09-06If we cannot stop the endpoint when aborting a transfer assume thatMartin Pieuchot
the device is gone and give back the descriptor to the stack. Without this usbd_abort_pipe() could end up in an infinite loop. Issue reported by Tom Murphy.
2018-09-06fix whitespaceJonathan Gray
2018-09-06Implement 64-bit DMA support in sdhc(4).Patrick Wildt
tested in snaps ok kettenis@
2018-09-06execute the same code for failure of assign_all_jacks_automatically()miko
and attach_all_mididevs(). this ensures unbind_all_jacks() and usbd_deactivate() happen for both cases. ok ratchov@
2018-09-05Back out 1.4, it broke thingsJoshua Stein
2018-09-05Serialize synchronous commands with a rwlock.Martin Pieuchot
Prevent triggering an assert if two drivers try to submit a command at the same time. Issue reported by Tom Murphy.
2018-09-03regenJoshua Stein
2018-09-03add another toshiba nvmeJoshua Stein
2018-09-03Remove round_buffersize function from drivers using the default buffersizemiko
provided by the upper layer audio driver. ok ratchov@