summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
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
2017-08-26Add supporting for adjusting the CPU core clock frequency on RK3399.Mark Kettenis
Use this to bump up the clock of the "LITTLE" cluster on the Firefly-RK3399 to 1.2 GHz to make the board a bit more usable.
2017-08-26regenAaron Bieber
2017-08-26Add device ID for Altusmetrum ChaosKey 1.0Aaron Bieber
OK jasper@
2017-08-25Reduce the delay before scrolling starts.Ulf Brosziewski
2017-08-25Add mvneta(4), a driver for the Ethernet controller on the ArmadaPatrick Wildt
38x series (SoliodRun ClearFog, Turris Omnia) and the 37xx series (ESPRESSObin). Also add mvmdio(4), which is used to talk to the MDIO bus. ok kettenis@
2017-08-25Add mvpinctrl(4), a driver to configure pins on Marvell SoCs. For now,Patrick Wildt
only the Armada 388 (SolidRun ClearFog, Turris Omnia) is supported. ok kettenis@
2017-08-25Query the lower coordinate limits.Ulf Brosziewski
2017-08-25unbreak tree: move comment out of #define. sorryTheo Buehler
2017-08-25Add rktemp(4), a driver for the temperature sensors on the Rockchip RK3399Mark Kettenis
SoC.
2017-08-25Add comments explaining why the out-of-bounds access in CID 1453077 can'tTheo Buehler
happen. ok mestre, stsp
2017-08-24Fix a memory leak in an error path. Coverity CID 1453101.Jonathan Gray
2017-08-23Slightly rework how the SoC-specific functions are set up and introduce anMark Kettenis
init function such that we can do some SoC-specific setup. Use this function to set cpu_cpuspeed. On (future) MULTIPROCESSOR kernels bump the PLL for the "big" cluster out of slow mode here.
2017-08-23Fix typos in iwm(4) error messages. Patch by Bryan Linton.Stefan Sperling
2017-08-23Prevent trashing of the producer index and descriptor counterMike Belopuhov
The last change has removed a clause that required caching producer index and descriptor counter but introduced an early break that can cause uninitialized values to be stored in the ring header. Coverity CID 1453170, 1452971 OK visa
2017-08-23Fix up rssi calculations and r88e_rx_cck structure for RTL8188EU.Kevin Lo
Tested with TL-WN725N v2 (rtl8188eu) on amd64. ok stsp@
2017-08-23Use the correct argument to sizeof. Coverity CID 1453382.Jonathan Gray
2017-08-22Update inaccurate comment: rasops_copycols() doesn't use bcopy()Frederic Cambus
anymore, but either memmove() or slow_bcopy(). OK nayden@
2017-08-22Move array bounds tests before access to avoid reading past the end ofJonathan Gray
an array. Coverity CIDs 1452968 1453000. ok jung@ who mentions this case isn't hit in practice due to arrays having a terminating NULL.
2017-08-22Fix negative array index read. Coverity CID 1453243 and 1453334.Ricardo Mestre
Check if cp->dev value is invalid prior to using it as an array index and only then make the assignment si = &as->source_info[cp->dev]. OK tb@ and jsg@
2017-08-22Fix off by one overwrite. Covery CID 1452938.Ricardo Mestre
ee->ee_ctls evaluates to either 16 or 32 depending on the card's EEPROM version and with the current loop condition it will write out of bounds in the second ee->ee_ctls assignment once the condition is either i < 16 or i < 32. OK stsp@ and tb@
2017-08-21Split up ahci_port_portreset into a few smaller bits, and also slightlyJonathan Matthew
adjust port multiplier detection so it doesn't call ahci_port_portreset again directly, but instead restarts the loop for the current call. During attach, poll for device detection across all ports until either all ports have detected a device, or one second has passed, rather than doing them sequentially. Devices are still attached in order of port number, so disk unit numbers won't change. ok visa@
2017-08-21Add RK3399 CPU core related clocks. Fix RK3399 SD/MMC controller clock.Mark Kettenis
For now, expose the clock speed of the Cortex-A53 cores through the hw.cupseed sysctl.
2017-08-21Fix off by one in array bounds tests when parsing descriptors.Jonathan Gray
Coverity CIDs 1452970 1453305.
2017-08-21Fix the build when RTWN_DEBUG is defined.Jonathan Gray
ok kettenis@ stsp@
2017-08-20Surprise: I/Q calibration now works with urtwn(4) devices, so enable it.Stefan Sperling
Tested with 8188CUS, 8188EU, and 8192CU.
2017-08-20Fix use of uninitialized variables during rtwn(4) I/Q calibration, whichStefan Sperling
restored device registers from uninitialized memory after calibration. Bug was hinted at by clang which produced a non-working driver at -O2. The problem was eventually spotted by jsg@ with gcc 6.3.1.
2017-08-19Rotate framebuffer (counter-clockwise) when width < height.Mark Kettenis
ok mpi@
2017-08-19Remove a redundant declaration of rtwn_update_avgrssi().Stefan Sperling
It is also declared in rtwnvar.h. No functional change.
2017-08-18Backout because it breaks ramdisks. Anyone making changes in the kernelTheo de Raadt
is required to consider or test ramdisks before commit.
2017-08-18Add compressed fonts support in the kernel.Frederic Cambus
The wsdisplay_font structure has been modified to add two new members (zdata and zdata_len) to store compressed font data and its size. We define compressed fonts by setting the data field to NULL and populating the zdata and zdata_len fields. In wsfont_lock(), we check if the selected font needs to be inflated, and we call the newly introduced wsfont_inflate() if required. OK kettenis@
2017-08-18Test for device_lookup() returning NULL in gpioioctl() and gpioclose().Jonathan Gray
Coverity CIDs 1453046, 1453184.