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:
Shawn Lin 2023-12-26 10:17:29 +08:00 committed by Tao Huang
commit a2993fb994

View file

@ -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;
}