linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER
@ 2022-11-29  3:14 Vincent Mailhol
  2022-11-29  8:28 ` Jiri Pirko
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent Mailhol @ 2022-11-29  3:14 UTC (permalink / raw)
  To: Jiri Pirko, Jakub Kicinski
  Cc: David S . Miller, Eric Dumazet, Paolo Abeni, netdev,
	linux-kernel, Andrew Lunn, Marc Kleine-Budde, linux-can,
	Vincent Mailhol

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 <kuba@kernel.org>
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
---
* 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"
 
 /**
  * struct devlink_flash_update_params - Flash Update parameters
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next v2] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER
  2022-11-29  3:14 [PATCH net-next v2] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER Vincent Mailhol
@ 2022-11-29  8:28 ` Jiri Pirko
  2022-11-29  9:28   ` Vincent MAILHOL
  0 siblings, 1 reply; 6+ messages in thread
From: Jiri Pirko @ 2022-11-29  8:28 UTC (permalink / raw)
  To: Vincent Mailhol
  Cc: Jiri Pirko, Jakub Kicinski, David S . Miller, Eric Dumazet,
	Paolo Abeni, netdev, linux-kernel, Andrew Lunn,
	Marc Kleine-Budde, linux-can

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 <kuba@kernel.org>
>Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
>---
>* 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next v2] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER
  2022-11-29  8:28 ` Jiri Pirko
@ 2022-11-29  9:28   ` Vincent MAILHOL
  2022-11-30 17:03     ` Marc Kleine-Budde
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent MAILHOL @ 2022-11-29  9:28 UTC (permalink / raw)
  To: Jiri Pirko
  Cc: Jiri Pirko, Jakub Kicinski, David S . Miller, Eric Dumazet,
	Paolo Abeni, netdev, linux-kernel, Andrew Lunn,
	Marc Kleine-Budde, linux-can

On Tue. 29 Nov. 2022 at 17:33, Jiri Pirko <jiri@resnulli.us> 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 <kuba@kernel.org>
> >Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
> >---
> >* 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.


Yours sincerely,
Vincent Mailhol

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next v2] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER
  2022-11-29  9:28   ` Vincent MAILHOL
@ 2022-11-30 17:03     ` Marc Kleine-Budde
  2022-11-30 17:52       ` Vincent MAILHOL
  0 siblings, 1 reply; 6+ messages in thread
From: Marc Kleine-Budde @ 2022-11-30 17:03 UTC (permalink / raw)
  To: Vincent MAILHOL
  Cc: Jiri Pirko, Jiri Pirko, Jakub Kicinski, David S . Miller,
	Eric Dumazet, Paolo Abeni, netdev, linux-kernel, Andrew Lunn,
	linux-can

[-- Attachment #1: Type: text/plain, Size: 2868 bytes --]

On 29.11.2022 18:28:44, Vincent MAILHOL wrote:
> On Tue. 29 Nov. 2022 at 17:33, Jiri Pirko <jiri@resnulli.us> 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 <kuba@kernel.org>
> > >Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
> > >---
> > >* 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.

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next v2] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER
  2022-11-30 17:03     ` Marc Kleine-Budde
@ 2022-11-30 17:52       ` Vincent MAILHOL
  2022-12-01  9:51         ` Marc Kleine-Budde
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent MAILHOL @ 2022-11-30 17:52 UTC (permalink / raw)
  To: Marc Kleine-Budde
  Cc: Jiri Pirko, Jiri Pirko, Jakub Kicinski, David S . Miller,
	Eric Dumazet, Paolo Abeni, netdev, linux-kernel, Andrew Lunn,
	linux-can

On Thu. 1 Dec. 2022 at 02:14, Marc Kleine-Budde <mkl@pengutronix.de> wrote:
> On 29.11.2022 18:28:44, Vincent MAILHOL wrote:
> > On Tue. 29 Nov. 2022 at 17:33, Jiri Pirko <jiri@resnulli.us> 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 <kuba@kernel.org>
> > > >Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
> > > >---
> > > >* 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next v2] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER
  2022-11-30 17:52       ` Vincent MAILHOL
@ 2022-12-01  9:51         ` Marc Kleine-Budde
  0 siblings, 0 replies; 6+ messages in thread
From: Marc Kleine-Budde @ 2022-12-01  9:51 UTC (permalink / raw)
  To: Vincent MAILHOL
  Cc: Jiri Pirko, Jiri Pirko, Jakub Kicinski, David S . Miller,
	Eric Dumazet, Paolo Abeni, netdev, linux-kernel, Andrew Lunn,
	linux-can

[-- Attachment #1: Type: text/plain, Size: 931 bytes --]

On 01.12.2022 02:52:17, Vincent MAILHOL wrote:
> > > 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/

Right, thanks for the clarification. - Too many patches :)

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-12-01  9:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-29  3:14 [PATCH net-next v2] net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER Vincent Mailhol
2022-11-29  8:28 ` Jiri Pirko
2022-11-29  9:28   ` Vincent MAILHOL
2022-11-30 17:03     ` Marc Kleine-Budde
2022-11-30 17:52       ` Vincent MAILHOL
2022-12-01  9:51         ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).