From: Bjørn Mork Date: Mon, 21 Jan 2013 05:50:39 +0000 (+0000) Subject: net: cdc_mbim: send ZLP after max sized NTBs X-Git-Tag: v3.8-rc6~20^2~29^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=328d7b8a4ab045484e1cc09579abf13c8c6223e3;p=pandora-kernel.git net: cdc_mbim: send ZLP after max sized NTBs We normally avoid sending ZLPs by padding NTBs with a zero byte if the NTB is shorter than dwNtbOutMaxSize, resulting in a short USB packet instead of a ZLP. But in the case where the NTB length is exactly dwNtbOutMaxSize and this is an exact multiplum of wMaxPacketSize, then we must send a ZLP. This fixes an issue seen on a Sierra Wireless MC7710 device where the transmission would fail whenever we ended up padding the NTBs to max size. Signed-off-by: Bjørn Mork Signed-off-by: David S. Miller --- Reading git-diff-tree failed