projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c52b678
)
net: netcp: support probe deferral
author
Murali Karicheri
<m-karicheri2@ti.com>
Tue, 17 Apr 2018 21:30:40 +0000
(17:30 -0400)
committer
David S. Miller
<davem@davemloft.net>
Thu, 19 Apr 2018 01:00:57 +0000
(21:00 -0400)
The netcp driver shouldn't proceed until the knav qmss and dma
devices are ready. So return -EPROBE_DEFER if these devices are not
ready.
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/netcp_core.c
b/drivers/net/ethernet/ti/netcp_core.c
index
9c51b25
..
736f6f7
100644
(file)
--- a/
drivers/net/ethernet/ti/netcp_core.c
+++ b/
drivers/net/ethernet/ti/netcp_core.c
@@
-2158,6
+2158,10
@@
static int netcp_probe(struct platform_device *pdev)
struct netcp_module *module;
int ret;
+ if (!knav_dma_device_ready() ||
+ !knav_qmss_device_ready())
+ return -EPROBE_DEFER;
+
if (!node) {
dev_err(dev, "could not find device info\n");
return -ENODEV;