From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Tue, 04 Jun 2002 19:44:06 +0000 Subject: Re: [linux-usb-devel] Re: hotplugging to deal with firmware download Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org >>>I see no plan to do it with the present power management system. >>>The devices are simply assumed to switch from suspended to working >>>in kernel space. Suspended may mean off here. >> >>Well, the usb device drivers _do_ need individual suspend()/resume() >>callbacks. The "new device model" stuff exists in part to ensure >>that devices get those calls appropriately. > > I agree. But usbcore should help as far as possible. What were you thinking would transform the "device model" level suspend/resume calls into USB level ones? :) >>For example, suspending a bus-powered hub would need to morph into >>disconnecting the devices it could no longer power ... and in your >>case, suspending a network device that discards its firmware would >>also need to morph into a disconnect. > > That's exactly what you must _not_ do, you need to retain the information > which devices was on which port to resume correctly. Why would that be? In those cases, the device MUST re-enumerate from scratch, there will be no USB state to resume. In those cases the devices can't suspend; they can only disconnect/reconnect. And it'd be pointless, since if any device driver wants to save information about devices across reconnects -- like usb-storage does today -- it has all the tools it needs to do that already. There's no need to bloat the core with such stuff. Given that userspace tools can already be used to make network device names be pseudo-stable ("eth2" is always the one with address NN), and network drivers can even request specific names ("eth3") I don't see any reason any network device driver should want such functionality. - Dave _______________________________________________________________ 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