linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.name>
To: linux-hotplug@vger.kernel.org
Subject: Re: [linux-usb-devel] Re: hotplugging to deal with firmware download
Date: Mon, 03 Jun 2002 22:58:00 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-102314518231346@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-102297360623547@msgid-missing>


> > > I agree.  That's why people are still working on the power
> > > management system :)
> >
> > Well, time is not infinite. I doubt the work'll be finished soon
> > enough.
>
> Heh, pessimist :)

Yes, I admit it :-)

> > > > The devices are simply assumed to switch from suspended to working
> > > > in kernel space. Suspended may mean off here.
> > >
> > > If "suspended" means off, then the device should start up in the
> > > powered off state, and re-enumerate as a new usb device on powerup.
> >
> > That exactly you cannot do. The result is file system corruption,
> > interfaces assigned wrong adresses, cameras being switched.
> > You need to retain device<->node correspondences.
>
> Ok, let's state this right now then:
> 	If you have a USB device that needs firmware downloaded to it
> 	in order to work properly, do NOT mount any filesystems on that
> 	type of device and expect software suspend to work properly.  In
> 	fact, do not expect software suspend to work properly at all
> 	with these types of devices, and remove them before enabling
> 	software suspend.
>
> Is that acceptable?

Nope. I happen to have one ;-).
I can make it work, provided I keep the firmware in kernel space.
It's no principal problem. It's just ugly.

And the problem is not limited to devices with firmware.
If you have two USB disks, sda must remain sda and not
interchange with sdb after resumption, even if sdb would be reenumerated
later than sda. To do that you need to reidentify devices after resumption,
you cannot equate suspension with disconnection and resumption
with reenumeration.
This applies to all drivers which work with more than one device of a kind.
For disks the results are just more drastic, being two very dead 
filesystems.

> Does any other operating systems handle this any better?

How am I suposed to know. Do you imply that I use other
operating systems ;-) ?

> > > If you _have_ to handle this today, then just leave the firmware
> > > within the kernel driver, like all of the usb-serial devices have
> > > done :)
> > >
> > > If you wait a while, the rest of the power management sections of
> > > the kernel will hopefully come together, allowing the various states
> > > of shutdown to work properly, and be enumerated by _userspace_
> > > tools.
> >
> > Shutdown I don't worry about, resumption is anothere matter.
>
> Resumption is part of the userspace solution too.

Which makes me wonder whether you are designing a really
complicated monster. Some kind of resumptionramdisk ?

	Regards
		Oliver


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2002-06-03 22:58 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-01 23:16 [linux-usb-devel] Re: hotplugging to deal with firmware download Brad Hards
2002-06-02  5:50 ` Oliver Neukum
2002-06-02  8:19 ` Oliver Neukum
2002-06-02 11:11 ` Brad Hards
2002-06-02 17:16 ` David Brownell
2002-06-02 21:59 ` Oliver Neukum
2002-06-02 22:21 ` Brad Hards
2002-06-03  4:18 ` Oliver Neukum
2002-06-03 17:52 ` Greg KH
2002-06-03 21:00 ` Oliver Neukum
2002-06-03 21:55 ` Greg KH
2002-06-03 22:02 ` David Brownell
2002-06-03 22:26 ` Oliver Neukum
2002-06-03 22:35 ` Greg KH
2002-06-03 22:37 ` Greg KH
2002-06-03 22:48 ` Oliver Neukum
2002-06-03 22:58 ` Oliver Neukum [this message]
2002-06-03 23:05 ` Greg KH
2002-06-03 23:30 ` Oliver Neukum
2002-06-03 23:40 ` Greg KH
2002-06-04  8:06 ` Oliver Neukum
2002-06-04 19:32 ` David Brownell
2002-06-04 19:44 ` David Brownell
2002-06-05 11:45 ` Oliver Neukum
2002-06-05 14:19 ` David Brownell
2002-06-05 14:32 ` Oliver Neukum
2002-06-05 14:54 ` David Brownell
2002-06-05 21:48 ` Oliver Neukum
2002-06-06  0:25 ` David Brownell
2002-06-06  9:04 ` Andries.Brouwer
2002-06-06 12:54 ` Oliver Neukum
2002-06-06 14:55 ` Oliver Neukum
2002-06-06 17:16 ` David Brownell
2002-06-06 19:19 ` Andries.Brouwer

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=marc-linux-hotplug-102314518231346@msgid-missing \
    --to=oliver@neukum.name \
    --cc=linux-hotplug@vger.kernel.org \
    /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).