public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/13] wifi: drop redundant USB device references
@ 2026-03-05 11:07 Johan Hovold
  2026-03-05 11:07 ` [PATCH 01/13] wifi: at76c50x: drop redundant device reference Johan Hovold
                   ` (13 more replies)
  0 siblings, 14 replies; 24+ messages in thread
From: Johan Hovold @ 2026-03-05 11:07 UTC (permalink / raw)
  To: linux-wireless
  Cc: Brian Norris, Francesco Dolcini, Felix Fietkau, Lorenzo Bianconi,
	Ryder Lee, Shayne Chen, Sean Wang, Jakub Kicinski,
	Stanislaw Gruszka, Hin-Tak Leung, Jes Sorensen, Ping-Ke Shih,
	Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
	Matthias Brugger, AngeloGioacchino Del Regno, libertas-dev,
	linux-kernel, Johan Hovold

Driver core holds a reference to the USB interface and its parent USB
device while the interface is bound to a driver and there is no need to
take additional references unless the structures are needed after
disconnect.

Drop redundant device references to reduce cargo culting, make it easier
to spot drivers where an extra reference is needed, and reduce the risk
of memory leaks when drivers fail to release them.

Note that I sent an ath9k patch separately here:

	https://lore.kernel.org/all/20260305105803.17011-1-johan@kernel.org/

but I guess these can all be picked up by Johannes.

Johan


Johan Hovold (13):
  wifi: at76c50x: drop redundant device reference
  wifi: libertas: drop redundant device reference
  wifi: libertas_tf: drop redundant device reference
  wifi: mwifiex: drop redundant device reference
  wifi: mt76: drop redundant device reference
  wifi: mt76x0u: drop redundant device reference
  wifi: mt76x2u: drop redundant device reference
  wifi: mt76: mt792xu: drop redundant device reference
  wifi: mt7601u: drop redundant device reference
  wifi: rt2x00: drop redundant device reference
  wifi: rtl818x: drop redundant device reference
  wifi: rtl8xxxu: drop redundant device reference
  wifi: rtlwifi: usb: drop redundant device reference

 drivers/net/wireless/atmel/at76c50x-usb.c          | 12 ++++--------
 drivers/net/wireless/marvell/libertas/if_usb.c     |  3 ---
 drivers/net/wireless/marvell/libertas_tf/if_usb.c  |  2 --
 drivers/net/wireless/marvell/mwifiex/usb.c         |  4 ----
 drivers/net/wireless/mediatek/mt76/mt7615/usb.c    |  3 ---
 drivers/net/wireless/mediatek/mt76/mt76x0/usb.c    |  3 ---
 drivers/net/wireless/mediatek/mt76/mt76x2/usb.c    |  4 ----
 drivers/net/wireless/mediatek/mt76/mt7921/usb.c    |  2 --
 drivers/net/wireless/mediatek/mt76/mt7925/usb.c    |  2 --
 drivers/net/wireless/mediatek/mt76/mt792x_usb.c    |  1 -
 drivers/net/wireless/mediatek/mt7601u/usb.c        |  3 ---
 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c     | 12 +-----------
 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c |  4 ----
 drivers/net/wireless/realtek/rtl8xxxu/core.c       | 11 +++--------
 drivers/net/wireless/realtek/rtlwifi/usb.c         |  4 ----
 15 files changed, 8 insertions(+), 62 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2026-03-06  9:50 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 11:07 [PATCH 00/13] wifi: drop redundant USB device references Johan Hovold
2026-03-05 11:07 ` [PATCH 01/13] wifi: at76c50x: drop redundant device reference Johan Hovold
2026-03-05 11:07 ` [PATCH 02/13] wifi: libertas: " Johan Hovold
2026-03-05 11:07 ` [PATCH 03/13] wifi: libertas_tf: " Johan Hovold
2026-03-05 11:07 ` [PATCH 04/13] wifi: mwifiex: " Johan Hovold
2026-03-06  9:46   ` Francesco Dolcini
2026-03-05 11:07 ` [PATCH 05/13] wifi: mt76: " Johan Hovold
2026-03-05 11:07 ` [PATCH 06/13] wifi: mt76x0u: " Johan Hovold
2026-03-05 11:07 ` [PATCH 07/13] wifi: mt76x2u: " Johan Hovold
2026-03-05 11:07 ` [PATCH 08/13] wifi: mt76: mt792xu: " Johan Hovold
2026-03-05 11:07 ` [PATCH 09/13] wifi: mt7601u: " Johan Hovold
2026-03-05 11:07 ` [PATCH 10/13] wifi: rt2x00: " Johan Hovold
2026-03-05 13:37   ` Stanislaw Gruszka
2026-03-05 14:15     ` Johan Hovold
2026-03-05 16:52   ` Stanislaw Gruszka
2026-03-05 11:07 ` [PATCH 11/13] wifi: rtl818x: " Johan Hovold
2026-03-05 11:07 ` [PATCH 12/13] wifi: rtl8xxxu: " Johan Hovold
2026-03-05 11:07 ` [PATCH 13/13] wifi: rtlwifi: usb: " Johan Hovold
2026-03-06  1:40 ` [PATCH 00/13] wifi: drop redundant USB device references Ping-Ke Shih
2026-03-06  8:09   ` Johan Hovold
2026-03-06  9:04     ` Ping-Ke Shih
2026-03-06  9:34       ` Johan Hovold
2026-03-06  9:36         ` Ping-Ke Shih
2026-03-06  9:49       ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox