Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2155384rdb; Thu, 21 Sep 2023 10:00:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5XmiFyVVpalUsstQR8jJt0p8pai+zWg7tpA/cr1MwDD0dNmdSWAPpr5PBlwzSUnPM+bWh X-Received: by 2002:a05:6a00:248f:b0:68f:cd71:45d5 with SMTP id c15-20020a056a00248f00b0068fcd7145d5mr7031807pfv.3.1695315614245; Thu, 21 Sep 2023 10:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695315614; cv=none; d=google.com; s=arc-20160816; b=ldcR1A/jW+UH/jmQ99237JhI6P/K/yfL8LI3Q+wGb6Q6QUCl8hHOjXXE8cvIyPO32W r6+gfswFr76PPKEqd09688++l/Fqq03JQq+/QLm2Y9mqYwrY7dDu/MRjjyKYbly099E5 W3dkabQugPj7gvJh/TjVQo182Q4XON46vDLuSlFLfx/d1srVv1mqzot/dDr3iubU3sp+ JLXMYc8LPRKOw+rUbxWolMvQa2KLjrlI4ndp8zWKq7Zp2c7cGhgNzKMXYVgIOeAgrv2e 3cmw1icFkUDgMZIcJbqfoFmw/fIbt9rGTm5nXELIhxjEFQTdeP1kiqnIiIf48x/fqETu yaNA== 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=Drrb5cgIdX9bQlcJOAIQy6p22Hd1U/QgsuYhc+HIXtc=; fh=/e+Lhasw9TfYGv2ki9H/0YlXH4p+0gz12HWrpc1xFCA=; b=vgmOc45189oW1pm7oi/b869uOtj5zS8FkKssydmAm7iE8HOgK4Fj1XPaKy1x2mgL3R aEn5diPcmOds9LDWvg0hMV5u6Coks47dfqB+En1YC/3k5XEtq7fvIKc4qZqFSP/zFRoy vbiSTCyYl6eWTH6+PjV9yzZQc1HGSfds3c7I1cMyGCkU/1x/LBLxFe175UwACSNy3Cux I9PyamXMAz0Zd1KMyf17VeR+c+JQ+yTwD5FXg1cE/q9dXdpxV1l/bHAuONtyMwooQXcP 9SK0GzcMMNrURN1zLag54+0F4W/vW39mTw+tKKcCEvuTTZLPq81x30TdFWqitKa4/QmZ 8hog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ciuzlhmb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id cu2-20020a056a00448200b0068fc7ab1fd5si1807510pfb.269.2023.09.21.10.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 10:00:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ciuzlhmb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8F1578225F09; Thu, 21 Sep 2023 09:59:46 -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 S229544AbjIUQ6l (ORCPT + 99 others); Thu, 21 Sep 2023 12:58:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjIUQ6k (ORCPT ); Thu, 21 Sep 2023 12:58:40 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3B39128 for ; Thu, 21 Sep 2023 09:58:09 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-405361bb93bso7490625e9.3 for ; Thu, 21 Sep 2023 09:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695315485; x=1695920285; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Drrb5cgIdX9bQlcJOAIQy6p22Hd1U/QgsuYhc+HIXtc=; b=ciuzlhmbvucY7t8kFwQX7szPJX/8c0YZah6t/QI7qYXYOF6Ge7rcZGhwWD4lwbtUs4 HwFTgaBHYWHxgM/IZfL7U1ciIOLHqLY/U29HvPeDNAdcKl5or5t8+6d5s8RftIrHn6jv BBV9KlTj3SN55VyazRRUGQ75L97JWIJWWgba0hg9VVvfy9NTsNklNAq7RjSPH0PQlJIl /isO1dtcIZq8z4gBaizh1tnau7xH8w+YNAhdDDFzJkuaZrhX5SVQtqdAPYGd7XkroY7q GAFcmSnE6Nm5evwih3is+Vey/MqWo0CXMxRAEHasAe+5guElvkhb5VvLpLUDClD2ILsf yBHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695315485; x=1695920285; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Drrb5cgIdX9bQlcJOAIQy6p22Hd1U/QgsuYhc+HIXtc=; b=Rg75M993zoZVeYzRHJNJNNhoFTAZ5O0yZYU/PyysRXierX4fnG3K0Lq/ke15jvGVo9 JkyZkGJBKCxmZ8+xXBOFp1aAHsbtiyHjKzmbBZWCo//1r+8/gZhSgfW5B81U4LqD6hR0 PZwaUzlKsOAITYJdOQVYlSPxwGIlWskfW7RNQ71WubhEdxMBoG4jeG/tEQ/odaylVwnU PD9+9Pav5xnAVx7pq9myH6szTBAUq1FoW/XDbb7yDXnAdBE7JSRdhmbZN5vAzwmA9Uq4 fjxwUlpKDzEwC4a6cpprCPTnw6VlB/PBrEd8x2i/0Z6JUpTiPOwKqlMEgvUoCCHw9NJW IiOw== X-Gm-Message-State: AOJu0YyxW95jBm0epAWm7n7t8R5I38xTi0mMSSXXA6eUBH6FQ8+p1ZDK TETD3kQCsTJoRn1avO8T23sp1+K+hUvPU3ibPcFQn1SlZ6cJv4pG90IiFw== X-Received: by 2002:a05:6402:3228:b0:533:f22:17b9 with SMTP id g40-20020a056402322800b005330f2217b9mr3895347eda.19.1695289023375; Thu, 21 Sep 2023 02:37:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Loic Poulain Date: Thu, 21 Sep 2023 11:36:26 +0200 Message-ID: Subject: Re: [net-next v4 0/5] net: wwan: t7xx: fw flashing & coredump support To: Jiri Pirko Cc: Jinjian Song , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, corbet@lwn.net, 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.3 required=5.0 tests=DATE_IN_PAST_06_12,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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]); Thu, 21 Sep 2023 09:59:46 -0700 (PDT) On Wed, 13 Sept 2023 at 11:17, Jiri Pirko 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. The t7xx driver already has regular wwan data and control interfaces registered with the wwan framework, making it functional. Here the exposed low level resources are not really wwan/class specific as it is for firmware upgrade and coredump, so I think that is why Jinjian chose the 'feature agnostic' devlink framework. IMHO I think it makes sense to rely on such a framework, or maybe on the devcoredump class. That said, I see the protocol for flashing and doing the coreboot is fastboot, which is already supported on the user side with the fastboot tool, so I'm not sure abstracting it here makes sense. If the protocol is really fasboot compliant, Wouldn't it be simpler to directly expose it as a new device/channel? and rely on a userspace tool for regular fastboot operations (flash, boot, dump). This may require slightly modifying the fastboot tool to detect and support that new transport (in addition to the existing usb and ethernet support). Regards, Loic