Linux USB
 help / color / mirror / Atom feed
From: Oliver Neukum <oneukum@suse.com>
To: Alan Stern <stern@rowland.harvard.edu>,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
Cc: "Li, Meng" <Meng.Li@windriver.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"usb-storage@lists.one-eyed-alien.net"
	<usb-storage@lists.one-eyed-alien.net>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] usb: storage: add shutdown function for usb storage driver
Date: Wed, 25 Oct 2023 11:07:07 +0200	[thread overview]
Message-ID: <bdac114d-2366-407a-bfe1-fca2bb035429@suse.com> (raw)
In-Reply-To: <a6bb88cd-0b89-4eb1-b90d-8ad633b7a8f2@rowland.harvard.edu>

On 24.10.23 21:23, Alan Stern wrote:
  
> Since USB class-device drivers don't have ->shutdown callbacks (there is
> no shutdown() method in struct usb_driver), they don't know what's going
> on while a shutdown or reboot is in progress.  All they see is a bunch
> of errors.

Does this solve the issue? You'd have to flush the cache on the SCSI
device further down in the tree, if you want this done properly.

	Regards
		Oliver


  parent reply	other threads:[~2023-10-25  9:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23  5:41 [PATCH] usb: storage: add shutdown function for usb storage driver Meng Li
2023-10-23 19:11 ` Alan Stern
2023-10-24  3:43   ` Li, Meng
2023-10-24 15:35     ` Alan Stern
2023-10-24 15:45       ` gregkh
2023-10-24 15:58         ` Alan Stern
2023-10-24 17:11           ` gregkh
2023-10-24 19:23             ` Alan Stern
2023-10-25  2:25               ` Li, Meng
2023-10-25 14:25                 ` Alan Stern
2023-10-25  9:07               ` Oliver Neukum [this message]
2023-10-25 14:28                 ` Alan Stern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bdac114d-2366-407a-bfe1-fca2bb035429@suse.com \
    --to=oneukum@suse.com \
    --cc=Meng.Li@windriver.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    --cc=usb-storage@lists.one-eyed-alien.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox