From: Oliver Neukum <oneukum@suse.de>
To: Andy Lutomirski <luto@amacapital.net>
Cc: linux-usb@vger.kernel.org,
Linux PM List <linux-pm@lists.linux-foundation.org>,
Linux SCSI List <linux-scsi@vger.kernel.org>,
hare@suse.de
Subject: Re: Ejected Nook (usb mass storage) prevents suspend
Date: Mon, 29 Jul 2013 08:02:52 +0200 [thread overview]
Message-ID: <1375077772.25230.3.camel@linux-fkkt.site> (raw)
In-Reply-To: <CALCETrVoMc+aCNgwthdwYzx9rXh=Zqzwb5e2djwbFB8FTo4kRg@mail.gmail.com>
On Fri, 2013-07-26 at 09:54 -0700, Andy Lutomirski wrote:
> This is kernel 3.9.9-302.fc19.x86_64.
>
> I plugged in a BN Nook (a usb mass storage device), used it, and
> ejected it. This makes suspend fail:
>
> [50135.265514] PM: Entering freeze sleep
> [50135.265517] Suspending console(s) (use no_console_suspend to debug)
> [50135.287724] sd 7:0:0:0: [sdb] Synchronizing SCSI cache
> [50135.290413] sd 7:0:0:0: [sdb]
> [50135.290415] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
> [50135.290418] sd 7:0:0:0: [sdb]
> [50135.290422] Sense Key : Not Ready [current]
> [50135.290424] sd 7:0:0:0: [sdb]
> [50135.290429] Add. Sense: Medium not present
> [50135.290448] dpm_run_callback(): scsi_bus_suspend+0x0/0x40 returns -5
> [50135.290454] PM: Device 7:0:0:0 failed to suspend async: error -5
> [50138.486917] PM: Some devices failed to suspend
> [50138.525007] PM: resume of devices complete after 38.132 msecs
> [50138.525315] pci_pm_runtime_suspend():
> hcd_pci_runtime_suspend+0x0/0x50 returns -16
> [50138.536357] PM: Finishing wakeup.
>
> Experimenting a bit, here's what happens.
>
> - Plug in device (so it's working). Suspend works.
> - eject /dev/sdb. Suspend fails.
> - Physically unplug the device. Suspend works again.
Hi,
this looks like a logical error in sd_suspend(). It should
ignore errors due to missing media (or offlined devices)
Regards
Oliver
prev parent reply other threads:[~2013-07-29 6:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-26 16:54 Ejected Nook (usb mass storage) prevents suspend Andy Lutomirski
2013-07-26 17:40 ` Alan Stern
[not found] ` <CALCETrVoMc+aCNgwthdwYzx9rXh=Zqzwb5e2djwbFB8FTo4kRg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-26 20:31 ` Alan Stern
2013-07-29 6:06 ` Oliver Neukum
2013-07-29 14:21 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1307291016220.1479-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2013-07-30 15:12 ` Oliver Neukum
[not found] ` <1375197142.14458.4.camel-B2T3B9s34ElbnMAlSieJcQ@public.gmane.org>
2013-07-30 17:00 ` Alan Stern
2013-07-30 19:26 ` Oliver Neukum
2013-07-31 11:39 ` Oliver Neukum
2013-07-31 15:13 ` Alan Stern
2013-08-01 14:12 ` Oliver Neukum
2013-08-01 15:53 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1308011149320.1534-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2013-08-02 7:23 ` Oliver Neukum
2013-08-02 13:54 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1308020954120.1176-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2013-08-02 14:11 ` Oliver Neukum
[not found] ` <1375452665.2138.17.camel-B2T3B9s34ElbnMAlSieJcQ@public.gmane.org>
2013-08-02 14:18 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1308021015200.1176-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2013-09-13 13:37 ` Andy Lutomirski
[not found] ` <CALCETrWQuJs_7-VoOVaZQMCdZhj2VjQCaH5NWie=h4NSAM9VSg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-13 15:19 ` Oliver Neukum
2013-07-29 6:02 ` Oliver Neukum [this message]
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=1375077772.25230.3.camel@linux-fkkt.site \
--to=oneukum@suse.de \
--cc=hare@suse.de \
--cc=linux-pm@lists.linux-foundation.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=luto@amacapital.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;
as well as URLs for NNTP newsgroup(s).