Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2760445rwb; Wed, 30 Nov 2022 10:28:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7BmYEEe7vN7mVajhhqVCyCnf5FBoxEruE5qRyg/6BKPG/WHqW8gvHRXtAxvjlYpvbQiPxz X-Received: by 2002:a05:6402:1a:b0:467:30ad:c4ca with SMTP id d26-20020a056402001a00b0046730adc4camr57090607edu.285.1669832886857; Wed, 30 Nov 2022 10:28:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669832886; cv=none; d=google.com; s=arc-20160816; b=CuNIhPoMcuRn88UjL4okVFnCbc7JyDrlTsVov3tPjQWYBbn7KHP7Q2MAjGmUmQDEd+ gtwFqAExDssNbJym87Xwg6eBWmzhPbfLl8RA/OJv1Z/s3QPrPi1XA+T0GHdd+IbdrosM OMPff+GTi4vzA9jDNJqY7mxA4T7NZNGWJCzvStHdrhNW+8Q7k7tYkzzCGeIbAdnz7Oef QiAADftbUWYjO9TU0EO8fn3lc/uYKCKqNPr2d8DIB2a6L4OXgZT8Zxbqz2LA22mHfMu7 Lwjmr8x1p8hS7GhuKq9IltQi6vNIem9KhrfeJ7KqER2IcC0GUYC3FC2fR6HuGy98RbEx wKjg== 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; bh=AK8P6Fl6Gl8hJBklqr3lYKP7boOFbdA07yIc5/BbDqg=; b=br9klHcCK1MupAIqDsEz8JUoJmSh2Py2jsyu5yzBc+R0suRGctY4UKUKZMI+V/3JoQ FqNCvx8vz/17MywjkqVITNLfoWxMAohcuhW4svK/7D3smt7FyrfUWeKeck3BQ/+lgtZC NTWedci2GBNajp7yBW8FgJD5x25uIGerKLRf/x2Crvjw2JcW4k9XnwclcK+ZwVa0e4nL of7HSSFy/FFJ7HUUwBu4lTjbRKtcaQhzAZ7d/S0OhtDpPDlQq0mRcWK5CaOeLvXe0sW/ jtrjxc4EEpkpeW6MYD7fpqPUBKkbUl/21V83yulA/LpC6qIlKDSms+/52AtxOqtdJdNV PMIg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g23-20020a170906349700b007addbdb9fbbsi1481618ejb.558.2022.11.30.10.27.43; Wed, 30 Nov 2022 10:28:06 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbiK3Rwb (ORCPT + 84 others); Wed, 30 Nov 2022 12:52:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbiK3Rw3 (ORCPT ); Wed, 30 Nov 2022 12:52:29 -0500 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D1D9252; Wed, 30 Nov 2022 09:52:29 -0800 (PST) Received: by mail-pg1-f178.google.com with SMTP id v3so16773348pgh.4; Wed, 30 Nov 2022 09:52:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=AK8P6Fl6Gl8hJBklqr3lYKP7boOFbdA07yIc5/BbDqg=; b=6X8YncQRGlE0XHdc1b3knET9M7FwaKOlVghZq7Fi7I3bh9nLsTVVcIwTfbaMYCyM83 H52wGLZ/wnC+z59CmgWuQ1dJQ3hcaTvauDII7K9kcwzO4nJhLnADkb5pu1/HaJiDBXHh eWc7Idvv9/zsbNkeX7YAWUx8VfvRNm0DiwAtc+7XBORNBGGi+db8jsstQAsmPHTaJJsw ZKGggdORoI4tkwJFuPY9fg8amGI3DZSXbUdrDcP//aoU7x/nvkuc9MT3xEfA3rv+w2RM 49puIkS8ZVT31CcKryM+r6wy6HjmaeS6/O1clZbmaS4tX+SMd4cN/Hgp464MdJ6ejzrN W/jg== X-Gm-Message-State: ANoB5plLsjgHeFq/Sq3KKVU+DteBcVYHg9UbLYN3YmV/zcIQM20wgU+k 1YgAkMQ4UJ54zuXXTn1jhiqnGrXiQw+yn+vn2Do= X-Received: by 2002:a63:1955:0:b0:477:50ed:6415 with SMTP id 21-20020a631955000000b0047750ed6415mr45496852pgz.535.1669830748612; Wed, 30 Nov 2022 09:52:28 -0800 (PST) MIME-Version: 1.0 References: <20221129031406.3849872-1-mailhol.vincent@wanadoo.fr> <20221130170351.cjyaqr22vhqzq4hv@pengutronix.de> In-Reply-To: <20221130170351.cjyaqr22vhqzq4hv@pengutronix.de> From: Vincent MAILHOL Date: Thu, 1 Dec 2022 02:52:17 +0900 Message-ID: Subject: Re: [PATCH net-next v2] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER To: Marc Kleine-Budde Cc: Jiri Pirko , Jiri Pirko , Jakub Kicinski , "David S . Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , linux-can Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu. 1 Dec. 2022 at 02:14, Marc Kleine-Budde wrote: > On 29.11.2022 18:28:44, Vincent MAILHOL wrote: > > On Tue. 29 Nov. 2022 at 17:33, Jiri Pirko wrote: > > > Tue, Nov 29, 2022 at 04:14:06AM CET, mailhol.vincent@wanadoo.fr wrote: > > > >As discussed in [1], abbreviating the bootloader to "bl" might not be > > > >well understood. Instead, a bootloader technically being a firmware, > > > >name it "fw.bootloader". > > > > > > > >Add a new macro to devlink.h to formalize this new info attribute name > > > >and update the documentation. > > > > > > > >[1] https://lore.kernel.org/netdev/20221128142723.2f826d20@kernel.org/ > > > > > > > >Suggested-by: Jakub Kicinski > > > >Signed-off-by: Vincent Mailhol > > > >--- > > > >* Changelog * > > > > > > > >v1 -> v2: > > > > > > > > * update the documentation as well. > > > > Link: https://lore.kernel.org/netdev/20221129020151.3842613-1-mailhol.vincent@wanadoo.fr/ > > > >--- > > > > Documentation/networking/devlink/devlink-info.rst | 5 +++++ > > > > include/net/devlink.h | 2 ++ > > > > 2 files changed, 7 insertions(+) > > > > > > > >diff --git a/Documentation/networking/devlink/devlink-info.rst b/Documentation/networking/devlink/devlink-info.rst > > > >index 7572bf6de5c1..1242b0e6826b 100644 > > > >--- a/Documentation/networking/devlink/devlink-info.rst > > > >+++ b/Documentation/networking/devlink/devlink-info.rst > > > >@@ -198,6 +198,11 @@ fw.bundle_id > > > > > > > > Unique identifier of the entire firmware bundle. > > > > > > > >+fw.bootloader > > > >+------------- > > > >+ > > > >+Version of the bootloader. > > > >+ > > > > Future work > > > > =========== > > > > > > > >diff --git a/include/net/devlink.h b/include/net/devlink.h > > > >index 074a79b8933f..2f552b90b5c6 100644 > > > >--- a/include/net/devlink.h > > > >+++ b/include/net/devlink.h > > > >@@ -621,6 +621,8 @@ enum devlink_param_generic_id { > > > > #define DEVLINK_INFO_VERSION_GENERIC_FW_ROCE "fw.roce" > > > > /* Firmware bundle identifier */ > > > > #define DEVLINK_INFO_VERSION_GENERIC_FW_BUNDLE_ID "fw.bundle_id" > > > >+/* Bootloader */ > > > >+#define DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER "fw.bootloader" > > > > > > You add it and don't use it. You should add only what you use. > > > > I will use it in this series for the linux-can tree: > > https://lore.kernel.org/netdev/20221126162211.93322-4-mailhol.vincent@wanadoo.fr/ > > > > If it is a problem to send this as a standalone patch, I will then > > just add it to my series and have the patch go through the linux-can > > tree. > > As you have the Ok from Greg, include this in you v5 series. This is a different patch. Greg gave me his ACK to export usb_cache_string(): https://lore.kernel.org/linux-usb/Y3zyCz5HbGdsxmRT@kroah.com/ This is a new patch to add an info attribute for the bootloader in devlink.h. Regardless, I added it to the v5: https://lore.kernel.org/linux-can/20221130174658.29282-5-mailhol.vincent@wanadoo.fr/ @Jakub (and other netdev maintainers): do not pick this, it will go through linux-can. Yours sincerely, Vincent Mailhol