]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: cdc_mbim: change the default to send ZLPs
authorBjørn Mork <bjorn@mork.no>
Thu, 31 Oct 2013 14:56:11 +0000 (15:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Nov 2013 05:29:37 +0000 (01:29 -0400)
commitc1a2e95435976cb040db1f6c0afbe4287c3d2e28
treea069ccf83ac3a707bd199b47528e3d31f6031879
parent5b8f15f78e6fdd572f9265ef24618c10267de318
net: cdc_mbim: change the default to send ZLPs

A number of devices in the wild have turned out to require ZLPs.
Even if this is a spec violation, our priority is to make any
device work as good as possible. Devices needing ZLPs will fail
to receive any full sized frame we send. On the other hand,
devices which do not need the ZLP will still work if we send
them.

This gives us no other option than sending ZLPs by default.

This will prevent devices conforming to the spec from making the
optimizations which are possible without ZLPs.  Adding known
such devices to a whitelist, to avoid the possible negative
impact of the new spec violating default.

Cc: Greg Suarez <gsuarez@smithmicro.com>
Cc: Alexey Orishko <alexey.orishko@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_mbim.c