Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp377932rdf; Fri, 3 Nov 2023 03:42:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHD84YWV1DqAhiNFd3JyQZppFGuZReUkHEKzoD+EzlJleUrKJJKqdXNtPg3++C1Puf5KSkD X-Received: by 2002:a17:902:ea0a:b0:1cc:4a83:d839 with SMTP id s10-20020a170902ea0a00b001cc4a83d839mr3261283plg.17.1699008120400; Fri, 03 Nov 2023 03:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699008120; cv=none; d=google.com; s=arc-20160816; b=yNB99XvRaGDT95Yf6a5m/Oicev9VaN0dff22pwpH3wij0aHvMrZChYhYWD8D+H5Emz pikBkh8jb+3lrUe96R8hZF/grVKkaU2vCbFkVXyEBuiKCleSsRaCX3Xr0jYygSWhwC+Y kgEK4vsGl2tcjv/OHV+pQgzxP9GqVp6aiTpp5kBs67BPoyduaiO5SNpU/sfUSLeVFrh3 BMRg0gV2lJNg0npWMjbB0oZexM7ITdpGMBczyjsfXeNbIun72fQh1hhcxMrUyuN2ODFD XsuCItxTuixVOOtS5eNy8x8VRpiq3CJdce0M9heceVtk2eQpCC9ux3L0pgd0E6AxyUeC xoUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qowZcZFtENqdS6RDrZcslmrzRycaDyxxB19iWvX3pwg=; fh=w69nGCaNnrJrAGd7uW2nih9qg+o/n7o9pvbVHuXIwWg=; b=HaDnqbnN2PU+781gxyiSUMJylv9arLQ0zcPNdvrN8/843IvE0NRtFnr95Si2T3Rfi7 n+CwPM96GOpOUwQpT4CBfoj1bJCYsWMGKgphTbArHruiLl6vC4ktPWxbm5aXUIt2HrZI TCoZ6bb3PPGNm3TP2huktl9DRqUP56qKBbvQ+LJMxxWTFGVFOJeSJUNyIhTXqx4ennGm lMLqInunV9GsDD60mbtLJPr12TWyIeIQC2FUfInik069qbvvMjDPJokrcJIklU8ukj6t hklvTbDgH7wSxxJnwC215CqnN7IzXydZfq6aSNWW3LJ/bEn8XHnkGFMBYTyetx3n4KMB gAlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=kwxXzDgE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id lh13-20020a170903290d00b001c60636e426si1265958plb.432.2023.11.03.03.41.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 03:42:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=kwxXzDgE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id CCBCF81C7093; Fri, 3 Nov 2023 03:41:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229486AbjKCKlp (ORCPT + 99 others); Fri, 3 Nov 2023 06:41:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229939AbjKCKlm (ORCPT ); Fri, 3 Nov 2023 06:41:42 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 141D31BF for ; Fri, 3 Nov 2023 03:41:39 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40839807e82so11902655e9.0 for ; Fri, 03 Nov 2023 03:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1699008097; x=1699612897; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qowZcZFtENqdS6RDrZcslmrzRycaDyxxB19iWvX3pwg=; b=kwxXzDgEHUufQx6+WHj008hWYewIqAs0ex/GP3sTjG9huQAinA6s8EVtk8Dh/6nIa5 jF0Vt/SmmZKTCs2RKQGDH3106jl0RiO718NxMih6NECj49pl9H0yBNaAaJzI/xEDq0Dz IUp6CGpXOIU5PM6y5Un4BTA0VknDAzvHfPufQN4bxumrItnFdMQCS0rl9mzvjECVSmOZ FB+NbYSZxb8pdwmRg1yUP3CHQUEJcM7jS3mDoOki4GD24XYUr3OPZHiLzyiyUN/wBF/f KXUJ371UA7cc4YxtuadtVN/AjtAYDC3kckHp59M5he2/ABn62NTb4tPzx5yVgGtbAre+ jJ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699008097; x=1699612897; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qowZcZFtENqdS6RDrZcslmrzRycaDyxxB19iWvX3pwg=; b=fZ3pfBaEkyvQ6cLqgodc0Q5KNCaR9siEoOD3zEbgt3dni4OAcGg56UW2i6t/oBBwJ7 i8WhFtj4EeiV8HOrbagKtXYlzt55ws8pAHyLi+XxJ65ztwk6BWcB8XYv0zpWWKpZa+5+ 6Kun2hWvtepfJ+hSXJ3JqYyNEhUgCPjr/d9NN/XOa+5cpZipDEzhsYpPcrqOzZZecUmZ 2iwZy3UlZ3W4ozQ4dFCyFYEuYx9xHGVqQ4PqzdOUHTbOwck4Urv0teeWCOdMlLWJOOrn MRS0+2zrcgpC2Qppuv1iH6EzAv2h54pqefEmskuJGV9RVoLHgU6T0f713Hq5tlR7rZMk iPwg== X-Gm-Message-State: AOJu0YzBEsWoxiLqsVBmKHs7Og6lFumGD2zBaZlvD2JvxrMvpbQXgyR1 Xl6iguz1eeZ+x5ts8g+WY1m33A== X-Received: by 2002:a05:600c:358f:b0:405:19dd:ad82 with SMTP id p15-20020a05600c358f00b0040519ddad82mr2800252wmq.16.1699008097331; Fri, 03 Nov 2023 03:41:37 -0700 (PDT) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id ha7-20020a05600c860700b004080f0376a0sm1950311wmb.42.2023.11.03.03.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 03:41:36 -0700 (PDT) Date: Fri, 3 Nov 2023 11:41:35 +0100 From: Jiri Pirko To: "SongJinJian@hotmail.com" Cc: "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "corbet@lwn.net" , "loic.poulain@linaro.org" , "ryazanov.s.a@gmail.com" , "johannes@sipsolutions.net" , "chandrashekar.devegowda@intel.com" , "linuxwwan@intel.com" , "chiranjeevi.rapolu@linux.intel.com" , "haijun.liu@mediatek.com" , "m.chetan.kumar@linux.intel.com" , "ricardo.martinez@linux.intel.com" , "netdev@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "nmarupaka@google.com" , "vsankar@lenovo.com" , "danielwinkler@google.com" Subject: Re: [net-next v4 0/5] net: wwan: t7xx: fw flashing & coredump support Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 03 Nov 2023 03:41:56 -0700 (PDT) Mon, Sep 18, 2023 at 08:56:26AM CEST, SongJinJian@hotmail.com wrote: >Tue, Sep 12, 2023 at 11:48:40AM CEST, songjinjian@hotmail.com wrote: >>>Adds support for t7xx wwan device firmware flashing & coredump >>>collection using devlink. > >>I don't believe that use of devlink is correct here. It seems like a misfit. IIUC, what you need is to communicate with the modem. Basically a communication channel to modem. The other wwan drivers implement these channels in _ctrl.c files, using multiple protocols. Why can't you do something similar and let devlink out of this please? > >>Until you put in arguments why you really need devlink and why is it a good fit, I'm against this. Please don't send any other versions of this patchset that use devlink. > > Yes, t7xx driver need communicate with modem with a communication channel to modem. > I took a look at the _ctrl.c files under wwan directory, it seemed the implementation can be well integrated with QualCommon's modem, if we do like this, I think we need modem firmware change, maybe not be suitable for current MTK modem directly. > Except for Qualcomm modem driver, there is also an Intel wwan driver 'iosm' and it use devlink to implement firmware flash(https://www.kernel.org/doc/html/latest/networking/devlink/iosm.html), Intel and MTK design and use devlink to do this work on If that exists, I made a mistake as a gatekeeper. That usage looks wrong. > 'mtk_t7xx' driver and I continue to do this work. > > I think devlink framework can support this scene and if we use devlink we don't need to develop other flash tools or other user space applications, use upstream devlink commands directly. Please don't. > > Thanks. >>NACK.