Re: autosuspend for asix driver

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Tue, 31 Jul 2007, Oliver Neukum wrote:

> --- a/drivers/net/usb/usbnet.c	2007-07-30 14:27:40.000000000 +0200
> +++ b/drivers/net/usb/usbnet.c	2007-07-31 11:07:51.000000000 +0200

> @@ -1143,6 +1157,7 @@ usbnet_probe (struct usb_interface *udev
>  
>  	dev = netdev_priv(net);
>  	dev->udev = xdev;
> +	dev->intf = udev;
>  	dev->driver_info = info;
>  	dev->driver_name = name;
>  	dev->msg_enable = netif_msg_init (msg_level, NETIF_MSG_DRV

> --- a/drivers/net/usb/asix.c	2007-07-30 14:18:38.000000000 +0200
> +++ b/drivers/net/usb/asix.c	2007-07-30 16:04:45.000000000 +0200
> @@ -844,6 +844,7 @@ static int ax88172_bind(struct usbnet *d
>  	dev->mii.phy_id_mask = 0x3f;
>  	dev->mii.reg_num_mask = 0x1f;
>  	dev->mii.phy_id = asix_get_phy_addr(dev);
> +	dev->intf = intf;
>  	dev->net->do_ioctl = asix_ioctl;
>  
>  	dev->net->set_multicast_list = ax88172_set_multicast;

You assign dev->intf in both the usbnet framework driver and the
subdriver.  Could the subdriver's assignment be removed?

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.