mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] Introduce class devices
@ 2024-06-10  8:12 Sascha Hauer
  2024-06-10  8:12 ` [PATCH 1/4] net: use for_each_netdev() Sascha Hauer
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Sascha Hauer @ 2024-06-10  8:12 UTC (permalink / raw)
  To: Barebox List

Several subsystems already have a struct device embedded in their
subsystems specific structs. Allow to register these as class devices.
This way we collect devices of the same type on a list and can show
informations about these in a generic way.

Sascha Hauer (4):
  net: use for_each_netdev()
  base: add class device support
  net: register eth class
  watchdog: register watchdog class

 commands/Kconfig                  |  6 +++++
 commands/Makefile                 |  1 +
 commands/class.c                  | 30 ++++++++++++++++++++++
 drivers/base/Makefile             |  1 +
 drivers/base/class.c              | 41 +++++++++++++++++++++++++++++++
 drivers/watchdog/wd_core.c        | 14 ++++++-----
 include/asm-generic/barebox.lds.h |  7 ++++++
 include/device.h                  | 21 ++++++++++++++++
 include/net.h                     |  4 +--
 net/eth.c                         | 12 +++++----
 net/ifup.c                        |  2 +-
 11 files changed, 125 insertions(+), 14 deletions(-)
 create mode 100644 commands/class.c
 create mode 100644 drivers/base/class.c

-- 
2.39.2




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

end of thread, other threads:[~2024-06-10  8:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-10  8:12 [PATCH 0/4] Introduce class devices Sascha Hauer
2024-06-10  8:12 ` [PATCH 1/4] net: use for_each_netdev() Sascha Hauer
2024-06-10  8:12 ` [PATCH 2/4] base: add class device support Sascha Hauer
2024-06-10  8:33   ` Ahmad Fatoum
2024-06-10  8:57     ` Sascha Hauer
2024-06-10  8:12 ` [PATCH 3/4] net: register eth class Sascha Hauer
2024-06-10  8:12 ` [PATCH 4/4] watchdog: register watchdog class Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox