]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: fix misleading debug message when matching compatible
authorQuentin Schulz <quentin.schulz@cherry.de>
Tue, 11 Jun 2024 13:04:24 +0000 (15:04 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Jul 2024 06:36:33 +0000 (07:36 +0100)
commitcc560eac51ea19742f4ea166b86a34b1c7ceb31a
treed8845d4ec6b57d63040c212e2f1fe24f46e90a06
parenta1488750935342f1750bd4f3cbd999688523898e
dm: core: fix misleading debug message when matching compatible

A driver can have multiple compatible. When the id->compatible matches
for that driver, the first compatible supported by the driver is
currently returned, which gives the following confusing message:

   - found match at 'rk3588_syscon': 'rockchip,rk3588-sys-grf' matches 'rockchip,rk3588-pmugrf'

Considering that the compatible passed in argument is necessarily the
one that exactly matched to enter this code path, there's no need to do
some elaborate logic, just print the driver name and the compatible
passed in argument.

Fixes: d3e773613b6d ("dm: core: Use U-Boot logging instead of pr_debug()")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/lists.c