diff mbox series

rpmsg: core: make rpmsg bus DMA capable

Message ID 20181130112049.14444-1-srinivas.kandagatla@linaro.org
State New
Headers show
Series rpmsg: core: make rpmsg bus DMA capable | expand

Commit Message

Srinivas Kandagatla Nov. 30, 2018, 11:20 a.m. UTC
Many of the rpmsg clients like audio, fastrpc drivers need to allocate
dma memory. Make this bus DMA capable so that the child devices can
use dma apis.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

---
 drivers/rpmsg/rpmsg_core.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.19.2

Comments

kernel test robot Dec. 1, 2018, 12:38 p.m. UTC | #1
Hi Srinivas,

I love your patch! Yet something to improve:

[auto build test ERROR on v4.20-rc4]
[also build test ERROR on next-20181130]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Srinivas-Kandagatla/rpmsg-core-make-rpmsg-bus-DMA-capable/20181201-090353
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=8.1.0 make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   ERROR: "ia64_delay_loop" [drivers/spi/spi-thunderx.ko] undefined!
>> ERROR: "platform_dma_configure" [drivers/rpmsg/rpmsg_core.ko] undefined!

   ERROR: "numa_slit" [drivers/nvme/host/nvme-core.ko] undefined!
   ERROR: "__sw_hweight8" [drivers/net/wireless/mediatek/mt76/mt76.ko] undefined!
   ERROR: "ia64_delay_loop" [drivers/net/phy/mdio-cavium.ko] undefined!

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
diff mbox series

Patch

diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c
index 8122807db380..33881e70f478 100644
--- a/drivers/rpmsg/rpmsg_core.c
+++ b/drivers/rpmsg/rpmsg_core.c
@@ -510,6 +510,7 @@  static struct bus_type rpmsg_bus = {
 	.uevent		= rpmsg_uevent,
 	.probe		= rpmsg_dev_probe,
 	.remove		= rpmsg_dev_remove,
+	.dma_configure	= platform_dma_configure,
 };
 
 int rpmsg_register_device(struct rpmsg_device *rpdev)