Hans Petter Selasky
1bac849806
vt(4): Make sure vt_switch_timer() has a sleepable context.
...
Fixes the following panic backtrace:
panic()
usbhid_sync_xfer()
usbhid_set_report()
hid_set_report()
hidbus_write()
hid_write()
hkbd_set_leds()
hkbd_ioctl_locked()
hkbd_ioctl_locked()
hkbd_ioctl()
kbdmux_ioctl()
vt_window_switch()
vt_switch_timer()
Differential Revision: https://reviews.freebsd.org/D36715
Sponsored by: NVIDIA Networking
(cherry picked from commit 2cce9aa078 )
2022-10-04 16:40:46 +02:00
Warner Losh
b3ace70370
xl_attach: eliminate write only variable unit
...
Sponsored by: Netflix
(cherry picked from commit c972f2c065 )
2022-10-01 22:25:56 -06:00
Warner Losh
10a41dd708
vtpci_legacy_register_msix: eliminate write only variable dev
...
Sponsored by: Netflix
(cherry picked from commit 76e9675663 )
2022-10-01 22:25:56 -06:00
Warner Losh
6bdaf5917f
ustorage_fs_verify: eliminate write only variables file_offset and file_offset
...
Sponsored by: Netflix
(cherry picked from commit 7a1bef40f1 )
2022-10-01 22:25:56 -06:00
Warner Losh
1e372ec9e1
cp2112iic_intr_write_callback: eliminate write only variable psc
...
Sponsored by: Netflix
(cherry picked from commit 11110685fc )
2022-10-01 22:25:56 -06:00
Warner Losh
fff078d9ad
wsp_intr_callback: eliminate write only variable h
...
Sponsored by: Netflix
(cherry picked from commit 53c1f1fc60 )
2022-10-01 22:25:56 -06:00
Warner Losh
0fdc327e5d
uss820dci: eliminate unused variables sc, ep_no
...
Sponsored by: Netflix
(cherry picked from commit 12312f7583 )
2022-10-01 22:25:56 -06:00
Warner Losh
61181185cf
uhci_xfer_setup: eliminate write only variable sc
...
Sponsored by: Netflix
(cherry picked from commit 6ccdcae1b9 )
2022-10-01 22:25:55 -06:00
Warner Losh
bbc7627317
musb: eliminate write only variable sc
...
Sponsored by: Netflix
(cherry picked from commit ab59cd6a0b )
2022-10-01 22:25:55 -06:00
Warner Losh
3f07688cf6
atmegadci: eliminate unused variables sc, ep_no
...
Sponsored by: Netflix
(cherry picked from commit e73b02f66b )
2022-10-01 22:25:55 -06:00
Warner Losh
79ef6bcd78
hdspe_dmapsetmap: eliminate write only variable sc
...
Sponsored by: Netflix
(cherry picked from commit ad1b7fd714 )
2022-10-01 22:25:55 -06:00
Warner Losh
9763453cd9
quicc_bus_setsig: eliminate write only variable bas
...
Sponsored by: Netflix
(cherry picked from commit c8fe3923d8 )
2022-10-01 22:25:55 -06:00
Warner Losh
5d6c09f869
hdaa_eld_dump: eliminate write only variable len
...
Sponsored by: Netflix
(cherry picked from commit 557627dda9 )
2022-10-01 22:25:55 -06:00
Warner Losh
b6e4f5ef2b
emu10kx: eliminate write only variables val, r and move i to loop
...
Sponsored by: Netflix
(cherry picked from commit 8717135d37 )
2022-10-01 22:25:55 -06:00
Warner Losh
30711541ba
emu10kx-pci: eliminate write only variable r
...
Sponsored by: Netflix
(cherry picked from commit 451f54707a )
2022-10-01 22:25:55 -06:00
Warner Losh
62ec1f05fa
emu_midi_probe: eliminate write only variable r
...
Sponsored by: Netflix
(cherry picked from commit 7387abd342 )
2022-10-01 22:25:54 -06:00
Warner Losh
eaa861ec10
pcmcsa_attach: eliminate write only variable unit
...
Sponsored by: Netflix
(cherry picked from commit 33985865b2 )
2022-10-01 22:25:54 -06:00
Warner Losh
36ae1e15b0
midicsa_attach: eliminate write only variable func
...
Sponsored by: Netflix
(cherry picked from commit 3e423419cf )
2022-10-01 22:25:54 -06:00
Warner Losh
60911eda78
cs4281: eliminate write only variable codecno
...
Sponsored by: Netflix
(cherry picked from commit 0c64fe0068 )
2022-10-01 22:25:54 -06:00
Warner Losh
753b13c643
sb_probe: eliminate write only variable r
...
Sponsored by: Netflix
(cherry picked from commit 635a4068d2 )
2022-10-01 22:25:54 -06:00
Warner Losh
6b31f08b47
sb16_probe: eliminate write only variable r
...
Sponsored by: Netflix
(cherry picked from commit 668986eae9 )
2022-10-01 22:25:54 -06:00
Warner Losh
c74f4936fb
ess_probe: eliminate write only variable r
...
Sponsored by: Netflix
(cherry picked from commit 3a7365acc8 )
2022-10-01 22:25:54 -06:00
Warner Losh
2a70b66f89
sis_attach: Move waittime definition into for loop
...
Sponsored by: Netflix
(cherry picked from commit c9439e23ce )
2022-10-01 22:25:54 -06:00
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