Skip to content

dm: Print device name in dev_xxx() like Linux

Sean Anderson u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4remoteproc: Remove unused function rproc_elf_sanity_checkdrivers/remoteproc/rproc-elf-loader.c include/remoteproc.h+0 -291 reply
2/4net: mdio: Supply appropriate devices for dev_dgb callsnet/mdio-uclass.c+2 -21 reply
2/4net: mdio: Supply appropriate devices for dev_dgb calls+0 -01 reply
3/4dm: Use symbolic constants for log levels in dev_xxx()include/dm/device_compat.h+11 -101 reply
4/4dm: Print device name in dev_xxx() like Linuxinclude/dm/device_compat.h+28 -300 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/4R-b
2/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] dm: Print device name in dev_xxx() like Linux

This series adds some additional information to dev_dbg. With this series, and the following options applied in addition to sandbox_defconfig

CONFIG_LOGLEVEL=8
CONFIG_LOG=n
CONFIG_CMD_LOG=n
CONFIG_CMD_TPM=n

the output of U-Boot is

U-Boot 2020.10-rc4-00006-g19b641dddd-dirty (Sep 12 2020 - 18:15:00 -0400)

Model: sandbox
DRAM:  128 MiB
pinctrl-gpio sandbox_pinctrl_gpio: set_state_simple op missing
leds gpio_led: set_state_simple op missing
default_on gpio_led: set_state_simple op missing
base-gpios sandbox_gpio: set_state_simple op missing
default_off gpio_led: set_state_simple op missing
wdt at 0 wdt_sandbox: set_state_simple op missing
WDT:   Started with servicing (60s timeout)
MMC:   mmc0 mmc_sandbox: set_state_simple op missing
mmc1 mmc_sandbox: set_state_simple op missing
mmc2 mmc_sandbox: set_state_simple op missing
mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)
lcd sandbox_lcd_sdl: set_state_simple op missing
In:    serial
Out:   vidconsole
Err:   vidconsole
Model: sandbox
hog_input_active_low gpio_hog: set_state_simple op missing
hog_input_active_high gpio_hog: set_state_simple op missing
hog_output_low gpio_hog: set_state_simple op missing
hog_output_high gpio_hog: set_state_simple op missing
cros-ec google_cros_ec_sandbox: set_state_simple op missing

SCSI:
pci_ep pci_ep_sandbox: set_state_simple op missing
Net: eth at 10002000 eth_sandbox: set_state_simple op missing
eth0: eth at 10002000eth@10003000 eth_sandbox: set_state_simple op missing , eth5: eth at 10003000sbe5 eth_sandbox: set_state_simple op missing , eth3: sbe5eth at 10004000 eth_sandbox: set_state_simple op missing , eth6: eth at 10004000
bootcount at 0 bootcount-rtc: set_state_simple op missing
i2c at 0 i2c_sandbox: set_state_simple op missing
rtc at 61 rtc-sandbox: set_state_simple op missing
emul i2c_emul_parent_drv: set_state_simple op missing
emull sandbox_i2c_rtc_emul: set_state_simple op missing
Hit any key to stop autoboot:

When using CONFIG_LOG the output of U-Boot is too verbose to fit in this email. Note that there is a soft dependency on [1] if you would like to test this patch with CONFIG_LOG and a higher LOG_LEVEL than LOGL_INFO.

[1] https://patchwork.ozlabs.org/project/uboot/list/?series=201343

Sean Anderson (4):
remoteproc: Remove unused function rproc_elf_sanity_check
net: mdio: Supply appropriate devices for dev_dgb calls
dm: Use symbolic constants for log levels in dev_xxx()
dm: Print device name in dev_xxx() like Linux

 drivers/remoteproc/rproc-elf-loader.c | 16 ------
 include/dm/device_compat.h            | 75 +++++++++++++--------------
 include/remoteproc.h                  | 13 -----
 net/mdio-uclass.c                     |  4 +-
 4 files changed, 39 insertions(+), 69 deletions(-)
Signature · 1 line
2.28.0