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

Sean Anderson
2020-09-13T01:43:31Z

On 9/12/20 8:28 PM, Sean Anderson wrote:
> 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(-)
>

In my haste I may have forgotten to run CI and make many more patches
like the first two to fix drivers calling a dev_ log function without an
actual device. So this series breaks a lot of things at the moment [1].
Consider it an RFC I guess for after I fix all those build failures.

--Sean

[1] https://dev.azure.com/seanga2/u-boot/_build/results?buildId=30&view=logs&j=7f2f73d6-a009-5260-5fdd-7738e0f76a89&t=97bcf3f1-e64d-5752-c0e9-95a663c62e27