Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2183372pxb; Tue, 12 Oct 2021 00:47:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoQu9J5wQRzGTempIPGBKmud8rZF1pnPu1mJdSm0gP0lQSreexRViV3diHCMdcS+QxIobS X-Received: by 2002:a63:3409:: with SMTP id b9mr21678536pga.168.1634024847218; Tue, 12 Oct 2021 00:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634024847; cv=none; d=google.com; s=arc-20160816; b=zGF9ZASnYmDtdaEabF8LN+9P5vPc7fIrGFWWcrXelV/kBjKZJoNevSwp8si9lHgdn6 /skyywiw5cg1EN9pZGWBHMgpTQJcRvA32VcnEYRwVLD1LMmURnEerBToZK6f7HfTXjk2 xzFgbjNmY8kvKXpzh5I7BxALR0hRVLRxRtxXpV3Mi/3ZHHP1Up4lQYr8r41vUfl3e4kF EjarUCKcR+vgP7/QQlIf1t/d/jMwA3XP9fvD8v0gFA75bLCRkiE/YWP1jr+Ts4bitonJ 1biJDPFkNLq8VSnMhTmwgWQHXeR8apohW5o2PE2d4gzmZbQZAy5iepcXKKiilpCmtRWB FL1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Wi0c4tUU6/JGllRDmGdUEE9qbUz1Hxlfkgo8Ug//VqI=; b=RIHPExqB+g9amZ7/R2V7m0j3yjulVUX95rTneeytLzDTXPwJ7ciop8l4QxR4JV4rKa W+rZIPdPNmBL8nEeLpoZiKV0UBORqv2iD3TH1inSUoMY4KIC/GwMUhxSgJ+bQJeL6cHz i4B7EDpJylgEHMSJA+z3tw333Z1GGJg9HjfbnzKL6Ma0BZPYgwhyFuzg7mRXeyYgbkuE 5ZcpuHrRSbttohLoyP7prOsEBGYV/hu0khpeQfwdgjEGiwMPp0F3/DVoLTq3W+zWRxRO g3g3V7Ohv66tqn6QbdnT4jvEdTqiJJsL0GCkc3KT+KqKf56E0tWx0l+xeppPWO8Znup8 j8jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OUxL16y8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si8136062pgk.506.2021.10.12.00.47.15; Tue, 12 Oct 2021 00:47:27 -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; dkim=pass header.i=@linaro.org header.s=google header.b=OUxL16y8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232565AbhJLHr6 (ORCPT + 99 others); Tue, 12 Oct 2021 03:47:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234411AbhJLHrz (ORCPT ); Tue, 12 Oct 2021 03:47:55 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 153ABC061762 for ; Tue, 12 Oct 2021 00:45:53 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id d13-20020a17090ad3cd00b0019e746f7bd4so1299420pjw.0 for ; Tue, 12 Oct 2021 00:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Wi0c4tUU6/JGllRDmGdUEE9qbUz1Hxlfkgo8Ug//VqI=; b=OUxL16y8OmpzrNyur4IFOl0tTdwiz9ylmxi9Jz2OpNnLfrhiIcxcYNAKAtWNt5nRLP c7ip3cn40UaBwURsC/aeYBU5Xg3qM7yswY4I7N1K6tce9m0PPyjVuLQrwdbTFO2iWs6S O5TcZDGIOg+GE93gGGafo79sbCW61kSV65N8sff/xeVhNe6kQtp3ZeQU9OCtUl6EsdGU 4Ypz3M5x1LHJ2ICYAufaJ1YX2k9P30nz41mdEuLU9/JMmYDuUTr8Ck85Om35SwC6S9+L 8ZDjqICUBLABNaiQ5kDBjWvI7JgX9cyAjJ+V3CpsLjM6i/guib33L8AzcMJ3KtXdcSNh Fefg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wi0c4tUU6/JGllRDmGdUEE9qbUz1Hxlfkgo8Ug//VqI=; b=paMy9FG7zHf3I3quO6Ikjv9KJo2tEUl2HQ0kvtaZr5rYDhs79C0hZL7Q2mkA+i10op dHBdtvUXa1PHLnMW6HZDCL3z/hVjs2jQJFhkSWm5fOe9+4vbwOQm/t1hWKigwxQATLbT qETRfpRzdWM9IsSqqCf0j4HUCEObGSdqDt4SvtuRipEgojt9UkccQbAIBNshXsVmXCDz LIJuu8PQHwq2GbSY95w49AjTixnPzr6EKtYdxgw52SbfueGLXhgsEy/T89JxTZ7C8SC2 mXrl+jhxEzMWdkCrEw7bFeZjQfvFomdfRv/uSH+IgE5vziD+o5Z47bTZMo3+i3GYJ7KJ UQtg== X-Gm-Message-State: AOAM530PXPON9iCPLsLkRU9fstN2+KbdgQg/9lED2yP2qaRp7GRhuNuS aufgkKZMsGGgJt9D+Q2SCoEXqNXdUcN3ZzCjskkeqg== X-Received: by 2002:a17:90b:370f:: with SMTP id mg15mr4208394pjb.209.1634024752384; Tue, 12 Oct 2021 00:45:52 -0700 (PDT) MIME-Version: 1.0 References: <20211011141733.3999-1-stephan@gerhold.net> <20211011141733.3999-5-stephan@gerhold.net> In-Reply-To: From: Loic Poulain Date: Tue, 12 Oct 2021 09:55:48 +0200 Message-ID: Subject: Re: [PATCH net-next v2 4/4] net: wwan: Add Qualcomm BAM-DMUX WWAN network driver To: Stephan Gerhold Cc: "David S. Miller" , Jakub Kicinski , Sergey Ryazanov , Johannes Berg , Bjorn Andersson , Andy Gross , Vinod Koul , Rob Herring , Aleksander Morgado , Network Development , linux-arm-msm , dmaengine@vger.kernel.org, devicetree , open list , phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jeffrey Hugo Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephan, On Mon, 11 Oct 2021 at 16:51, Stephan Gerhold wrote: > > Like in the RFC version [1], the driver does not currently use the link > > management of the WWAN subsystem. Instead, it simply exposes one network > > interface for each of the up to 8 channels. > > > > This setup works out of the box with all available open-source userspace > > WWAN implementations, especially ModemManager (no changes needed). > > oFono works too although it requires minor changes to support WWAN control > > ports (/dev/wwan0qmi0) which are independent of BAM-DMUX (already provided > > by the "rpmsg_wwan_ctrl" driver). > > It was easy to support because the setup is very similar to ones already > > supported for USB modems. Some of them provide multiple network interfaces > > and ModemManager can bundle them together to a single modem. > > > > I believe it is best to keep this setup as-is for now and not add even > > more complexity to userspace with another setup that works only in this > > particular configuration. I will reply to this patch separately to explain > > that a bit more clearly. This patch is already long enough as-is. :) > > > > [1]: https://lore.kernel.org/netdev/20210719145317.79692-5-stephan@gerhold.net/ > > > > The main goal of the WWAN link management is to make the multiplexing > setup transparent to userspace. Unfortunately it's still unclear to me > how or even if this can be achieved for the many different different > setups that exist for Qualcomm modems. To show that more clearly I'll > "briefly" list the various currently supported setups in ModemManager > (there might be even more that I am not even aware of). The goal is also to have a common hierarchy, with the network link being a child of the WWAN device, as for the control ports. Making it easier for the user side to find the relation between all these devices. Moreover, it allows having a common set of attributes, like the LINK ID, and possibly new ones in the future. I mean it's probably fine if you create a static set of network devices and do not support dynamic link creation, but I think they should be created in some way via the WWAN subsystem, and get the same attributes (link id), we can have special meaning link ids (-1) for e.g. non context specific netdevs (e.g. for rmnet/qmap transport iface). Regards, Loic