Linux USB
 help / color / mirror / Atom feed
* [PATCH v2 0/2] USB: Simplify running code on shutdown for USB devices
@ 2024-07-06  9:58 Aditya Garg
  2024-07-06 10:00 ` [PATCH v2 1/2] USB: core: add 'shutdown' callback to usb_driver Aditya Garg
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Garg @ 2024-07-06  9:58 UTC (permalink / raw)
  To: gregkh@linuxfoundation.org, oneukum@suse.com,
	stern@rowland.harvard.edu
  Cc: Kerem Karabay, Orlando Chamberlain, Linux Kernel Mailing List,
	linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org,
	usb-storage@lists.one-eyed-alien.net

Currently there is no standardized method for USB drivers to handle
shutdown events.

The first patch in this series fixes this by simplifying running code
on shutdown for USB devices by adding a shutdown callback to usb_driver.

The second patch implements this new callback to the UAS driver.

Kerem Karabay (2):
  USB: core: add 'shutdown' callback to usb_driver
  scsi: usb: uas: Implement the new shutdown callback

 drivers/usb/core/driver.c | 14 ++++++++++++++
 drivers/usb/storage/uas.c |  5 ++---
 include/linux/usb.h       |  3 +++
 3 files changed, 19 insertions(+), 3 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-07-06 12:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-06  9:58 [PATCH v2 0/2] USB: Simplify running code on shutdown for USB devices Aditya Garg
2024-07-06 10:00 ` [PATCH v2 1/2] USB: core: add 'shutdown' callback to usb_driver Aditya Garg
2024-07-06 10:01   ` [PATCH v2 2/2] scsi: usb: uas: Implement the new shutdown callback Aditya Garg
2024-07-06 10:08     ` gregkh
2024-07-06 10:16       ` Aditya Garg
2024-07-06 10:09     ` gregkh
2024-07-06 10:20       ` Aditya Garg
2024-07-06 12:06       ` Aditya Garg

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