summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
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@
2017-09-05EPROTO is now in sys/errno.hOtto Moerbeek
2017-09-05Correct a bounds test. Coverity CID 1452930.Jonathan Gray
ok mpi@
2017-09-05Add additional errno values required by POSIX.Jonathan Gray
ok jca@ kettenis@ deraadt@
2017-09-04Don't require exactly 20 elements in the _BIX package if at least 20Joshua Stein
are returned since extras may be OEM-specific values we end up ignoring anyway, such as on the Lenovo X1C 5th Gen which returns 21 elements. ok mpi
2017-09-04Revert previous: "Fix a remaining length miscalculation in xhci(4)."Stefan Sperling
It made one of my machines get stuck during boot.
2017-09-04Make sure iwn(4) firmware gets to see a beacon before we send an auth request.Stefan Sperling
Otherwise, the Tx attempt can fail due to the firmware's built-in regulatory domain enforcement. Because this code runs in interrrupt context we use a DELAY(). It's currently set to 3 times the beacon interval. This is a bit long as far as DELAYs go, but since this driver runs state transitions in interrupt context there is no better way for now. Lower delays weren't reliable enough in my testing. Makes association work reliably for me on 5GHz. My original plan was to only add this hack for 5GHz but Holger Mikolon reported that it also helps on 2GHz channels with regulatory restrictions (e.g. 13), so do it always. ok mpi@
2017-09-03fdc: defer probing of floppy drivesStefan Fritsch
Defer probing of the drives to a kthread. This avoids several seconds of delay() during boot. However, drives may now appear only after init has started. But this does not affect installs from floppy. In that case the root ramdisk is linked into the kernel and loaded by the boot loader. Approach suggested by deraadt@, tested by miod@
2017-09-03Attach rtwn(4) to RTL8192CE. Tested by me.Stefan Sperling
ok kevlo@
2017-09-03When I merged rtwn(4) and urtwn(4) register definitions, an extraStefan Sperling
line snuck into the rtl8192ce_bb_vals_2t array. Remove it again. This broke baseband initialization for RTL8192CE which went unnoticed because at the time nobody had tested rtwn(4) with that chip and the driver didn't attach to it. Problem reported by Martin Wanvik who eventually did this test. ok kevlo@
2017-09-03drm/i915: fix compiler warning in drivers/gpu/drm/i915/intel_uncore.cJonathan Gray
From Greg Kroah-Hartman c81c4d453edf242af644f7e71f673fc7632f337c in linux-4.4.y/4.4.86
2017-09-03drm/atomic: If the atomic check fails, return its value firstJonathan Gray
From Maarten Lankhorst 3416ee45a8cbeb5bc4b13a754873fbb26a27dccb in linux-4.4.y/4.4.85 a0ffc51e20e90e0c1c2491de2b4b03f48b6caaba in mainline linux
2017-09-03drm: Release driver tracking before making the object available againJonathan Gray
From Chris Wilson 2a9d7664ffb2c223c488058ee6bee61512db9396 in linux-4.4.y/4.4.85 fe4600a548f2763dec91b3b27a1245c370ceee2a in mainline linux
2017-09-02Support Allwinner A64's ethernet controller clocks and resetPatrick Wildt
based on the H3 code which is essentially the same apart from differing device tree indices. ok phessler@
2017-09-02handle rk3288 i2c clocksJonathan Gray
with help from kettenis@
2017-09-01Add macros for reading the bmAttributes field of the USB super speedStefan Sperling
endpoint companion descriptor. ok mpi@
2017-09-01Fix a remaining length miscalculation in xhci(4).Stefan Sperling
Each TRB contains a remaining TD size, which allows hardware to tell whether additional TRBs follow within the current transfer without reading ahead. The length of the first TRB was subtracted from the total length before calculating the remaining TD sizes. This is wrong because remaining TD sizes are relative to the size of the entire transfer, including the first TRB. Our current USB code does not trigger this bug because there is no code in upper layers yet which triggers use of multiple TRBs per transfer. ok mpi@
2017-08-30Use endpoint 5 for chaoskey, it should have been 5 from the start, thisAaron Bieber
puts us in line with the linux driver. Also add a DPRINTF for endpoints. "i'd say go for it" jasper@
2017-08-30Decode pin mux configuration correctly in gpio(4) support code such thatMark Kettenis
we knock out the correct pins. Sptted by Artturi Alm.
2017-08-30Report the rebuild state properly, so that in the case of a rebuildPatrick Wildt
the sensor does not show the drive state as "unknown". ok phessler@
2017-08-29add _MEASURE_RATE bits from uonerng(4)Jasper Lievisse Adriaanse
tested by abieber@
2017-08-29rename sc_pipe to sc_outpipe to indicate it's direction as there'll come anJasper Lievisse Adriaanse
sc_inpipe too
2017-08-29"urng" is needed on the file lines... or these end up in all kernels,Theo de Raadt
including ramdisks without usb support...
2017-08-28Fix a memory leak in an error path. Coverity CID 1453042.Jonathan Gray
ok visa@
2017-08-28Add urng(4) which supports various USB RNG devices. Instead of adding oneJasper Lievisse Adriaanse
driver per device, start bundling them into a single driver. urng(4) supports the device currently supported by ualea(4) and adds support for the Altusmetrum ChaosKey 1.0, by abieber@ This was tested by abieber@ with a ChaosKey and Sean Levy with an Alea II ok abieber@ deraadt@ naddy@
2017-08-28tyop and whitespace nitJasper Lievisse Adriaanse
2017-08-28Add rkpmic(4), a driver for the RK808 Power Management IC. For now, thisMark Kettenis
driver only provides support for the RTC embedded on this device. Support for the voltage regulators will come later. With this diff the Firefly-RK3399 gains a proper clock (if you connect a battery to the board).
2017-08-28regenStefan Sperling
2017-08-28Add PCI device IDs for audio and USB OTG devices found on Atom z8300 SoC.Stefan Sperling
ok jsg@ kettenis@
2017-08-28Fix clang warnings; ok guenther@ deraadt@Otto Moerbeek
(guenther says: code could need a rewrite using writev(2) though)
2017-08-27Add rkiic(4) a driver for the i2c controllers found on the Rockchip RK3399.Mark Kettenis
2017-08-27Add glass console support for arm64. This uses the "stdout-path" propertyMark Kettenis
of the /chosen node in the device tree to decide whether the framebuffer should be used as the console device. Most, if not all, machines will have that set to use a serial console and there is no easy way yet to change that. ok jsg@
2017-08-27Make it possible for iwm_stop() to sleep by always running it inStefan Sperling
a process context. In interrupt context, schedule the init task instead of calling iwm_stop() directly. ok procter@
2017-08-27Add RK3399 i2c-related clocks and fix a typo.Mark Kettenis
2017-08-27always use %s to print a non-constant string; ok deraadt@ guenther@Otto Moerbeek
2017-08-26bug fixUlf Brosziewski
2017-08-26Mark decimal constants as unsigned to avoid gcc warning.Mark Kettenis