summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2021-12-12fix various typos, mainly in comments.andvar
2021-12-12fix typos in word "request(s)".andvar
2021-12-10s/occured/occurred/ in comments, log messages and man pages.andvar
2021-12-08fix various typos in comments and log messages.andvar
2021-12-07G/C pckbc_attach_argsskrll
2021-12-07A driver and user land utility for the Sparkfun Serial Controlled Motorbrad
Driver module as illustrated here: https://www.sparkfun.com/products/13911 A SCMD module is a ARM SOC simular to a Arduino in front of a motor driver chip. The single SCMD module can control two motors and up to 16 additional modules can be chained together using an internal I2C bus. One can interface with the SCMD using tty uart commands, SPI or I2C. The driver in this commit adds a kernel driver for the I2C and SPI interfaces. The command line utility provides a set of convenience commands that support most of the functions of the SCMD and is able to use the tty uart mode, SPI user land or the included kernel driver in a uniform manor. The use of the SCMD module is mostly for small robots and the like, but it can control anything that is controllable by voltage.
2021-12-05Fix typo again... s/Expilcitly/Explicitly/msaitoh
2021-12-05isp: fix typo in commentrillig
2021-12-05s/timout/timeout/msaitoh
2021-12-05s/runable/runnable/msaitoh
2021-12-05s/receieve/receive/msaitoh
2021-12-05s/programatic/programmatic/ in comment.msaitoh
2021-12-05s/from from/from/ in comment.msaitoh
2021-12-05s/coresponding/corresponding/ in comment.msaitoh
2021-12-05s/corret/correct/ in comment.msaitoh
2021-12-05s/explcit/expilcit/ in comment.msaitoh
2021-12-05s/decriptor/descriptor/ in comment.msaitoh
2021-12-03fix various typos in comments, log messages and documentation.andvar
2021-11-19ahcisata(4): Introduce AHCI_QUIRK_EXTRA_DELAY quirk for devices thatrin
need extra delays as done by AHCISATA_EXTRA_DELAY option. Enable this quirk for "C600/X79 AHCI". Also add commented out quirk entries for "Bay Trail SATA (AHCI)" and "Mobile AHCI SATA Controller", for which non-reproducible failures worked around by extra delays have been reported. 500 ms of delays inserted by these option/quirk may be too much. Add AHCISATA_EXTRA_DELAY_MS option to adjust number of delays in ms, like: ---- options AHCISATA_EXTRA_DELAY_MS=200 ---- Thanks prlw1@ and jun@ for testing!
2021-11-16Trailing whitespaceskrll
2021-11-14tpm@acpi: Require only one locality's worth of register space.riastradh
We don't actually use the registers for the other localities, and some older TPMs only have the first locality exposed via ACPI.
2021-11-14fix few typos in comments and log message.andvar
2021-11-14Use BITS(3) some more. Same nvme.o before and after.skrll
2021-11-12com: Add support for 32-bit IO accesses.jmcneill
2021-11-10s/endianess/endianness/msaitoh
2021-11-10s/desciptor/descriptor/ in comment.msaitoh
2021-11-10s/certian/certain/ in comment.msaitoh
2021-11-06s/allign/align/msaitoh
2021-11-06Fix typo in comment. s/notifcation/notification/msaitoh
2021-10-30For the DW APB busy bit workaround, only attempt to re-apply LCR and DLBjmcneill
settings for non-console devices. In the console case, simply clear the busy bit and continue. Fixes an interrupt storm observed on Macchiatobin.
2021-10-25fix "error: stack usage might be unbounded [-Werror=stack-usage=]" with ↵ryo
COPTS=-O0
2021-10-24fix various typos in comments, mainly copypasta.andvar
2021-10-21fix various typos, mainly in comments, but also in man pages and log messages.andvar
2021-10-21Restore 16-byte FIFO for ns16550a, accidentally lost in r1.344.jmcneill
Spotted by msaitoh. Thanks!
2021-10-20- microtime -> microuptimejmcneill
- avoid kpause with timeo=0
2021-10-15fix typos in comments.andvar
2021-10-14- use microtime instead of getmicrotime, suggested by thorpejjmcneill
- use ttclos for wchan even though we are sleeping in comopen now
2021-10-12Note that while sleeping (HUPCL), time passes.kre
Try to avoid the otherwise infinite loop.
2021-10-12Now Jason has made this build, avoid a 50+ yearkre
sleep to implement HUPCL.
2021-10-12Fix the build by adding 'sc_hup_pending' member to com_softc thatthorpej
was apparently forgotten.
2021-10-11com: speed up close with HUPCL setjmcneill
Instead of incurring a 1s penalty on close of a com device with HUPCL set, defer the sleep until the next open, and only sleep if necessary. This has a side effect of making `ttyflags -a` with a default install not pause for 1s for every non-console com device, which happens every boot via /etc/rc.d/ttys.
2021-10-11ahcisata: remove excessive delays from drive probe pathjmcneill
There are a handful of inexplicable 500ms delays introduced to the drive detect path in this driver, slowing boot. They can be re-enabled with options AHCISATA_EXTRA_DELAY, but should not be enabled for normal kernels. If a delay does need to be introduced in these places, the value should either be more carefully selected or the scope limited to hardware that requires the extra delay.
2021-10-11epget: Tiny clean up for 16-bit buses.rin
- (offset & 1) must be zero, since IP header is aligned. - Use bus_space_read_1(9) instead of bus_space_read_multi_1(9) for single-byte read.
2021-10-06s/acccess/access/andvar
2021-10-05PR kern/56403rin
Fix kernel freeze for wdc(4) variants with ATAC_CAP_NOIRQ: (1) Change ata_xfer_ops:c_poll from void to int function. When it returns ATAPOLL_AGAIN, let ata_xfer_start() iterate itself again. (2) Let wdc_ata_bio_poll() return ATAPOLL_AGAIN until ATA_ITSDONE is achieved. A similar change has been made for mvsata(4) (see mvsata_bio_poll()), and no functional changes for other devices. This is how the drivers worked before jdolecek-ncq branch was merged. Note that this changes are less likely to cause infinite recursion: (1) wdc_ata_bio_intr() called from wdc_ata_bio_poll() asserts ATA_ITSDONE in its error handling paths via wdc_ata_bio_done(). (2) Return value from c_start (= wdc_ata_bio_start()) is checked in ata_xfer_start(). Therefore, errors encountered in ata_xfer_ops:c_poll and c_start routines terminate the recursion for wdc(4). The situation is similar for mvsata(4). Still, there is a possibility where ata_xfer_start() takes long time to finish a normal operation. This can result in a delayed response for lower priority interrupts. But, I've never observed such a situation, even when heavy thrashing takes place for swap partition in wd(4). "Go ahead" by jdolecek@.
2021-09-21don't opencode kauth_cred_get()christos
2021-09-21don't opencode kauth_cred_get()christos
2021-09-19fix various typos in comments, messages and documentation.andvar
2021-09-17wdc_sataprobe: Fix lock leak when atabus_alloc_drives() fails.rin
2021-09-16fix typos in word "successful".andvar