aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* iichid(4): Add support for ASUS C300 chromebook.Vladimir Kondratyev2022-03-021-16/+31
| | | | | | | | | Some chromebooks e.g. ASUS C300 have no valid _CID and _DSM ACPI objects required for device identification and HID descriptor address detection. Add quirk to allow required data to be hardcoded in to driver. MFC after: 2 month
* iichid(4): Implement I2CRDWR command in hid_ioctl methodVladimir Kondratyev2022-03-021-0/+19
| | | | | | | | This command is intended to be compatible with I2CRDWR ioctl. It is required to perform arbitrary I2C transfers by device drivers which can switch between HID and native non-HID modes. MFC after: 2 month
* bcm5974: wsp(4) driver version with HID attachment.Vladimir Kondratyev2022-03-021-0/+794
| | | | | MFC after: 2 month Tested by: Greg V (Type 4 touchpads)
* usbhid(4): Implement USB_REQUEST command in hid_ioctl methodVladimir Kondratyev2022-03-021-0/+31
| | | | | | | | This command is intended to be compatible with USB_REQUEST ioctl. It is required to perform arbitrary control endpoint requests by device drivers which can switch between HID and native non-HID modes. MFC after: 2 month
* hid: Add hid_ioctl method to HID interfaceVladimir Kondratyev2022-03-024-0/+18
| | | | | | | | | | | hid_ioctl method executes arbitrary transport backend command. Format of the command is defined by hardware transport driver. It is intended to assist HID device drivers to execute non-HID commands on hybrid devices like Elan and Apple touchpads which can be switched between HID and proprietary modes. MFC after: 2 month
* ig4(4): Add PNP info for ACPI attachmentVladimir Kondratyev2022-03-021-0/+1
| | | | MFC after: 2 month
* cxgbe: Move page pods KTR traces under VERBOSE_TRACES.John Baldwin2022-03-021-0/+4
|
* hwpmc_arm64_md.c: Correct architecture name in assertions.Brett Gutstein2022-03-021-2/+2
| | | | Obtained from: CheriBSD
* cxgbe(4): Dump some more debug registers in cim_dump_regs.Navdeep Parhar2022-03-021-1/+8
| | | | | MFC after: 3 days Sponsored by: Chelsio Communications
* vt_vga: Correct "plane" spellingEd Maste2022-03-021-19/+19
| | | | | | | I suspect the variable names and comments were accidentally French. MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Add USB UEFI locator supportWarner Losh2022-03-013-2/+35
| | | | | | Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D32788
* acpi: Allow matching based on locatorsWarner Losh2022-03-011-0/+5
| | | | | | | | | Allow wiring of unit numbers based any of the standard locators that match. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D32787
* acpi hints: Abstract out acpi_hint_device_matches_resourcesWarner Losh2022-03-011-51/+71
| | | | | | | | | | Abstract out acpi_hint_device_matches_resources from acpi_hint_device_unit to simplify that code. Continue matching like we've always matched: no functional change. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D32786
* acpi_hint_device_unit: matches is a bool, make it oneWarner Losh2022-03-011-8/+9
| | | | | | | | | "matches" is used as a bool and doesn't need to count anything. Convert it to a bool. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D32785
* pci: Add arbitrary locator support to pci.Warner Losh2022-03-011-1/+8
| | | | | | | | | If the pciX:Y:Z and pciW:X:Y:Z 'at' locations don't work, allow try the LOCATOR:PATH syntax. Use dev_wired_cache to generically look them up. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D32784
* pci: switch logic a littleWarner Losh2022-03-011-4/+4
| | | | | | | | | | If we find a match, then assign it. Flip the logic in the if and assign the unit rather than continuing if it doesn't match. Will make it easier to expand to other matching schemes. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D32779
* Add UEFI locator for bus_get_device_path, pci acpiWarner Losh2022-03-014-3/+69
| | | | | | | | | Add a UEFI locator type. It prints the UEFI device names for a FreeBSD device_t name. It works with PCI and ACPI device nodes. USB forthcoming. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D32749
* bus: Add ACPI locator supportWarner Losh2022-03-016-0/+64
| | | | | | | | | | | Add support for printing ACPI paths. This is a bit of a degenerate case for this interface since it's always just the device handle if the device has one. But it is illustrtive of how to do this for a few nodes in the tree. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D32748
* bwn: Remove useless variableWarner Losh2022-02-281-3/+3
| | | | | | type is a write-only variable. Eliminate it. Sponsored by: Netflix
* bnxt: Remove dead write to cp_ring_idWarner Losh2022-02-281-2/+0
| | | | | | | Since this is read from memory, reading it and then ignoring it is dead code... Sponsored by: Netflix
* axgbe_setup_sysctl is a nop, remove it and the call to it.Warner Losh2022-02-281-14/+0
| | | | | | Should we need something like this in the future, we can add it back. Sponsored by: Netflix
* cdce: Fix a -Wunused-but-set-variable warningMark Johnston2022-02-281-2/+1
| | | | MFC after: 1 week
* axe: Fix a -Wunused-but-set-variable warningMark Johnston2022-02-281-3/+0
| | | | MFC after: 1 week
* pci: Fix a -Wunused-but-set-variable warningMark Johnston2022-02-281-2/+0
| | | | MFC after: 1 week
* axge: Fix a -Wunused-but-set-variable warningMark Johnston2022-02-281-2/+0
| | | | MFC after: 1 week
* bhnd: Fix some -Wunused-but-set-variable warningsMark Johnston2022-02-285-18/+0
| | | | MFC after: 1 week
* iwm: Fix -Wunused-but-set-variable warningsMark Johnston2022-02-281-6/+3
| | | | MFC after: 1 week
* Default to always accepting the PHY that's present. Linux didScott Long2022-02-271-3/+1
| | | | | | | | something similar a while back, and there are devices in the wild that otherwise won't attach. This patch is temporary until the PHY code is further cleared up. Obtained from: grehan
* Fix "set but not used" in the mrsas driver. Remove dead code.Scott Long2022-02-261-2/+1
|
* Fix "set but not used" in the mvs driver. Remove dead code.Scott Long2022-02-261-2/+0
|
* Fix "set but not used" in the bfe driver. Remove dead code.Scott Long2022-02-261-2/+1
|
* Fix "set but not used" in the siis driver.Scott Long2022-02-261-2/+1
|
* The TWE driver should have been marked with gone_in for FreeBSD 13.x,Scott Long2022-02-261-0/+2
| | | | | | but was missed. Mark it for gone_in 14.0. The hardware hasn't been produced or supported in over 20 years, and even back then it was known to be electrically unreliable and prone to catastrophic failure.
* Fix "set but not used" in twe.Scott Long2022-02-261-2/+8
|
* Fix "set but not used" for real in the ciss driver.Scott Long2022-02-261-8/+3
|
* Fix "set but not used" in the ips driver. Dead code.Scott Long2022-02-261-3/+1
|
* Fix "set but not used" in aic7xxx/aic79xx. The variables were deadScott Long2022-02-262-15/+0
| | | | code.
* Fix "set but not used" in smartpqi. The PCI_MEM macros don't require aScott Long2022-02-262-2/+2
| | | | | | | physical/absolute address in FreeBSD, but it looks like the calling code might be somewhat portable to other OS's that do require this. Therefore, set the variables to __unused instead of removing the code entirely.
* iscsi: per-session timeouts and rapid teardown of session on reconnectRichard Scheffenegger2022-02-253-5/+43
| | | | | | | | | | Add per-Session configurable ping (SCSI NOP) and login timeouts. Remove the torn down, old iSCSI session quickly, when performing a reconnect. Reviewed By: trasz Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D34198
* usb(4): Automagically apply all quirks for USB mass storage devices.Hans Petter Selasky2022-02-244-53/+96
| | | | | | | | | | | | | | | | | | | | | | | | Currently there are five quirks the USB stack tries to automagically detect: - UQ_MSC_NO_PREVENT_ALLOW - UQ_MSC_NO_SYNC_CACHE - UQ_MSC_NO_TEST_UNIT_READY - UQ_MSC_NO_GETMAXLUN - UQ_MSC_NO_START_STOP If any of the quirks above are set, no further quirks will be probed. If any of the USB mass storage tests fail, the USB device is re-enumerated as a last resort to clear any error states from the device. Then the USB stack will try to probe and attach the umass<N> device passing the detected quirks. While at it give more details in dmesg about what is going on. Tested by: several Submitted by: Idwer Vollering <vidwer_fbsdbugs@gmail.com> Differential Revision: https://reviews.freebsd.org/D30919 MFC after: 1 week Sponsored by: NVIDIA Networking
* vt: fix double-click word selection for last word on lineEd Maste2022-02-231-0/+4
| | | | | | | | | | | | | Previously when double-clicking on the last word on a line we would select from the beginning of the word to the cursor position, because we searched forward for a space character to find the end of a word. Now, use the end of the line if we do not find a space. PR: 261553 Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34339
* vt: whitespace and style(9) updatesEd Maste2022-02-221-6/+6
|
* mps/mpr: Add missing newlines in error messages.Alexander Motin2022-02-223-43/+43
| | | | MFC after: 1 week
* vt: fix double-click word selection for first word on lineEd Maste2022-02-221-0/+3
| | | | | | | | | | | | | | Previously when double-clicking on the first word on a line we would select from the cursor position to the end of the word, not from the beginning of the line. This is because we searched backward for a space to mark the beginning of a word. Now, use the beginning of the line if we do not find a space. PR: 261553 Reported by: Stefan B. MFC after: 1 week Sponsored by: The FreeBSD Foundation
* dwc: Support phy mode MIIEmmanuel Vadot2022-02-222-4/+8
| | | | | | | | | | Some board use dwc phy in MII mode, so do not fail to attach if this is the case. Only rockchip code uses the phy mode to program some custom syscon register. PR: 260848 MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG
* dwc: Release resources when attach failsEmmanuel Vadot2022-02-221-2/+9
| | | | | | PR: 259282 MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG
* sdhci_fsl_fdt: Add voltage switching through sysconHubert Mazur2022-02-221-9/+90
| | | | | | | | | | | | Some SoCs does not have a fixed regulator to handle voltage switching automatically. Add support for voltage switching through syscon register when necessary. Add new errata flag indicating missing regulator. Apply errata to SoCs, which are known to be affected, i.e. LS1046 and LS1012. Obtained from: Semihalf Sponsored by: Alstom Group Differential revision: https://reviews.freebsd.org/D34029
* sdhci_fsl_fdt: Apply errata for LX2160AHubert Mazur2022-02-221-3/+20
| | | | | | | | | | | | LX2160A is affected by two erratum regarding SDHCI. However this board has generic compat string in DTS for SDHCI which means erratum cannot be simply applied. Compare compat string from "/" path with LX2160A compat string when attaching device and apply erratum. Reviewed by: mmel, imp Obtained from: Semihalf Sponsored by: Alstom Group Differential revision: https://reviews.freebsd.org/D34028
* sdhci_fsl_fdt: Fix tuning codeKornel Duleba2022-02-221-214/+209
| | | | | | | | | | | | | | | | | | | | - Some of the register writes were already done in the generic tuning code. Remove them. - Increase the polling timeout. The previous value is probably fine, but since timeouts are treated as fatal errors increasing it to 200ms won't hurt. - Rework the HS400 switching code. Make sure that the switch happens at the right time. Reset the DLL0 block. We need to do that if u-boot has previously configured the controller in HS400 mode. - Check current timing before tuning. The tuning devmethod is always called, even for timings that don't require the tuning procedure. - Rework software tuning routine code. Use inner formula for clock divider calculation, as previous one was incorrect. - Implement custom re-tune procedure. Co-authored-by: Hubert Mazur <hum@semihalf.com> Obtained from: Semihalf Sponsored by: Alstom Group Differential Revision: https://reviews.freebsd.org/D34027
* sdhci_fsl_fdt: Fix pulse width errata applicationKornel Duleba2022-02-221-10/+10
| | | | | | | | | | The errata has to be applied every time after SDHCI_RESET_ALL is done. Move it from attach to the custom reset routine. Reviewed by: wma, mmel Obtained from: Semihalf Sponsored by: Alstom Group Differential Revision: https://reviews.freebsd.org/D33981