mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
dm: pinctrl: Skip not associated gpio phandle and rise a warning message
Skip not associated gpio phandle let register the other gpios on a group. We need anyway to send out a warning to the user to fix their uboot-board.dtsi. Thhe handle id can be found inside the decompiled dtb dtc -I dtb -O dts -o devicetree.dts spl/u-boot-spl.dtb Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f0cc4eae9a
commit
36a90eda84
1 changed files with 10 additions and 4 deletions
|
@ -91,12 +91,18 @@ static int pinctrl_select_state_full(struct udevice *dev, const char *statename)
|
|||
phandle = fdt32_to_cpu(*list++);
|
||||
ret = uclass_get_device_by_phandle_id(UCLASS_PINCONFIG, phandle,
|
||||
&config);
|
||||
if (ret)
|
||||
return ret;
|
||||
if (ret) {
|
||||
dev_warn(dev, "%s: uclass_get_device_by_phandle_id: err=%d\n",
|
||||
__func__, ret);
|
||||
continue;
|
||||
}
|
||||
|
||||
ret = pinctrl_config_one(config);
|
||||
if (ret)
|
||||
return ret;
|
||||
if (ret) {
|
||||
dev_warn(dev, "%s: pinctrl_config_one: err=%d\n",
|
||||
__func__, ret);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue