soc: ti: K2G: provide APIs to support driver probe deferral
authorMurali Karicheri <m-karicheri2@ti.com>
Tue, 17 Apr 2018 21:30:31 +0000 (17:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 01:00:56 +0000 (21:00 -0400)
commita2dd6877b43ef14129f258910d60b2e81b32100b
tree1f64183d117602299350d753ab4dc91e17a6ed1c
parent350601b4f7ab45a3ef39575acc21d6b7a69f724b
soc: ti: K2G: provide APIs to support driver probe deferral

This patch provide APIs to allow client drivers to support
probe deferral. On K2G SoC, devices can be probed only
after the ti_sci_pm_domains driver is probed and ready.
As drivers may get probed at different order, any driver
that depends on knav dma and qmss drivers, for example
netcp network driver, needs to defer probe until
knav devices are probed and ready to service. To do this,
add an API to query the device ready status from the knav
dma and qmss devices.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/soc/ti/knav_dma.c
drivers/soc/ti/knav_qmss_queue.c
include/linux/soc/ti/knav_dma.h
include/linux/soc/ti/knav_qmss.h