From patchwork Thu May 31 09:18:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniele Palmas X-Patchwork-Id: 10440569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4FD836035E for ; Thu, 31 May 2018 09:18:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FB8129136 for ; Thu, 31 May 2018 09:18:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44B8D291AE; Thu, 31 May 2018 09:18:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, HK_RANDOM_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3D2D29136 for ; Thu, 31 May 2018 09:18:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754170AbeEaJSp (ORCPT ); Thu, 31 May 2018 05:18:45 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:39176 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754093AbeEaJSn (ORCPT ); Thu, 31 May 2018 05:18:43 -0400 Received: by mail-wr0-f193.google.com with SMTP id w7-v6so20314910wrn.6; Thu, 31 May 2018 02:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=0c3L4JQAFz51lgec5kpJP6s8xl93RtOvmqgxpP1l9WY=; b=h73mS/gyq/TUSk2SxVivU2MUrjH0SMUZMrKZYBJaetGGvy5XHaaCH1mQBZtrGqOHz9 SLpfbq4QA/K8roEq8rb7bWMl5DIyugx6HTed/RzoZDs/ABc/4YgogfG4kNvhDGhXW/3N 6Z3Xog8Q0aOFxPqq5UfMDlqxHjlrenD8oU43A061WWfjP47Ulhk2DYfT8mEyk2P4VV2Q vTetT84dTzLbJDhEss0Nj2Ev5ifMStXIDZgfaqmwRf0udnauV15a/HIoF77WFspElHRE uxj3wCZ03R9RwCSSVaTbtvSj+mLbUnNI9UWrI1bYGrsUnkMHVY3uaSUmRvTYOPVkEqy0 xb2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0c3L4JQAFz51lgec5kpJP6s8xl93RtOvmqgxpP1l9WY=; b=AqPWdrrv7ChFTu1M/WRz1KpK+GpWn0kBCZ7nKzbVjCspm9cN96gQbo7G4wz88il4Bp h9CH7PnVeFCZChl/4RiAVm80ARWN5qnjYgTLLhw9ZpF/+nOYfEjf/qYgiQH2JfNb7P8a miSOgcxK4ehgUUyGC9jIfkhPzeh93sMkrhvkzxoXY/VfppnHgOlgruHB8h1KJJetN+vK 6mqgFSgvYFo1PS0DYib+vEEhAQYiNoY44iCdC1K1DLsFqS10xfEfS3nAvzwFiXzHpocx D582Vgb6D8AhT6JCmuZU4kSuyKvRVU9hr+HYqzkY2YLlJf23SgKYTTkcAWBImMZeS+jU /3fg== X-Gm-Message-State: ALKqPwd8Cg2uadnasNFHB0APnOjed3bHQqfd5nQoPYGYgzkd18oN4Laf lbxj2M8+NX4be2FmBog7++rckw== X-Google-Smtp-Source: ADUXVKKEhVkd3bsUmzQyXe9SgU/ia6nrYZCH0t2bfh4Z+WPlrVmswOc1oBvS9CjsyB2PfFrqXQLeQw== X-Received: by 2002:adf:8361:: with SMTP id 88-v6mr4573152wrd.17.1527758322009; Thu, 31 May 2018 02:18:42 -0700 (PDT) Received: from L2122.tmt.telital.com (static-82-85-31-68.clienti.tiscali.it. [82.85.31.68]) by smtp.gmail.com with ESMTPSA id b16-v6sm34812289wrm.89.2018.05.31.02.18.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 May 2018 02:18:41 -0700 (PDT) From: Daniele Palmas To: =?UTF-8?q?Bj=C3=B8rn=20Mork?= , Oliver Neukum Cc: netdev@vger.kernel.org, linux-usb@vger.kernel.org, Daniele Palmas Subject: [PATCH 1/1] net: usb: cdc_mbim: add flag FLAG_SEND_ZLP Date: Thu, 31 May 2018 11:18:29 +0200 Message-Id: <1527758309-9614-1-git-send-email-dnlplm@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Testing Telit LM940 with ICMP packets > 14552 bytes revealed that the modem needs FLAG_SEND_ZLP to properly work, otherwise the cdc mbim data interface won't be anymore responsive. Signed-off-by: Daniele Palmas Acked-by: Bjørn Mork --- drivers/net/usb/cdc_mbim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/cdc_mbim.c b/drivers/net/usb/cdc_mbim.c index 7220cd6..0362acd 100644 --- a/drivers/net/usb/cdc_mbim.c +++ b/drivers/net/usb/cdc_mbim.c @@ -609,7 +609,7 @@ static const struct driver_info cdc_mbim_info_ndp_to_end = { */ static const struct driver_info cdc_mbim_info_avoid_altsetting_toggle = { .description = "CDC MBIM", - .flags = FLAG_NO_SETINT | FLAG_MULTI_PACKET | FLAG_WWAN, + .flags = FLAG_NO_SETINT | FLAG_MULTI_PACKET | FLAG_WWAN | FLAG_SEND_ZLP, .bind = cdc_mbim_bind, .unbind = cdc_mbim_unbind, .manage_power = cdc_mbim_manage_power,