PCI: rockchip: dw: Add debug info for device miss case
It's hard to debug without log if folks add wrong present gpio. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Change-Id: Ic9d54a90911d6d268830e21df90710af0a352992
This commit is contained in:
parent
a4d67e502a
commit
a2993fb994
1 changed files with 1 additions and 0 deletions
|
|
@ -1990,6 +1990,7 @@ static int rk_pcie_really_probe(void *p)
|
|||
|
||||
if (!IS_ERR_OR_NULL(rk_pcie->prsnt_gpio)) {
|
||||
if (!gpiod_get_value(rk_pcie->prsnt_gpio)) {
|
||||
dev_info(dev, "device isn't present\n");
|
||||
ret = -ENODEV;
|
||||
goto release_driver;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue