summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2017-10-13Implement media auto selection for DEC 3000.Martin Pieuchot
diff from miod@
2017-10-12Apparently one of the main concepts in the SDMMC I/O subsystem is thatPatrick Wildt
the driver attached to an SDIO card always holds the lock and only releases it once it detaches. Now with that in mind, some time ago sdmmc_io_function_disable() and sdmmc_io_function_ready() were changed to only assert the write lock and not take it, but not all of the tree was converted. Change sdmmc_io_function_enable() as well, and remove the enter/exit dance in the interrupt code. Apparently there is no SDIO driver yet/anymore which would trigger those issues. ok kettenis@
2017-10-12Add missing size to free(); ok deraadt@ mpi@anton
2017-10-11regenPatrick Wildt
2017-10-11Add bwfm(4), a driver for Broadcom FullMAC WiFi controllers. ThePatrick Wildt
FullMAC, in comparison to SoftMAC, does most WiFi handling in the firmware that's running on the controller. This means we have to work around the net80211 stack while still implementing all the WiFi interfaces to userland. This driver is still in early development. So far it can connect to open WiFis over the USB bus. SDIO and PCIe support, for devices like the Raspberry Pi 3 or the Macbooks, is not yet implemented. Also mbufs on the transmit path leak and are not yet freed. ok stsp@
2017-10-11Fix debug printf, from Dave Voutila.Martin Pieuchot
2017-10-10hidmt: send input mode set report as 2 bytes, matches linuxJoshua Stein
tested by a few
2017-10-10hidmt: add support for hybrid packet mode used by some touchpadsJoshua Stein
2017-10-10hidmt: rename internal hidmt_input struct to hidmt_data, avoid clashJoshua Stein
with hidmt_input function
2017-10-09Fix build on 32 bit; paddr in rtsx_xfer_dma needs to be 64bit on all platforms.Stefan Sperling
Found the hard way by deraadt@
2017-10-09Add ADMA support to rtsx(4) to make use of DMA buffers provided by sdmmc(4).Stefan Sperling
Data transfers use a little bit less CPU time now. Tested by me on RT5209 and on RTS525A by jcs@ ok mpi@ visa@
2017-10-09Print the name of the device tree node like we do for simplebus(4).Mark Kettenis
This makes it easier to match dmesg output to the device tree. ok patrick@
2017-10-09The previous commit was deemed too invasive, so back it out and replacePatrick Wildt
it with a simple ifdef that uses the inline keyword if being compiled with clang and doesn't use the keyword if being compiled with gcc. ok kettenis@
2017-10-09Correct logic check preventing the device to attach.Martin Pieuchot
Fix regression introdruced in previous. Found the hardway and diff from weerd@
2017-10-09Turns out that the previous commit resolves the problem on Clang but atPatrick Wildt
the same time breaks the sparc64 build due to a very similar issue. To make it work, stop returning a huge struct and instead make the caller pass a pointer to the struct it allocated only once on the stack. Similar diff from sashan@ "yeah just make it work, and add it to the mop list" deraadt@
2017-10-08Adapt hidmt to the MT interface of wsmouse, and add the compat-mode setup.Ulf Brosziewski
ok mpi@, jcs@
2017-10-08Enable rkiic(4) and rkpmic(4) for Rockchip RK3288 boards.Mark Kettenis
ok patrick@, jsg@
2017-10-06Recalibrate TSC timecounter with HPET and PM timerMike Belopuhov
If frequency of an invariant (non-stop) time stamp counter is measured using an independent working timecounter that has a known frequency, we can assume that the measured TSC frequency is as good as the resolution of the timecounter that we use to perform the measurement. This lets us switch from this high quality but expensive source to the cheaper TSC without sacrificing precision on a wide range of modern CPUs. From Adam Steen <adam@adamsteen.com.au> with tweaks from reyk@ and myself. Tested by brynet@, sthen@ and others, OK mlarkin, sthen
2017-10-05Add support for the "TEMPer1F_H1V1.5F" USB temperature and humidityStefan Sperling
sensor to the ugold(4) driver. Patch by Jan Klemkow Tested by Remi Locherer ok mpi@ patrick@
2017-10-05Update mvneta(4) to the way OpenBSD handles multicast and promiscuousPatrick Wildt
mode bits. From Brad Smith.
2017-10-04Work around clang mis-optimization regression. For some expression-Patrick Wildt
emission temporaries no lifetime markers are emitted. This causes clang to not re-use stack slots properly. By forcing the function to be inlined this can be worked around. ok kettenis@ jsg@
2017-10-04Introduce reference counting for tasks in iwm(4).Stefan Sperling
When bringing the interface down, the driver now waits for any running tasks to complete before shutting down the hardware. Based on suggestions by dlg@ and mpi@ Tested by myself, Manuel Giraud, anton@, and jcs@
2017-10-03Disable msi on the Yukon 88E8036 and 88E8053 as it triggers watchdog timeoutsAntoine Jacoutot
rendering the network unusable. tested by myself committing on behalf of jsg@ ok deraadt@
2017-10-01Align Rx buffers to prevent unaligned access in the network stack.Mark Kettenis
ok patrick@, deraadt@
2017-09-30The property that points the the attached PHY is called "phy-handle" insteadMark Kettenis
of "phy". ok patrick@, deraadt@
2017-09-30Add preliminary kabylake support to inteldrm(4) by backporting the relevantRobert Nagy
commits from linux-4.8.x. The changes are quiet minimal due to the fact that kabylake and skylake share most of the code because they are both gen9 graphics. This was tested by many and was also in snapshots for a while. ok kettenis@
2017-09-28The DELAY() recently added to iwn(4) to make association more reliable couldStefan Sperling
be triggered by incoming management frames, such as DEAUTH frames. As krw@ found out, a system receiving many such frames would become unresponsive. Ensure this extra DELAY() only happens if we decide to send an AUTH frame. ok mpi@ krw@
2017-09-26Prevent null pointer dereference when probing channelsMike Belopuhov
Account for the case when wdc is attached to the ISA bus and performs channel probing using a dummy structure that lacks the back pointer to the controller's softc. Bug reported and fix tested by Andrew Daugherity, thanks! OK phessler, jsg, krw, deraadt
2017-09-26Use quoted #includes for files kdump's mkioctls indirectly includes soJonathan Gray
mkioctls can find the files and not error out as drm headers are not installed to /usr/include. This results in more complete ioctl coverage in kdump (not just for drm). ok kettenis@
2017-09-23Fix build on octeon by reverting two cosmetic changes in rtwn.c r1.34.Stefan Sperling
Compiler complained: warning: large integer implicitly truncated to unsigned type No functional change. reported by & ok visa@
2017-09-23Add dummy FIOASYNC handler.Martin Pieuchot
Without it uhid_do_ioctl() will return EINVAL which will make the upper layer assume that uhid node do not support non-blocking reads. Fix a regression introduced by the removal of SIGIO support. Reported by many, fix tested by Bryan Linton, Micah Muer and Nam Nguyen.
2017-09-22Use ieee80211_has_addr4() inline function where possible.Kevin Lo
ok stsp@
2017-09-22- Fix short preamble for rtl8188euKevin Lo
- Use R92C_MSR rather than R92C_CR to set media status - Replace magic numbers with something more readable ok stsp@
2017-09-22Move the powering down of all codecs into azalia_halt_corb() after theTheo Buehler
check that the CORB is running. Fixes a regression introduced in -r1.236 that resulted in printing 'azalia0: CORB is not running' on each suspend resume cycle. Issue reported on icb by mlarkin; tested by Manuel Giraud, ratchov and myself. ok ratchov
2017-09-21Add dwxe(4), a driver the Synopsis DesignWare Ethernet controller usedPatrick Wildt
on the Allwinner A64, H3 and H5 SoCs. This makes the onboard ethernet usable on the popular Pine A64 and NanoPi Neo2. The skeleton used for this driver is taken from tsec(4). ok kettenis@
2017-09-21Disable a splsoftassert() at least until ohci(4) has been fixed.Martin Pieuchot
This assert triggers because of the floor check on amd64/sparc64 when ohci(4) processes its root-hub status change transfers at IPL_BIO. Previous to the removal of IPL_SOFTNET, the SPLUSBCHECK macro didn't do anything, so it is safe to disable this check. Issue reported by espie@ and krw@
2017-09-19Add support for being a regmap provider in syscon(4). So far the driverPatrick Wildt
supports being used as a regmap client to reset or power down a machine, so this change implements the other side where we provide the registers to write into. ok kettenis@
2017-09-13Add missing pipe in sxitwi(4)'s match code to actually makePatrick Wildt
it a logical OR intead of a binary OR. From Artturi Alm
2017-09-12- sprinkle variable name and printf tweaksJasper Lievisse Adriaanse
- save product type for future use
2017-09-10- call usbd_deactivate() rather than simply returning in case of errorsJasper Lievisse Adriaanse
- explicitly clear sc_xfer upon detach - fix spacing in urng_softc definition
2017-09-08Add support for isochronous transfers to xhci(4).Stefan Sperling
This is just a step forward which allows further progress to happen in-tree. The isochronous code path remains disabled for now. Playing audio over xhci(4) does not work properly yet, and I haven't even tested video input. Based on a work-in-progress diff by mpi@ from 2015. ok mpi@
2017-09-08fdc: Print warning if kthread_create failsStefan Fritsch
Other drivers do this, too. Fixes coverity CID 1455436.
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-09-07Check return of rtsx_write in previous commit as RTSX_WRITE macroJoshua Stein
does Coverity CID 1455437
2017-09-07In copycols() remove useless code that modifies the uninitializedAlexander Bluhm
sp variable. Its value is not used, it is overwritten later on. found by clang -Wuninitialized; OK deraadt@
2017-09-07In toshiba_hotkey() initialize the ret value to failure as it isAlexander Bluhm
not set in all code paths. found by clang -Wuninitialized; OK deraadt@
2017-09-06In the case that we want to force a new RAID assembly and the metadataPatrick Wildt
type on the chunks is not the same, we don't actually care because we are going to clear their metadata anyway, so don't error out. This allows assembling a new RAID based on a drive that is zeroed and one that used to be part of a softraid in its previous life. ok jsing@
2017-09-06add support for the Realtek RTS525AJoshua Stein
ok stsp
2017-09-06fix commentJoshua Stein
2017-09-05explicitly clear the output pipeJasper Lievisse Adriaanse
ok mpi@