How the registration of rpmsg devices should be done?

From: Tzu-Jung Lee
Date: Wed Jul 04 2012 - 04:26:47 EST


Hi,

I working on the IPC functionality on our SoC and is looking into the
rpmsg & remoteproc framework of inux v3.4.

However, a piece of code seems to be missing in the
drivers/rpmsg/virtio_rpmsg_bus.c linux-v3.4 (compared to the
omap/linux-kernel-3.0)

@@ -898,82 +667,91 @@ static int rpmsg_probe(struct virtio_device *vdev)

+ /* look for platform-specific static channels */
+ vdev->config->get(vdev, VPROC_STATIC_CHANNELS, &ch, sizeof(ch));
+
+ for (i = 0; ch && ch[i].name[0]; i++)
+ rpmsg_create_channel(vrp, &ch[i]);

Since rpmsg_create_channel() is static and internal to rpmsg module,
I'm wondering how the registration of rpmsg device should be done?

Thanks,
Roy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/