Commit graph

40064 commits

Author SHA1 Message Date
Bjoern A. Zeeb
4e1153c4c3 net80211 / drivers: rename to IEEE80211_FC0_SUBTYPE_QOS_DATA
Going through the Frame (Sub)types the "QOS Data" being called "QOS"
scheme leads to a naming conflict for QOS_CFPOLL and QOS_CFACKPOLL
(if added).   Rename QOS* to QOS_DATA* to avoid the conflict and
to also better match the standards name.

No functional changes intended.

Sponsored by:	The FreeBSD Foundation
Reviewed by:	hselasky
Differential Revision: https://reviews.freebsd.org/D36409

(cherry picked from commit c9b7e9df18)
2022-09-21 11:46:46 +00:00
Bjoern A. Zeeb
226fef966a USB: add 2 (3) more device IDs for rtw88-usb devices and a quirk
Add DLink DWA-182 rev D1 and generic Realtek RTW8821CU entry found on
a Tenda U10 USB WLAN Stick, AC 650 Mbps (and possibly more devices).
The latter first presents itself as a CD device with Windows drivers
(useless on FreeBSD) first so add a quirk for that we get the wireless
device right away.

While here sort some other Realtek entries by DeviceID.

(cherry picked from commit b3b6a959c8)
2022-09-21 11:39:18 +00:00
Mathew McBride
eff466bc5e ds1307: add support for the EPSON RX-8035SA I2C RTC
The EPSON RX-8035SA I2C RTC has a similar time register layout to the
ds1307 family, with some minor differences in bit positions, polarity
and control registers.  Further generalize ds1307 to make it easier
to add more compatible chips and add support for the EPSON RX-8035SA.

Sponsored by:	Traverse Technologies
Differential Revision: https://reviews.freebsd.org/D35837

(cherry picked from commit 2486b446db)
2022-09-21 11:39:08 +00:00
Bjoern A. Zeeb
c147c214e6 XHCI: remove a self-assignment
x = x is an unneeded operation, remove it.
The value is read and assigned above for real.

(cherry picked from commit d3ef3c4cf8)
2022-09-21 11:39:03 +00:00
Andrew Turner
4a5202fdcf Merge the common parts of the SMCCC handlers
To simplify adding new handlers merge the common parts of the functions
used to call into the arm SMCCC firmware.

Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36297

(cherry picked from commit 48a7e53db7)
2022-09-21 10:45:52 +01:00
Pavel Timofeev
04c146afea hda: add patch for Framework laptop v2 headphone jack
Fix headphone (12th gen Intel laptops) and mic jack (both 11th and
12th gen) switching.

PR:		262579
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D36354

(cherry picked from commit d88dc1b0b9)
2022-09-19 20:45:40 -04:00
Kyle Evans
f248e70fc1 alc: force maximum payload size to 128 bytes for AR816X/AR817x
Otherwise, we'll trigger a DMA write error and render the device
unusable.

Obtained from:	OpenBSD (via Haiku, waddlesplash)

(cherry picked from commit 8cdb6b2dd7)
2022-09-18 01:26:39 -05:00
Gordon Bergling
d7bf515142 qlnxe(4): Fix a typo in a source code comment
- s/paramters/parameters/

(cherry picked from commit a5c1b9e332)
2022-09-18 08:04:41 +02:00
Gordon Bergling
c25281c5f6 safexcel: Fix a typo in a source code comment
- s/paramters/parameters/

(cherry picked from commit c86b1d9965)
2022-09-18 08:03:45 +02:00
Jiahao LI
9465af5ee2 if_dwc: fix reinitialization with changed MAC
It was observed that on RockPro64 hardware, the dwc interface is unable
to receive packets after being assigned a new MAC address. The fix is
simply to call mii_mediachg() before touching any device registers in
dwc_init_locked(). This is consistent with what the OpenBSD driver does.

PR:		263820
MFC after:	1 week

(cherry picked from commit 6501fcdc0a)
2022-09-16 14:34:48 -03:00
Gordon Bergling
9b2289cdb6 isp: Remove a double word in the driver manual
- s/to to/to/

(cherry picked from commit a5beac3992)
2022-09-13 07:22:58 +02:00
Gordon Bergling
aad7a40d63 ocs_fc(4): Remove double words in source code comments
- s/to to/to/

(cherry picked from commit eb2f7d9a5a)
2022-09-13 07:22:16 +02:00
Gordon Bergling
1849d0a8ab iscsi(4): Remove a double word in a source code comment
- s/to to/to/

(cherry picked from commit 13604a80f7)
2022-09-13 07:21:56 +02:00
Gordon Bergling
d036dd864f iwm(4): Remove a whitespace
In 9f4dc7fd97 I accidentally added a whitespace at the
end of the line. Remove it.

Reported by:	Jose Luis Duran (via github)
MFC with:	9f4dc7fd97

