From: Yan Li <elliot.li.tech@gmail.com>
To: Tino Keitel <tino.keitel@gmx.de>, Alan Stern <stern@rowland.harvard.edu>
Cc: gregkh@suse.de, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Enable CONFIG_USB_SUSPEND by default or some mobile HD can't be unplugged safely
Date: Fri, 2 Jan 2009 22:00:23 +0800 [thread overview]
Message-ID: <20090102140023.GC4833@thyme.bj.intel.com> (raw)
In-Reply-To: <20090102095643.GB17103@x61>
On Fri, Jan 02, 2009 at 10:56:43AM +0100, Tino Keitel wrote:
> With a WD My Passport drive (2,5"), I need to use sg_start --stop --pc=3
> to stop the disk before unplugging it. Maybe this works with your
> drive, too. This is also required by some Firewire hard disks. Maybe
> the eject command should be extended to use this method, as it is used
> also by HAL to eject hotplug devices.
Hum... I grepped my hal and hal-info packages but haven't found any
scripts using `sg_*'. I'm using hal package 0.5.11-6 from Debian
testing.
Now I know 3 methods supposed can be used to shut the device:
1. (Alan Stern said Windows use this) cut the USB port's power
2. send STOP SCSI command to stop it
3. put it into suspend mode
For the 1st method I have no much experience with Windows so I can't
verify. But now I doubt it. Since there are many early USB devices
that still show light on after you "safely remove" it from Windows. I
guess the power is still supplied but the device is send a command to
be shutdown or suspended.
For the 2nd and 3rd methods, I don't know which one is better, hope
some experts can give advice.
Whatever, I think the suspend mode is a standard USB design and the
kernel should support it by default so we should enable
CONFIG_USB_SUSPEND.
--
Li, Yan
next prev parent reply other threads:[~2009-01-02 14:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-01 16:03 Enable CONFIG_USB_SUSPEND by default or some mobile HD can't be unplugged safely Yan Li
2009-01-01 16:07 ` [PATCH] enable CONFIG_USB_SUSPEND by default Yan Li
2009-01-01 17:29 ` Enable CONFIG_USB_SUSPEND by default or some mobile HD can't be unplugged safely Alan Stern
2009-01-02 13:23 ` Yan Li
2009-01-01 17:32 ` Alexander E. Patrakov
2009-01-01 17:45 ` Alan Stern
2009-01-02 13:37 ` Yan Li
2009-01-02 13:46 ` Alexander E. Patrakov
2009-01-01 19:09 ` Robert Hancock
2009-01-02 9:56 ` Tino Keitel
2009-01-02 14:00 ` Yan Li [this message]
2009-01-02 14:08 ` Tino Keitel
2009-01-02 14:28 ` Yan Li
2009-01-02 16:04 ` Alan Stern
2009-01-03 2:33 ` Yan Li
2009-01-02 15:50 ` Mark Lord
2009-01-02 15:51 ` Mark Lord
2009-01-02 18:15 ` Tino Keitel
2009-01-03 2:24 ` Yan Li
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=20090102140023.GC4833@thyme.bj.intel.com \
--to=elliot.li.tech@gmail.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=tino.keitel@gmx.de \
/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