From patchwork Thu Jan 5 03:42:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hui Wang X-Patchwork-Id: 13089369 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5DCAC54EBD for ; Thu, 5 Jan 2023 03:43:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229896AbjAEDn3 (ORCPT ); Wed, 4 Jan 2023 22:43:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjAEDnW (ORCPT ); Wed, 4 Jan 2023 22:43:22 -0500 Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3658D48818; Wed, 4 Jan 2023 19:43:21 -0800 (PST) Received: from localhost.localdomain (unknown [123.112.69.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id C664D423FE; Thu, 5 Jan 2023 03:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1672890199; bh=QcyeiMxc53xNRUmehRoDhSrVpTlqeIkwOCpN4UX0Mvs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Y9pmU28lw/bl7EvlkVyOgCAQ9smvSSwBk99jbljBsAe04c7UKnFNBDYsmm3B+0vJB cL45pPLjbXrLy8crENWuyHkZQPABPWr4cMc1lcTYsMrOb5HnljzO6+VZOoEibV4ywD cNWXTbEqI+lAlsMTPPRV/gt/Ek/kweQZzoDue7+NWbkrhMjBWtovwTC8aJMs+GhueM 9PCN1XFvbqy/aL1WrH5SDXrwtX+sOyFr1VNhXLvfzjWH4hL8vB99meSkCKaLGcriOX dbsV6lnRLhoI6mjTgXoV5r9aIHXNVaV226x/80278BVtJP0g3D+d5cP7dxlpE13/4a M1qbSC3juMGHw== From: Hui Wang To: netdev@vger.kernel.org, linux-usb@vger.kernel.org, davem@davemloft.net, oliver@neukum.org, kuba@kernel.org Cc: hui.wang@canonical.com Subject: [PATCH] net: usb: cdc_ether: add support for Thales Cinterion PLS62-W modem Date: Thu, 5 Jan 2023 11:42:49 +0800 Message-Id: <20230105034249.10433-1-hui.wang@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This modem has 7 interfaces, 5 of them are serial interfaces and are driven by cdc_acm, while 2 of them are wwan interfaces and are driven by cdc_ether: If 0: Abstract (modem) If 1: Abstract (modem) If 2: Abstract (modem) If 3: Abstract (modem) If 4: Abstract (modem) If 5: Ethernet Networking If 6: Ethernet Networking Without this change, the 2 network interfaces will be named to usb0 and usb1, our QA think the names are confusing and filed a bug on it. After applying this change, the name will be wwan0 and wwan1, and they could work well with modem manager. Signed-off-by: Hui Wang Reviewed-by: Jiri Pirko --- drivers/net/usb/cdc_ether.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index 8911cd2ed534..c140edb4b648 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c @@ -1007,6 +1007,12 @@ static const struct usb_device_id products[] = { USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE), .driver_info = (unsigned long)&wwan_info, +}, { + /* Cinterion PLS62-W modem by GEMALTO/THALES */ + USB_DEVICE_AND_INTERFACE_INFO(0x1e2d, 0x005b, USB_CLASS_COMM, + USB_CDC_SUBCLASS_ETHERNET, + USB_CDC_PROTO_NONE), + .driver_info = (unsigned long)&wwan_info, }, { /* Cinterion PLS83/PLS63 modem by GEMALTO/THALES */ USB_DEVICE_AND_INTERFACE_INFO(0x1e2d, 0x0069, USB_CLASS_COMM,