[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAODwPW-E-3HcXCGEmp9JpW6hU-Xt-FHwBtqeSSTDGaRPqO49Sw@mail.gmail.com>
Date: Tue, 18 Mar 2014 18:09:27 -0700
From: Julius Werner <jwerner@...omium.org>
To: Grant Grundler <grundler@...gle.com>
Cc: Oliver Neukum <oneukum@...e.de>,
Julius Werner <jwerner@...omium.org>,
netdev <netdev@...r.kernel.org>, Freddy Xin <freddy@...x.com.tw>,
"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
Allan Chou <allan@...x.com.tw>
Subject: Re: usbnet: driver_info->stop required to stop USB interrupts?
> I tried adding the following change on top of your patch but believe
> the plumbing still isn't quite correct since the USB device (eth0) is
> reporting a link but no TX or RX of traffic:
> @@ -805,6 +807,9 @@ int usbnet_open (struct net_device *net)
> goto done;
> }
>
> + /* usbnet_bh() expects the spinlock to be initialized. */
> + init_waitqueue_head(&dev->wait);
> +
> /* hard_mtu or rx_urb_size may change in reset() */
> usbnet_update_max_qlen(dev);
I think a better place for this would be in usbnet_probe() (together
with all the other dev->xxx initialization). I'm not quite sure how
that could cause the transfer problems you are seeing, but at least
you will no longer initialize the waitqueue multiple times on multiple
usbnet_open (which is probably a bad idea).
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists