Message ID | 20230706145154.2517870-1-jforbes@fedoraproject.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2617314vqx; Thu, 6 Jul 2023 07:54:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlFcNgSAtMCr56BnUu6VF44Bx0bBvyaoIh/MOqG1JgIja1Q9hHE8VBYS2atRRq/yYMgvXyI2 X-Received: by 2002:a17:902:d509:b0:1b7:facb:2e79 with SMTP id b9-20020a170902d50900b001b7facb2e79mr1979956plg.18.1688655244072; Thu, 06 Jul 2023 07:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688655244; cv=none; d=google.com; s=arc-20160816; b=RdYeSjj4laHTW4fg/XA4iZkYs+6Ulu8bFHICxG7Q8mSXjlJlK14DuUyWESrBdpAtkN IybCHacrErxBD5V/pj5gNZ7jE0iOUoV7s3bTDK8oMm4D2QXnHwPPRh5imaU/RkfxCUkV 4K033oR6cD/1ym81VWnPjxZmxiWtVoOUEqJpzGuIyJqs8qOvYaL86nHop7Fy7d+K/imh mDwgwkrE/KFpfKhIcqgo3AOfFFY6ojDG2ZGn/MXjiLCiqRD+cQtGzrZnvubAeCsZE9gq SpSeVPfP+JHZSRIjMbqoE5nRyLq6gqTrlLNELdIDeMAJtV95RTI7dwOxlIWXl3AWTB6c QX+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=fyfUbQSETzEWvemqOE851lvgUnh/NkXs0bSTrstNyr8=; fh=+tCxAw2Tems2+D3rjipH27YmmN3C3ykIgNaDf5VHEks=; b=YIWAj4TmbLTrLSzppnioWK90i+1qhbcPqXgfu8SmiNu9+2Y6i1MD6Q+ybagOqpkHGB ZXAmuk5MKxkNd4MfP4MfyJ7phO+ejMHWqcxoEtjVnowC91PpomzGQ+ic7gU3n+xb3pnT iYO907pqCojwGiTfc5o+eQMe6ZZYyIPolLrqMbbodW5uq+CFcwBaDrSxSvG1f7rlkAAa IA3nqg2/8GYLks0yJIoeoST+qgd1jwthhLRAhV1ibrzo/dOjkux/OVOiBr7EHYCVhbzM QqTEP2WkcwdnjHNv3CqVXmy/9Kf1hcHXtqImM5xga7nd/bg+4FZXHf1jGE0PAunIKbod Ld0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxtx.org header.s=google header.b=i2Un2fu7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=fedoraproject.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020a170902da8b00b001b8c6890595si1035926plx.310.2023.07.06.07.53.50; Thu, 06 Jul 2023 07:54:04 -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=@linuxtx.org header.s=google header.b=i2Un2fu7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=fedoraproject.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233490AbjGFOwh (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 10:52:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233421AbjGFOwY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 10:52:24 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E4ED1FE1 for <linux-kernel@vger.kernel.org>; Thu, 6 Jul 2023 07:52:10 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-7659924cd9bso87796585a.1 for <linux-kernel@vger.kernel.org>; Thu, 06 Jul 2023 07:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxtx.org; s=google; t=1688655129; x=1691247129; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=fyfUbQSETzEWvemqOE851lvgUnh/NkXs0bSTrstNyr8=; b=i2Un2fu71+vZBbntcXyVTNvEdBIziZ1L1uzjczm6qGVJ0CcOsqnSyQlN1MIb5HRjl/ blyyG7I4BbHEFeKIY7zcCUXcy3fvaNpk6nm48dG9XlvMphfL1yAOussSZ87hQ1B4qUJt 9KxljrOCEWESkbhuCN4agXIrZhw9jsey0wGD8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688655129; x=1691247129; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fyfUbQSETzEWvemqOE851lvgUnh/NkXs0bSTrstNyr8=; b=bRw/t2rWSJr0WffOZY73Vxkm5OBgLPVWU4p4WqhajyNh0C/nnQX2vUwbgEjQG/v7np lr2ZowbTS6iVPn729wkUeC6+vGEWoTKiZYJummFpcCC83YBVDKh6swVey9TiPK9tZFcS DhDGQBYslXmS4dgRHHn2iLwRhOb23X/R9X3xxt0E8I98k7S6JOPGsbkn9ZP3ijJKycaK xTmkKuB3nWG+S66XCh+MqpH7SknVKW2VwlEHXFJJIdhAmvQtrFUe5CY4douU78wvUWDU 7cKuvUstdQZMe55ejUbO+MgF2QD/aOREmWi8+38Yx6SFmpuRMU/o0ASuNB+oH5J40wqf VvTA== X-Gm-Message-State: ABy/qLZapt1Bsmg3xuBx1OVxU8Wj9brQPpoSpiWE81bwdSWRzLD1rgw5 y9br7M/6To0pWahjhm3zY2k0IQ== X-Received: by 2002:a05:620a:44d3:b0:765:6556:1113 with SMTP id y19-20020a05620a44d300b0076565561113mr3065592qkp.46.1688655129166; Thu, 06 Jul 2023 07:52:09 -0700 (PDT) Received: from fedora64.linuxtx.org ([99.47.93.78]) by smtp.gmail.com with ESMTPSA id ou23-20020a05620a621700b00767303dc070sm836984qkn.8.2023.07.06.07.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 07:52:08 -0700 (PDT) Sender: Justin Forbes <jmforbes@linuxtx.org> From: "Justin M. Forbes" <jforbes@fedoraproject.org> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Jacob Keller <jacob.e.keller@intel.com>, "Justin M. Forbes" <jforbes@fedoraproject.org>, Andrew Lunn <andrew@lunn.ch>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jmforbes@linuxtx.org Subject: [PATCH] Move rmnet out of NET_VENDOR_QUALCOMM dependency Date: Thu, 6 Jul 2023 09:51:52 -0500 Message-Id: <20230706145154.2517870-1-jforbes@fedoraproject.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770683361036494221?= X-GMAIL-MSGID: =?utf-8?q?1770683361036494221?= |
Series |
Move rmnet out of NET_VENDOR_QUALCOMM dependency
|
|
Commit Message
Justin M. Forbes
July 6, 2023, 2:51 p.m. UTC
The rmnet driver is useful for chipsets that are not hidden behind
NET_VENDOR_QUALCOMM. Move sourcing the rmnet Kconfig outside of the if
NET_VENDOR_QUALCOMM as there is no dependency here.
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
---
drivers/net/ethernet/qualcomm/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Thu, 6 Jul 2023 09:51:52 -0500 Justin M. Forbes wrote: > The rmnet driver is useful for chipsets that are not hidden behind > NET_VENDOR_QUALCOMM. Move sourcing the rmnet Kconfig outside of the if > NET_VENDOR_QUALCOMM as there is no dependency here. > > Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org> Examples of the chipsets you're talking about would be great to have in the commit message.
On Thu, Jul 6, 2023 at 10:44 AM Jakub Kicinski <kuba@kernel.org> wrote: > > On Thu, 6 Jul 2023 09:51:52 -0500 Justin M. Forbes wrote: > > The rmnet driver is useful for chipsets that are not hidden behind > > NET_VENDOR_QUALCOMM. Move sourcing the rmnet Kconfig outside of the if > > NET_VENDOR_QUALCOMM as there is no dependency here. > > > > Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org> > > Examples of the chipsets you're talking about would be great to have in > the commit message. The user in the Fedora bug was using mhi_net with qmi_wwan. Justin > pw-bot: cr >
On Fri, 7 Jul 2023 11:50:16 -0500 Justin Forbes wrote: > > On Thu, 6 Jul 2023 09:51:52 -0500 Justin M. Forbes wrote: > > > The rmnet driver is useful for chipsets that are not hidden behind > > > NET_VENDOR_QUALCOMM. Move sourcing the rmnet Kconfig outside of the if > > > NET_VENDOR_QUALCOMM as there is no dependency here. > > > > > > Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org> > > > > Examples of the chipsets you're talking about would be great to have in > > the commit message. > > The user in the Fedora bug was using mhi_net with qmi_wwan. Hm, if anything mhi_net should not be sitting directly in drivers/net/ I don't think this is a change in the right direction, just enable VENDOR_QUALCOMM? Or am I missing something?
On Fri, Jul 7, 2023 at 4:12 PM Jakub Kicinski <kuba@kernel.org> wrote: > > On Fri, 7 Jul 2023 11:50:16 -0500 Justin Forbes wrote: > > > On Thu, 6 Jul 2023 09:51:52 -0500 Justin M. Forbes wrote: > > > > The rmnet driver is useful for chipsets that are not hidden behind > > > > NET_VENDOR_QUALCOMM. Move sourcing the rmnet Kconfig outside of the if > > > > NET_VENDOR_QUALCOMM as there is no dependency here. > > > > > > > > Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org> > > > > > > Examples of the chipsets you're talking about would be great to have in > > > the commit message. > > > > The user in the Fedora bug was using mhi_net with qmi_wwan. > > Hm, if anything mhi_net should not be sitting directly in drivers/net/ > > I don't think this is a change in the right direction, just enable > VENDOR_QUALCOMM? Or am I missing something? Enabling it is not a problem, but it seems that if devices not hidden behind VENDOR_QUALCOMM are able to use rmnet, then it is incorrect for rmnet to be hidden behind VENDOR_QUALCOMM. I have already enabled everything for Fedora users, so I am not worried about how to support my users, just a matter of correctness, and the fact that Kconfig deps are more difficult for people to understand in general. Someone reading online hears they need to turn on rmnet, so they add an entry for it, and don't realize that the entry is ignored because VENDOR_QUALCOMM is not enabled. Either all devices capable of using rmnet should be hidden behind VENDOR_QUALCOMM or rmnet should not be. Justin
On Fri, 7 Jul 2023 17:19:12 -0600 Justin Forbes wrote: > they add an entry for it, and don't realize that the entry is ignored Maybe that someone should not be "adding an entry" to a file which has this at the top: # # Automatically generated file; DO NOT EDIT. ? > VENDOR_QUALCOMM is not enabled. Either all devices capable of using > rmnet should be hidden behind VENDOR_QUALCOMM or rmnet should not be. I agree that Qualcomm drivers are an atrocious mess. They should live neatly in the wwan section. But it's Qualcomm, they don't care. Let's not have it sprawl even more.
diff --git a/drivers/net/ethernet/qualcomm/Kconfig b/drivers/net/ethernet/qualcomm/Kconfig index 9210ff360fdc..5beebe6b486e 100644 --- a/drivers/net/ethernet/qualcomm/Kconfig +++ b/drivers/net/ethernet/qualcomm/Kconfig @@ -61,6 +61,6 @@ config QCOM_EMAC low power, Receive-Side Scaling (RSS), and IEEE 1588-2008 Precision Clock Synchronization Protocol. -source "drivers/net/ethernet/qualcomm/rmnet/Kconfig" - endif # NET_VENDOR_QUALCOMM + +source "drivers/net/ethernet/qualcomm/rmnet/Kconfig"