public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 RESEND 0/5] wifi: mediatek: drop redundant USB device references
@ 2026-04-30  8:33 Johan Hovold
  2026-04-30  8:33 ` [PATCH v2 RESEND 1/5] wifi: mt76: drop redundant device reference Johan Hovold
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Johan Hovold @ 2026-04-30  8:33 UTC (permalink / raw)
  To: Felix Fietkau, Lorenzo Bianconi, Ryder Lee, Jakub Kicinski
  Cc: Shayne Chen, Sean Wang, Matthias Brugger,
	AngeloGioacchino Del Regno, linux-wireless, linux-mediatek,
	linux-kernel, Johan Hovold

[ This is a resend (with trimmed CC) of the five Mediatek patches which
  still haven't been picked up from [1]. ]

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.

Johan

[1] https://lore.kernel.org/all/20260306085144.12064-1-johan@kernel.org/


Johan Hovold (5):
  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

 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 ---
 7 files changed, 18 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-04-30  8:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30  8:33 [PATCH v2 RESEND 0/5] wifi: mediatek: drop redundant USB device references Johan Hovold
2026-04-30  8:33 ` [PATCH v2 RESEND 1/5] wifi: mt76: drop redundant device reference Johan Hovold
2026-04-30  8:33 ` [PATCH v2 RESEND 2/5] wifi: mt76x0u: " Johan Hovold
2026-04-30  8:33 ` [PATCH v2 RESEND 3/5] wifi: mt76x2u: " Johan Hovold
2026-04-30  8:33 ` [PATCH v2 RESEND 4/5] wifi: mt76: mt792xu: " Johan Hovold
2026-04-30  8:33 ` [PATCH v2 RESEND 5/5] wifi: mt7601u: " Johan Hovold

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