Re: [rft]aggressive autosuspend for cdc-ether

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Mittwoch, 9. September 2009 15:21:33 schrieb Greg Heinrich:

Hi,

> I have been playing with your cdc-ether patch for autosuspend. This is
> mostly working however I have experienced some issues especially when
> autosuspend is enabled before the cdc-ether virtual cable is connected.
> In that case, the host usually fails to get an IP address from the DHCP
> server. Sometimes it works, most of the times it doesn't. I have not yet
> managed to understand what makes it fail/succeed.

Please recompile your kernel with CONFIG_USB_DEBUG.
This will increase debugging. It sounds like this happens if
the device is suspended when the dhcp request should be done.
But while this is very likely we need to confirm it.

> I collected wireshark logs a few of the failing cases and it turns out
> that the host does not send any DHCP_Discovery packets over the
> cdc-ether interface. There are no obvious errors in the kernel logs.

If nothing is sent, wireshark won't help. Verbosity of kernel logging
must be increased. If CONFIG_USB_DEBUG doesn't do the job,
you'll have to remove the comments from these lines

// #define	DEBUG			// error path messages, extra info
// #define	VERBOSE			// more; success messages

in drivers/net/usb/usbnet.c

> Am I using your patch beyond its intended use, or doing anything wrong?

Nope, this has to work. You've found a bug. ;-)

	Regards
		Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux