Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp395630pxk; Wed, 2 Sep 2020 04:40:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd99Q2R+w+YdBERi7Ad2d69ta1snMRdS413sRmuDkr9Pkxpj/VRj+ix8OfKRNDeb+IRiJF X-Received: by 2002:aa7:dcd9:: with SMTP id w25mr5794317edu.280.1599046816083; Wed, 02 Sep 2020 04:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599046816; cv=none; d=google.com; s=arc-20160816; b=y6GuPbyUmwy1TdNRFu4W048RfFLM7Z6IlQ4XvrtRnoFXMD42hlS14XPpTxyYoRvQRk hkSZxTqnaTu91gD3KXiC4anb4Fd42XkiSTUcWJEuXZXzeLSJoHph4fvrYkeojwV6umG3 AAteHXeKanIHxbOQ8IPD+dOPZv5OhI0pLv0Q63e1co33AUxV5HY7mfIXPkCRj6Q6u61K FJzAh/+ymUkfuMYretzIYZv4fuu/asD1oxW+HLTmYHPOtjWIkDAXOW+Vm9lSKcbXstJk oQvGgERiEjQtE1lGJSmJjlRFKx+7cABMwBrVqLaztDF6b6ru1JSccyFoLrOCpyF+hfw4 6QEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from; bh=yhFXF2gIFpjjg1VFc3R1Qx/Q3fAvquKAjnbrI0D2C3A=; b=nr0h5dwsWVAcND8bP7wdKmid0AeLVADm2HLyWgF6Hcw6R4PFiafWLU16vfcHxUWwPO 8WtU4LLJfM5LkOUuPVRZ4FQ+UU8uJ765U/bO9S/Wb5BoDx0ZEKGxfrflxNTr/dIjbt0j xn2AMnTkTRSmByEMCy/W5AEVGGInDiHLgHX7o8eXmBWS9TwZ9m1wF9q7UK/h8r11IU/2 BS7Y7CMTdAfG2IVe5vnVlkh+hLVS8+6ndtfaYaqIkc6ZvIwI5uSzLtWhuTPUnA34NEyt rQOrJpaOEBU6jr+rnLUqlYT2rs2mTTe9JfGgVtB2e/Fhd9N2OFwu6vfpBBOeNY3PvoCJ Y0zQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s17si2196741edx.108.2020.09.02.04.39.49; Wed, 02 Sep 2020 04:40:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727818AbgIBLDJ (ORCPT + 99 others); Wed, 2 Sep 2020 07:03:09 -0400 Received: from aclms1.advantech.com.tw ([61.58.41.199]:42462 "EHLO ACLMS1.advantech.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbgIBLDE (ORCPT ); Wed, 2 Sep 2020 07:03:04 -0400 Received: from taipei09.ADVANTECH.CORP (unverified [172.20.0.236]) by ACLMS1.advantech.com.tw (Clearswift SMTPRS 5.6.0) with ESMTP id ; Wed, 2 Sep 2020 19:03:01 +0800 Received: from localhost (172.16.12.96) by taipei09.ADVANTECH.CORP (172.20.0.236) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 2 Sep 2020 19:03:01 +0800 From: William Sung To: Johan Hovold , Greg Kroah-Hartman , , , AceLan Kao , Campion Kang , William Sung Subject: [PATCH v2] usb: serial: option: Fix the lackage for Quectel EG95 LTE modem support Date: Wed, 2 Sep 2020 19:03:01 +0800 Message-ID: <20200902110301.21936-1-william.sung@advantech.com.tw> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.16.12.96] X-ClientProxiedBy: ACLDAG.ADVANTECH.CORP (172.20.2.88) To taipei09.ADVANTECH.CORP (172.20.0.236) X-StopIT: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Add reset-resume callback for resetting USB devices after MCU exits from suspend/sleep mode. * Add zero packet support Fixes: da6902e5b6db ("USB: serial: option: add Quectel EG95 LTE modem" Signed-off-by: William Sung --- v2: * Add ZLP support * Remove redundant code for reserving interface number 4 drivers/usb/serial/option.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 89b3192af326..ba4dc67dab2f 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1099,7 +1099,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC25), .driver_info = RSVD(4) }, { USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EG95), - .driver_info = RSVD(4) }, + .driver_info = RSVD(4) | ZLP }, { USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_BG96), .driver_info = RSVD(4) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EP06, 0xff, 0xff, 0xff), @@ -2069,6 +2069,7 @@ static struct usb_serial_driver option_1port_device = { #ifdef CONFIG_PM .suspend = usb_wwan_suspend, .resume = usb_wwan_resume, + .reset_resume = usb_wwan_resume, #endif }; -- 2.17.1