Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp109621pxb; Mon, 11 Apr 2022 20:17:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyksJ47rE+EAFiA6NhbzOxeiJd9ckHUrOVrwlrNp8dDQZt+Sl1YysVmAxTdQC4RTUi5BVMI X-Received: by 2002:a17:906:5d08:b0:6da:b4ea:937 with SMTP id g8-20020a1709065d0800b006dab4ea0937mr33197992ejt.446.1649733459028; Mon, 11 Apr 2022 20:17:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649733459; cv=none; d=google.com; s=arc-20160816; b=FCA/4rIs+NWbUDxfxlChtpQ93SGuOvxEczFeGs9l23KECtJZ8RUEr/lgeABelW//K9 DBmVB6Y/pq9GT8WLZ3JJnokTEALfa94eeidThLLXa0L0GCsLpzN1I8qnrpjEKeSuMNgA hpl0VO2ooB6TOqQpTi+0rIP5Dq71SB/ftcpjLlUYiPP4QeRkOJty1Pq86Qpdm1jxaiZb ltN7eSK6nqOkFBVEbLiEanx41MW2qtu6+uliFtAdQabG+15MgDey10uB/qvIkgG/k4/r KLb4twJIQSsDWdi7xZ/393mommp46ioRQoyV8JBBAowIYDBM7mKHQwLACM0CN1th1NkX 9uaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=0U96jaSuYssa60AUX927kNZ2dKPIFNIdo1kuNxBsyKg=; b=zohup+4V34DLRctVNL1SlS5sL8pR/44lbv+s6vY7msJFv0YoyxOVptBOsylFaKB84V O+thARO+QCw7uhd3D/O5G70kydISTmnnJczftKHGGU0eSiSSOqZocmEoqRB6ZIw0M7kR j5zbrxzbWq0XxGa6nQdU2H7d9DFrmUJxumjQt/peME/Noa0F1MTIBl7a/x9U6dS1HXbP +LQT9OGjgbY6c/6nUutp1f7n7VABaZDd1ZPmeHX+kyUANBrdo7MHLl5Q3FWU4M7YZvEv izzojeQmNlOX3MnYOTwkhcrwmJQ9BrxalrzkIkeeUKlcNflqfAgTf0PbN+mjUhUWBfMM 55aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenschwermer.de header.s=mail header.b="YK0/BRjV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=svenschwermer.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb23-20020a170907961700b006e877c9a83esi7501562ejc.996.2022.04.11.20.17.14; Mon, 11 Apr 2022 20:17:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@svenschwermer.de header.s=mail header.b="YK0/BRjV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=svenschwermer.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239080AbiDHS4q (ORCPT + 99 others); Fri, 8 Apr 2022 14:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239075AbiDHS4n (ORCPT ); Fri, 8 Apr 2022 14:56:43 -0400 Received: from mail.schwermer.no (mail.schwermer.no [49.12.228.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0E5C3CDB63; Fri, 8 Apr 2022 11:54:38 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=svenschwermer.de; s=mail; t=1649444075; bh=NI/aS/Xl18zBGB6UNwYdVkjZZkzV5JXJXAX5Qar/WKo=; h=Subject:To:Cc:References:From:In-Reply-To; b=YK0/BRjVfbk85Kd2GTyqkUbxY6d7bd+cX9lm8GuyUI/Ls3kJ/WPMZGMP/KM06bCpb gMs2nGGyOpyDTQy+u8ORyeTnMTSmTHCN0sms7xQdGsgv7gaY2VH11gK7DmDWFjCAuc QLuAWcpAmm0lqIf9KjX5caGnMJYJIVLUt5uTnQZkP58pyw3BOb6wlMQmB+5/cbIj2i DjO4Rnu3OQYyEFu8gImEF9zjKNg/oTQcuijP5CqcRIJDxRXH2t6pnnEEflFpxBEmFc HCwpBFo63Cp6lPl3eb5U5hLTyyLCUeeZY7srY8ApP7Fi5qZs0rETPB6GjGmlflKyug 0YfpKz4d5u4eQ== Date: Fri, 8 Apr 2022 20:54:34 +0200 Mime-Version: 1.0 Subject: Re: [PATCH v1 2/2] net: usb: cdc_ether: Add Fibocom MA510 modem Content-Language: en-US To: =?UTF-8?Q?Bj=c3=b8rn_Mork?= , Lars Melin Cc: linux-usb@vger.kernel.org, Sven Schwermer , linux-kernel@vger.kernel.org, oliver@neukum.org References: <20220407074745.74195-1-sven@svenschwermer.de> <20220407074745.74195-2-sven@svenschwermer.de> <3b8a8497-df41-8bf4-6816-f4419cb7f950@gmail.com> <87ee27y9ym.fsf@miraculix.mork.no> From: Sven Schwermer In-Reply-To: <87ee27y9ym.fsf@miraculix.mork.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lars, On 4/8/22 15:35, Bjørn Mork wrote: > Lars Melin writes: > >> Why do you add this modem to the whitelist? > > I believe the clue is the > >> + .driver_info = (unsigned long)&wwan_info, > > to set FLAG_WWAN instead of the default FLAG_ETHER | FLAG_POINTTOPOINT Bjørn is right that this is the reason. The Fibocom MA510 and L610 are cellular modems, so they require to be labelled as WWAN devices. As such they require to be set up (using AT commands or similar) before the connection can be used. Furthermore, WWAN devices get a different routing metric assigned by the network manager than regular Ethernet devices. >> The net interface has the correct cdc_ether attributes so the >> cdc_ether driver should bind automagically without any need for the >> modem to be in the whitelist. > > Yes, this sort of works against the class driver philosophy. But we've > already started down that road, so... > > > > Bjørn