Re: [linux-usb-devel] autosuspend for asix driver

2007-08-02 Thread David Brownell
On Thursday 02 August 2007, Oliver Neukum wrote: > Am Freitag 03 August 2007 schrieb David Brownell: > > On Wednesday 01 August 2007, Oliver Neukum wrote: > > > Am Dienstag 31 Juli 2007 schrieb Alan Stern: > > > > You assign dev->intf in both the usbnet framework driver and the > > > > subdriver.  

Re: [linux-usb-devel] autosuspend for asix driver

2007-08-02 Thread Oliver Neukum
Am Freitag 03 August 2007 schrieb David Brownell: > On Wednesday 01 August 2007, Oliver Neukum wrote: > > Am Dienstag 31 Juli 2007 schrieb Alan Stern: > > > You assign dev->intf in both the usbnet framework driver and the > > > subdriver.  Could the subdriver's assignment be removed? > > > > Here

Re: [linux-usb-devel] autosuspend for asix driver

2007-08-02 Thread David Brownell
On Wednesday 01 August 2007, Oliver Neukum wrote: > Am Dienstag 31 Juli 2007 schrieb Alan Stern: > > You assign dev->intf in both the usbnet framework driver and the > > subdriver.  Could the subdriver's assignment be removed? > > Here we go again. > > Regards > Oliver > Signe

Re: [linux-usb-devel] autosuspend for asix driver

2007-08-01 Thread Oliver Neukum
Am Dienstag 31 Juli 2007 schrieb Alan Stern: > You assign dev->intf in both the usbnet framework driver and the > subdriver.  Could the subdriver's assignment be removed? Here we go again. Regards Oliver Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]> --- --- a/drivers/n

Re: [linux-usb-devel] autosuspend for asix driver

2007-07-31 Thread Oliver Neukum
Am Dienstag 31 Juli 2007 schrieb Alan Stern: > You assign dev->intf in both the usbnet framework driver and the > subdriver.  Could the subdriver's assignment be removed? Yes, it is superfluous. I'll make a new patch. Regards Oliver --

Re: [linux-usb-devel] autosuspend for asix driver

2007-07-31 Thread Alan Stern
On Tue, 31 Jul 2007, Oliver Neukum wrote: > --- a/drivers/net/usb/usbnet.c2007-07-30 14:27:40.0 +0200 > +++ b/drivers/net/usb/usbnet.c2007-07-31 11:07:51.0 +0200 > @@ -1143,6 +1157,7 @@ usbnet_probe (struct usb_interface *udev > > dev = netdev_priv(net); >

[linux-usb-devel] autosuspend for asix driver

2007-07-31 Thread Oliver Neukum
Hi, this implements autosuspend support for the asix subdriver of usbnet. It works by autoresume when the device is opened and autosuspending when it is closed. The logic is all put into the generic framework. All the subdriver has to do is setting the flag. To support this the suspend() method i