]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: rockchip: improve error message for incorrect rockchip,pins property
authorQuentin Schulz <quentin.schulz@cherry.de>
Wed, 2 Oct 2024 12:03:03 +0000 (14:03 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 2 Oct 2024 14:12:00 +0000 (16:12 +0200)
commit30e830b8b952e550344224546f8cd83c5c49a5bf
tree7a5771cdb626eb9d941a079c032b99d375f84a12
parent38e2d33f134055ce377b69fe5ae181881d73d415
pinctrl: rockchip: improve error message for incorrect rockchip,pins property

If one improperly writes a rockchip,pins property, the pinctrl driver
basically just states that one in the myriad of pinctrl nodes is
improper but does not tell you which one.

Instead, let's print the full name of the Device Tree node that is
improper as well as provide more context on what the expected content
is.

Note that this should be rather unnecessary if one reads the output of
the dtbs_check as it would be highlighted as an error.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/20241002-pinctrl-rockchip-error-modulo-4-v1-1-4addb4e5732a@cherry.de
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c