Commit graph

40087 commits

Author SHA1 Message Date
Warner Losh
6c839ab461 ppc_detect_fifo: eliminate write only variable cc
Sponsored by:		Netflix

(cherry picked from commit 94885fbd04)
2022-10-01 22:25:53 -06:00
Warner Losh
ea9d26ee8a ppi_probe: eliminate unused variable ppi
Sponsored by:		Netflix

(cherry picked from commit de80fb0ace)
2022-10-01 22:25:53 -06:00
Warner Losh
c69e5d9b3e Mark cfg as __unused to avoid ifdef soup
Sponsored by:		Netflix

(cherry picked from commit 09b966ee7c)
2022-10-01 22:25:53 -06:00
Warner Losh
1ec294e4e3 mxge_rss_ethp_z8e_fw_modevent: eliminate write only variable parent
Sponsored by:		Netflix

(cherry picked from commit 273676a44c)
2022-10-01 22:25:53 -06:00
Warner Losh
521300dd93 mxge_rss_eth_z8e_fw_modevent: eliminate write only variable parent
Sponsored by:		Netflix

(cherry picked from commit 5f136a4c01)
2022-10-01 22:25:53 -06:00
Warner Losh
0a21b6d3fb mxge_ethp_z8e_fw_modevent: eliminate write only variable parent
Sponsored by:		Netflix

(cherry picked from commit 886bc93da8)
2022-10-01 22:25:53 -06:00
Warner Losh
858b29c7f0 mxge_eth_z8e_fw_modevent: eliminate write only variable parent
Sponsored by:		Netflix

(cherry picked from commit 498276b4b4)
2022-10-01 22:25:53 -06:00
Warner Losh
155612c066 mge: eliminate write only variables ifp, sc and error
Sponsored by:		Netflix

(cherry picked from commit f8967810f5)
2022-10-01 22:25:53 -06:00
Warner Losh
99558548c4 rx8803_settime: remove write only variable bus
Sponsored by:		Netflix

(cherry picked from commit 875145ffd4)
2022-10-01 22:25:52 -06:00
Warner Losh
e490a1c8c5 tca6416: remove write only sc
Sponsored by:		Netflix

(cherry picked from commit 22127c7c1b)
2022-10-01 22:25:52 -06:00
Warner Losh
95cde8b10b pmc_save_user_callchain: eliminate write only td variable
Sponsored by:		Netflix

(cherry picked from commit 6ca6b8ea52)
2022-10-01 22:25:52 -06:00
Warner Losh
d4706e1fdf hpen_battery_strenght_cb: eliminate write only data variable
Sponsored by:		Netflix

(cherry picked from commit 92ec9782ac)
2022-10-01 22:25:52 -06:00
Warner Losh
0680f1bf4a mx25l_task: eliminate dev write only variable
Sponsored by:		Netflix

(cherry picked from commit edcced8ab7)
2022-10-01 22:25:52 -06:00
Warner Losh
33491120e5 fd_probe: only define unit on x86, other platforms don't use this code
Sponsored by:		Netflix

(cherry picked from commit 05d3c5fd18)
2022-10-01 22:25:52 -06:00
Warner Losh
e2bce86f48 e6000sw_set_atustat: eliminate write only ret variable
Sponsored by:		Netflix

(cherry picked from commit 9a2e6ca6ef)
2022-10-01 22:25:52 -06:00
Warner Losh
a0860f9781 cyapa_raw_input: elimmminate write only k variable
Sponsored by:		Netflix

(cherry picked from commit 3ca3bb576b)
2022-10-01 22:25:52 -06:00
Warner Losh
318b497ab9 bwn_lo_measure_gain_values: eliminate write only trsw_rx variable
Sponsored by:		Netflix

(cherry picked from commit a9e022d3d7)
2022-10-01 22:25:52 -06:00
Warner Losh
3fb60281e1 bhnd_nvram_store_export_child: eliminate num_props write only variable
Sponsored by:		Netflix

(cherry picked from commit 87a4328651)
2022-10-01 22:25:51 -06:00
Warner Losh
cb26d2021b bhnd_pmu_sdiod_drive_strength_init: eliminate write only intr_val variable
Sponsored by:		Netflix

(cherry picked from commit 5466363900)
2022-10-01 22:25:51 -06:00
Warner Losh
ddf236422d bhnd_pwrctl_attach: eliminate write only bus variable
Sponsored by:		Netflix

(cherry picked from commit 9af048a0b1)
2022-10-01 22:25:51 -06:00
Konstantin Belousov
ff1993be35 snp(4): implement detach
PR:	257964

(cherry picked from commit 550e01c552)
2022-10-02 03:51:47 +03:00
Konstantin Belousov
40860e6bf2 snp(4): properly report detached/revoked ttys
PR:	257964

(cherry picked from commit bb4be76cf3)
2022-10-02 03:51:47 +03:00
Hubert Mazur
7b8bb67135 igc: Don't start in promiscious mode by default
The igc driver always sets the promiscious mode during initialization,
ignoring what is set in ifp.
Fix this by checking the interface flags and setting mode appropriately.

Reviewed by:	grehan
Obtained from:	Semihalf
Sponsored by:	Stormshield
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D36591

(cherry picked from commit 55760984d5)
2022-09-26 09:33:58 +02:00
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