Re: [PATCH] mcs7830: Fix link state detection

2012-10-11 Thread David Miller
From: Ondrej Zary Date: Thu, 11 Oct 2012 12:33:28 +0200 > The device had an undocumented "feature": it can provide a sequence of > spurious link-down status data even if the link is up all the time. > A sequence of 10 was seen so update the link state only after the device > reports the same link

Re: [PATCH] mcs7830: Fix link state detection

2012-10-11 Thread Andreas Mohr
Hi, On Thu, Oct 11, 2012 at 12:33:28PM +0200, Ondrej Zary wrote: > u8 *buf = urb->transfer_buffer; > bool link; > + struct mcs7830_data *data = mcs7830_get_data(dev); > > if (urb->actual_length < 16) > return; Alternatively could do *data = NULL; and then act