Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp377514rdf; Fri, 3 Nov 2023 03:41:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjMdFVUumMS82yGGkJjckW1CXKQN8FzIWiofKHifMLC0iO3sCZk7Su8lshoBpn/QMbOjVJ X-Received: by 2002:a05:6a20:3d20:b0:181:6afb:b814 with SMTP id y32-20020a056a203d2000b001816afbb814mr6836613pzi.6.1699008062226; Fri, 03 Nov 2023 03:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699008062; cv=none; d=google.com; s=arc-20160816; b=E+WXdNU/N2S5hxmrE5+taizQ5X53SBnOi0T2oQUZTvY3EZE2SUpb5vNT1vujm/sP3P K7Cwblo/0LErvxNnWGAnPPSC8TTksYNRLOGWkpcaG1zy3XGTwZNVbB0hn724wyv17UWi JKjJ3ZRAe8I6jFG5r1vThkq+4RnWnR7QnqE2GMrH68hx4iGeaxcGezK2TxInE0jGBHtY aQ8ac0ntcxAQewMG2237WUM1Ti9qrCBQ6B1/Ot5Ptz1+Vt6h67S56TJY7zhhExyFLbxO p9VVUJj+fVBt67P2To7Nz/zN8JUtXO5byKxgV/HNF/meu1QlIo6CAjqQejIz0ZCJ/WiZ +HdQ== 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=Vy+FX8zGhNkWXszFiiW9K509Gia4V97/gsM6LXZa8JM=; fh=gaucIJ9E9BdXhz1ZFhiCPY4mxYTItR/wHdlEhdynwd4=; b=FOcwbZb4nPtKsWbwNsEmoMsVf57/ASnnPlQ0noVyMEOf/E3aBMZ69G1Gg79+gbIVEo Xc2mJytdIcUl7DT1Dqx2gsEsbqHQ9+4kwStC4Ofwzo6Z2/AO9Buv5/eSlc2ftas9WsKM Gh45oJ+YEMN9SHnmL3LseG3J/kaJOoWA6ZLdGAPuql2LKtOD3HZRYvTaAoiRpv7cUsbE gZ1vXN03MLGs2x8b/lTOBlRS6rgDkvZ9G39E5C89wVt5uBUqHaZ7SkjgaKzXAZY2FKgd MbdOK8bUIXUshmdZKXCDTc693omchhzk4N4IWTJT1BZG3sRehtSsg/XA3X5ZvFYlrNga L6jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=edFM2OZ3; 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 Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ks13-20020a170903084d00b001c61226fe40si1277250plb.392.2023.11.03.03.41.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 03:41:02 -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=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=edFM2OZ3; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 10D2F809D452; Fri, 3 Nov 2023 03:40:31 -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 S233352AbjKCKkO (ORCPT + 99 others); Fri, 3 Nov 2023 06:40:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbjKCKkJ (ORCPT ); Fri, 3 Nov 2023 06:40:09 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48C73187 for ; Fri, 3 Nov 2023 03:40:05 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40859c46447so12291945e9.1 for ; Fri, 03 Nov 2023 03:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1699008004; x=1699612804; 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=Vy+FX8zGhNkWXszFiiW9K509Gia4V97/gsM6LXZa8JM=; b=edFM2OZ3tAJzFgKae8lvg7aWbFPJuuDUoSEnDY0EjwuhB1muh5sSTAoZlZdUa+065o xS3NH26jZXyHyhUuYlA69BqLtK1a1/RcrRuWBb7BfoYAkOR6VgVwFb9QwYTv26huASZG ywsmMnwKCWtPTo8gHySTSYSg/ylKkLlBz5W2Oh46vcRZVaZwXhJaFcZ3H2SDgYOrh/rX cfN5xwxwy5Tm1kcqGiGcV8VvM+SClzctsG8kcsKOUDZIHNu7ICAJKYWZ5Ek5sFNyNz9+ 84L09sPhPDF87aFLWiJ2P0mET2ddJEQqUhLi53P711OI2Y1AIZVAGmC7Q0AuZZTm1E9x gJ6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699008004; x=1699612804; 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=Vy+FX8zGhNkWXszFiiW9K509Gia4V97/gsM6LXZa8JM=; b=UO9Cu0sE+I5hQGvdJ+upV9OXVWknk9WqbjDMmiRkYdweKbT4omSm48qP+GMkyvnE2S pOiyu+/RWdAE12iwZKAOd1YcPSD93pnhq7ldvdwq5gFP4t3fDZ0eKT0bILR1gXrRPAuL Kw/lM4C5aphSOlsoMwVrvR3+RHDme5RoD+fDlFpAifpsdn53EaqnmK4jfsui9YQjA5bw gKi/7pfYIutTnPCf6papARXS7nPBimvErljLqWrMfUpbjXfZxOhsxNgUreXPlw/Zm8sd ZNAXpB+7kPCBi5JIcFLO+wy3x3AL5+KXNiQe5thaD3RUiYtderz5pDIzTvAzbKvszOfL JWNw== X-Gm-Message-State: AOJu0Yz+HjF7+TLQkzIz0MR7CBQug1YyNdvmuwnaGM4mTtQ+2FqNpLxO pfyPmOJCxU4tra25Mo6cqkjvHg== X-Received: by 2002:a05:600c:1d95:b0:409:375:5a44 with SMTP id p21-20020a05600c1d9500b0040903755a44mr17399496wms.24.1699008003596; Fri, 03 Nov 2023 03:40:03 -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 az25-20020a05600c601900b004095874f6d3sm2090103wmb.28.2023.11.03.03.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 03:40:02 -0700 (PDT) Date: Fri, 3 Nov 2023 11:40:01 +0100 From: Jiri Pirko To: Loic Poulain 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 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:40:31 -0700 (PDT) Thu, Sep 21, 2023 at 11:36:26AM CEST, loic.poulain@linaro.org wrote: >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). Sounds sane. Please let devlink out of this. > >Regards, >Loic