(cherry picked from commit 2543276943)
2022-09-12 09:39:18 +02:00
Gordon Bergling
e4b7a0bc18 bfe(4): Fix a typo in a comment
(cherry picked from commit f697fe65e6)
2022-09-12 09:29:57 +02:00
Gordon Bergling
3f4e44f38c usb(4): Bring back an accidently reverted grammar correction
- s/that that/that/

Reported by:	se, danfe
MFC after:	3 days

(cherry picked from commit dfd3777085)
2022-09-10 08:58:54 +02:00
Gordon Bergling
03725b8f7b Revert "usb: Remove a double words in a source code comments"
This reverts commit 8ca67bf127.

The original comment was correct; changing it loses a key part.

Reported by:	jrtc27

(cherry picked from commit 94466c432e)
2022-09-10 08:58:30 +02:00
Neel Chauhan
58d0f00f15 snd_hda: Remove duplicate erroneous HDA_INTEL_ALLKPS line
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D36483

(cherry picked from commit c4e591c9ab)
2022-09-09 18:07:32 -07:00
Neel Chauhan
08c0674622 snd_hda: Add the full Intel AlderLake HD Audio PCI IDs
This is based off the Linux file sound/hda/intel-dsp-config.c.

Reviewed by:		imp (src)
Tested on:		HP Spectre x360 16-f0023dx
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D36476

(cherry picked from commit 22ecfc580b)
2022-09-09 18:07:20 -07:00
Kornel Dulęba
cbe3966fb9 tpm: Fix entropy harvesting logic
Use a taskqueue instead of a callout.
Callout functions mustn't sleep, where as the TPM driver
uses a sx lock in order to serialize accesses to the device.
Since the entropy harvesting feature is not enabled by default,
this commit should not bring any functional changes to the GENERIC
kernel.

Approved by:	mw(mentor)
Sponsored by:	Stormshield
Obtained from:	Semihalf
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D36412

(cherry picked from commit e23ad9c4ba)
2022-09-09 14:35:16 +02:00
Gordon Bergling
14761188db iwn(4): Correct a typo in a kernel error message
- s/settting/setting/

(cherry picked from commit dc79640e92)
2022-09-09 07:19:58 +02:00
Gordon Bergling
e4aabf9a94 mlx5en(4): Correct a typo in a kernel error message
- s/ouput/output

(cherry picked from commit e1a40dd294)
2022-09-08 10:16:46 +02:00
Alexander Motin
d62f7b1fb1 hwpmc: Avoid touching MSR_DEBUGCTLMSR inside VMs.
At least KVM in Proxmox seems not happy about it.  Just to be safe
block it for all VMs, since it should just improve profile accuracy.

MFC after:	1 week

(cherry picked from commit 4e679d8aea)
2022-09-07 20:30:30 -04:00
Gordon Bergling
f25bd922c9 hyperv: Remove a double word in a source code comment
- s/the the/the/

(cherry picked from commit 26d6e38604)
2022-09-07 09:33:44 +02:00
Gordon Bergling
b4f99603e1 usb: Remove a double words in a source code comments
- s/that that/that/

(cherry picked from commit 8ca67bf127)
2022-09-07 09:33:19 +02:00
Gordon Bergling
a22260e12d etherswitch(4): Remove a double word in a source code comment
- s/the the/the/

(cherry picked from commit 8cf905e5fa)
2022-09-07 09:33:04 +02:00
Gordon Bergling
61037638f9 vmci(4): Correct some typos in source code comments
- s/occured/occurred/

(cherry picked from commit f2e13c27bb)
2022-09-07 09:32:25 +02:00
Gordon Bergling
b51b0cce30 mps(4): Remove a double word in a source code comment
- s/the the/the/

(cherry picked from commit d6f9a3c0a8)
2022-09-07 09:31:43 +02:00
Gordon Bergling
100fede3d3 mpr(4): Remove a double word in a source code comment
- s/the the/the/

(cherry picked from commit 2f9de90b22)
2022-09-07 09:31:30 +02:00
Gordon Bergling
dc97f2f319 netmap(4): Remove a double word in a source code comment
- s/the the/the/

(cherry picked from commit 591a9b5ea3)
2022-09-07 09:30:30 +02:00
Gordon Bergling
96ab24fc6a bxe(4): Grammar fix for a source code comment
- s/that that/that the/

(cherry picked from commit 6e9e7b0583)
2022-09-07 09:30:17 +02:00
Gordon Bergling
be0601da32 bhnd(4): Correct some typos in source code comments
- s/occured/occurred/

While here, fix some whitespace issues.

(cherry picked from commit 88cdf609e4)
2022-09-07 09:29:32 +02:00
Gordon Bergling
226fabedb5 hyperv: Fix a typo in a source code comment
- s/Unsupport/Unsupported/

