summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
2021-07-04store provider ID in umb(4), and display it in ifconfig. OK stsp deraadtStuart Henderson
Previously only the provider's display name was used. The text used depends on how the SIM is configured and not just on the network in use (for example, an MVNO SIM on another network will often display the MVNO's name rather than that of the underlying network). I have a SIM that roams to any network in my country - whichever network it roams onto, the display name is the same, so you can't tell which network you're really using. By printing the provider ID (in GSM-land this is MCC+MNC) it's easy to lookup and check this. As the provider was printed on the ifconfig line also showing subscriber-id and ICCID it was already a bit long, and adding the provider-id there is a bit too much, so move it to the output line showing APN, now looking like : subscriber-id 2400xxxxxxxxxxx ICC-id 8946203xxxxxxxxxxxxx : device EM7455 IMEI 01458xxxxxxxxxx firmware SWI9X30C_02.24.0 : APN key provider Tele2 IoT provider-id 23420
2021-05-31Change the behavior of the UVIDEO_FLAG_REATTACH flag to attach anMarcus Glocker
unsupported device to uvideo(4), but not to video(1), instead of just keeping it unmatched. Also uvideo(4) will print a message about the device not being supported. ok mpi@
2021-05-18regenKevin Lo
2021-05-18Add support for Quectel EC25.Kevin Lo
To issue an AT command (AT+QCFG="usbnet",2) to change to MBIM mode. Tested by Shawn Chiou on rpi4; "of course" deraadt@
2021-05-18Add pre-DMA-write barrier after data is stored to memoryAlexandre Ratchov
There's already such a barrier in usbd_transfer() code-path, but this one is called when the frames are queued to the HC ring. The audio samples are stored in memory by userland later, *after* the frames are scheduled (but before they are sent on the wire) so a barrier is needed there. Without this change, the data produced by userland may stay in the CPU caches and is not "seen" by the HC's DMA engine, in turn the device plays noise on certain arm64 machines (RPI4, for instance). Fix mostly from Luca Castagnini with few tweaks from me. OK patrick@
2021-05-11Temporarily release the mutex while calling sensor_task_register() as itanton
might end up sleeping in malloc(). This can only happen if uhidpp is the first one calling the aforementioned routine which causes the sensors task queue to be allocated. Thanks to Justin Yang <linuxjustin at gmail dot com> for the report.
2021-05-01Retire OpenBSD/sgi.Visa Hankala
OK deraadt@
2021-04-25Make urtwn(4) attach to 'ASUS USB-N10 Nano' devices.Stefan Sperling
Patch by Jan Vlach.
2021-04-25regenStefan Sperling
2021-04-25Add USB product ID for ASUS RTL8188EUS. Patch by Jan Vlach.Stefan Sperling
2021-04-22Mark umb(4) as network device instead of a generic one. This also makesPatrick Wildt
it show up with the proper category in hotplug scripts. From Tilo Stritzky ok groth@ sthen@
2021-04-15Switch athn(4) 802.11n Tx rate adaptation from MiRA to RA.Stefan Sperling
Tests: AR5418: Uwe Werler AR9280: kn, jmatthew, Lauri Tirkkonen, Scott Bennett, Mikolaj Kucharski AR9285: kevlo, trondd, myself ok deraadt@
2021-04-15Match Linux path in r8153_set_rx_early_size().Kevin Lo
The rx early size is used to reduce the loading of CPU by letting a transfer contain more data to reduce the number of transfers. ok deraadt@
2021-04-07back out r1.22, ie, don't blindly trim the FCS on rxed packets.David Gwynne
there's been multiple reports of severely reduced throughput using ure(4) since 1.22 was committed, but all the gear we have to play with is fine with it. i'm backing the diff out until we can get a better handle on the problem discussed with and ok kevlo@ jmatthew@
2021-04-05regenMarcus Glocker
2021-04-05Add a new quirk flag to not attach video devices which aren't supported byMarcus Glocker
uvideo(4) currently, like the Chicony Integrated IR Camera. This is especially helpful when you have two video devices of which the unsupported one is attached first as reported by martijn@. OK gnezdo@
2021-04-05ugold(4): add support for TEMPerGold & more TEMPerHUM devicesLandry Breuil
originally from mlarkin@ for TEMPerGold_V3.1 (only a temperature sensor), i just added TEMPerX variants to the mix - all those devices share the same usb product id (boo), so differentiate them on the firmware string... even if the device is labelled as TEMPerHUM and has a blue TXT button on it, its firmware reports itself as TEMPerX_V3.3. ok jung@ sthen@ mlarkin@
2021-04-05syncLandry Breuil
2021-04-05Add 0x413d:0x2107 for various PCSensors TEMPer devicesLandry Breuil
2021-04-01Push kernel lock down to umb_rtrequest().mvs
We are going to unlock PF_ROUTE sockets. This means `if_rtrequest' handler will be performed without kernel lock. umb_rtrequest() calls umb_send_inet_proposal() which touches kernel lock protected `ipv{4,6}dns' array. Also umb_rtrequest() is the only handler which requires kernel lock to be held. So push the lock down to umb_rtrequest() instead of grab it around `if_rtrequest' call. This hunk was commited separately for decreases PF_ROUTE sockets unlocking diff. ok gerhard@ deraadt@
2021-03-31syncStuart Henderson
2021-03-31Remove redundant "HUAWEI Mobile" in usbdevs strings, mention radioStuart Henderson
technology where known. ok deraadt
2021-03-30fix typos in commentsStuart Henderson
2021-03-30Some cards announce support for the NTB16 format, but that support does notPatrick Wildt
work. Hence, add support for NTB32 in the transmit path. We already have support for NTB32 in the receive path. We detect the supported format on boot and can then decide on transmit which format to use. From ehrhardt@ with gerhard@ Tested by jan@ ok sthen@
2021-03-30Some umb(4) devices require the NDP pointer behind the NDP datagram.Patrick Wildt
From gerhard@ "broadly OK" sthen@
2021-03-29combine umb_products and umb_fccauth_devs into one umb_quirks tableStuart Henderson
ok gerhard@
2021-03-28Add vid/pid table to umb(4) allowing matching to alternate configStuart Henderson
Some devices present multiple configurations and the one chosen by default is not always usable - for example, some have an CDC ECM config that does not work with our cdce(4) - allow overriding to a specific config in those cases. From gerhard@ with tweaks to comments by me, ok patrick@
2021-03-28syncStuart Henderson
2021-03-28add pid for Dell DW5821e and HUAWEI ME906s LTE, ok patrick@Stuart Henderson
2021-03-27trim the FCS off Ethernet packets before sending them up the stack.David Gwynne
Jurjen Oskam on tech@ found that ure in a veb caused these extra fcs bytes to be transmitted by other veb members. the extra bytes aren't a problem usually because our network stack ignores them if they're present, eg, the ip stack reads an ip packet length and trims bytes in an mbuf if there's more. bridge(4) masked this problem because it always parses IP packets going over the bridge and trims them like the IP stack before pushing them out another port. veb(4) generally just moves packets around based on the Ethernet header, by default it doesn't look too deeply into packets, which is why this issue popped out. it is more correct for ure to just not pass the fcs bytes up. ok jmatthew@ kevlo@
2021-03-24syncStuart Henderson
2021-03-24remove vendor name (Dell) repeated in product nameStuart Henderson
2021-03-24Define a USB quirk for devices that need to keep their pipes open atJoshua Stein
all times, before the device is enabled and after the device is disabled by wscons. This was originally needed by umt for the Microsoft Surface Type Cover to avoid it resetting (or at least detaching and reattaching) when the touchpad was touched while at the console. A similar problem occurs with the Pinebook Pro's keyboard when switching from X to the console due to the touchpad getting disabled, so add it to ums as well. with and ok kurt
2021-03-24regenJoshua Stein
2021-03-24add HAILUCK KeyboardJoshua Stein
from kurt
2021-03-18In revision 1.91 of uhidev.c, jcs@ made sure to only detach devicesanton
claiming multiple report ids once. This allows uhidpp to piggy back on the same functionality making uhidev_unset_report_dev() redundant.
2021-03-17When devices have claimed multiple report ids, only detach and sendJoshua Stein
DVACT_DEACTIVATE to them once when walking sc_subdevs. Fixes a regression reported and tested by Edd Barrett. Input from and previous version ok anton.
2021-03-08Add another Type Cover deviceJoshua Stein
from Fredrik Engberg
2021-03-08regenJoshua Stein
2021-03-08Add Surface Pro Type CoverJoshua Stein
from Fredrik Engberg
2021-03-08Allow uhidev child devices to claim selective report idsJoshua Stein
There may be multiple matching devices on a single uhidev device but the first device that responds to UHIDEV_CLAIM_ALLREPORTID will block the others from attaching. Change this to UHIDEV_CLAIM_MULTIPLE_REPORTID and require any devices wanting some/all report ids to fill in the claimed array in uhidev_attach_arg with just the reports it needs. uhidev can then run match routines for other drivers with the available report ids. ok anton
2021-02-27regenJonathan Gray
2021-02-27sort and fix RTL8713 idJonathan Gray
2021-02-25we don't have to cast to caddr_t when calling m_copydata anymore.David Gwynne
the first cut of this diff was made with coccinelle using this spatch: @rule@ type caddr_t; expression m, off, len, cp; @@ -m_copydata(m, off, len, (caddr_t)cp) +m_copydata(m, off, len, cp) i had fix it's opinionated idea of formatting by hand though, so i'm not sure it was worth it. ok deraadt@ bluhm@
2021-02-24remove unused usbd_get_device_string()Jonathan Gray
ok mpi@
2021-02-24remove unused usbdi functionsJonathan Gray
ok mpi@
2021-02-24remove unused xhci_cmd_evaluate_ctx()Jonathan Gray
ok mpi@
2021-02-16Poll battery sensors less frequently. The previous period was quiteanton
arbitrary and inspired by other USB drivers.
2021-02-16Trim uhidpp_device_features() by extracting two pure protocol functions.anton
2021-02-15Back-out USB data toggle fix for HID devices, since we received multipleMarcus Glocker
reports about broken devices, e.g. for ukbd(4) and fido(4). ok mpi@