mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user