(cherry picked from commit 630c517745)
2022-09-07 09:25:40 +02:00
Hans Petter Selasky
56caa9e82b umodem(4): Clear stall at every open.
Some controllers like the XHCI(4) loose track of the data toggle value when
USB receive transfers are cancelled at close. This in turn can lead to to
data loss after the next open.

To avoid data loss, make sure both the receive and transmit data toggles
get reset, before trying to read or write any data.

Differential Revision:	https://reviews.freebsd.org/D36391
Submitted by:		Dave Baukus <daveb@spectralogic.com>
Sponsored by:	NVIDIA Networking

(cherry picked from commit 40e43b056d)
2022-09-06 10:43:17 +02:00
Dave Baukus
961a016eba ucom(4): Make sure the open routine is executed synchronously.
To avoid issues starting any USB transfers before the open
function is complete.

Differential Revision:	https://reviews.freebsd.org/D36391
Sponsored by:	NVIDIA Networking

(cherry picked from commit cbc5350359)
2022-09-06 10:43:17 +02:00
Gordon Bergling
2f5e4a3a19 malo(4): Fix a typo in asource code comment
- s/overriden/overridden/

(cherry picked from commit b55a0762fc)
2022-09-06 07:42:05 +02:00
Gordon Bergling
96174b36be ltc430x(4): Fix a typo in a source code comment
- s/overriden/overridden/

(cherry picked from commit b0e86eed27)
2022-09-06 07:41:10 +02:00
Gordon Bergling
d8422093f0 bge(4): Fix a typo in a source code comment
- s/overriden/overridden/

(cherry picked from commit de47bf0d52)
2022-09-06 07:40:55 +02:00
Gordon Bergling
17b417ef0e ath(4): Fix two typos in source code comments
- s/overriden/overridden/

(cherry picked from commit f9a9fe46dc)
2022-09-06 07:40:41 +02:00
Gordon Bergling
819477c897 pci(4): Fix a typo in asource code comment
- s/overriden/overridden/

(cherry picked from commit 6b49770088)
2022-09-06 07:40:28 +02:00
Gordon Bergling
797143d8fe isp(4): Fix two typos in source code comments
- s/overriden/overridden/

(cherry picked from commit 310d144a83)
2022-09-06 07:40:11 +02:00
Gordon Bergling
fe3660cf1f bce(4): Fix a typo in a source code comment
- s/overriden/overridden/

(cherry picked from commit ddf38e0204)
2022-09-06 07:39:43 +02:00
Gordon Bergling
aceb5fff0a impi(4): Fix two typos in source code comments
- s/overriden/overridden/

(cherry picked from commit 05e1ac3cbf)
2022-09-06 07:39:13 +02:00
Gordon Bergling
f3547e8452 bxe(4): Fix two typos in source code comments
- s/overriden/overridden/

(cherry picked from commit f93ef3ff06)
2022-09-06 07:38:57 +02:00
Gordon Bergling
c09b9ae468 sound(4): Fix a typo in asource code comment
- s/overriden/overridden/

(cherry picked from commit ac34f366cc)
2022-09-06 07:38:41 +02:00
Gordon Bergling
1c11509479 sdhci(4): Fix a typo in asource code comment
- s/overriden/overridden/

(cherry picked from commit cc280cac34)
2022-09-06 07:38:14 +02:00
Gordon Bergling
04f08f25b9 usb: Fix two typos in source code comments
- s/overriden/overridden/

(cherry picked from commit d0ddb5aaca)
2022-09-06 07:37:58 +02:00
Hans Petter Selasky
3a33579959 usb(4): Quirk for non-compliant USB devices.
Some non-compliant USB devices do not implement the
clear endpoint halt feature. Silently ignore such
failures, when they at least responded correctly
passing up a valid STALL PID packet.

Tested by:	Doug Ambrisko <ambrisko@ambrisko.com>
Sponsored by:	NVIDIA Networking

(cherry picked from commit 4e2d8cd3e2)
2022-09-03 12:22:07 +02:00
Hans Petter Selasky
89d98b9b00 u3g(4): Add more USB IDs.
Submitted by:	malavon <benny.goemans@gmail.com>
PR:		263700
Sponsored by:	NVIDIA Networking

(cherry picked from commit 0b01a13b8a)
2022-09-02 11:07:01 +02:00
Kornel Dulęba
108b6eb670 neta: Fix MTU change sequence
The IFF_DRV_RUNNING flag is used to see if the interface needs
to be temporarily brought down during MTU change sequence.
The problem here is that this flag is cleared in mvneta_stop_locked,
resulting in the reinitialization logic never being executed after
MTU has been changed.
Fix that by saving the flag value before the interface is brought down.

Reported by:	Jérôme Tomczyk <jerome.tomczyk@stormshield.eu>
Approved by:	mw(mentor)
Obtained from:	Semihalf
Sponsored by:	Stormshield
MFC after:	2 weeks

(cherry picked from commit 97ecdc00ac)
2022-09-01 09:14:43 +02:00