rpmsg: Add driver_override device attribute for rpmsg_device
authorAnup Patel <anup@brainfault.org>
Fri, 23 Mar 2018 16:11:17 +0000 (21:41 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 25 Apr 2018 23:59:53 +0000 (16:59 -0700)
commit39e47767ec9b22f844c2a07c9d329256960d4021
treed34066f379c86a35f0a249af39046c784b6a850d
parent60cc43fc888428bb2f18f08997432d426a243338
rpmsg: Add driver_override device attribute for rpmsg_device

This patch adds "driver_override" device attribute for rpmsg_device which
will allow users to explicitly specify the rpmsg_driver to be used via
sysfs entry.

The "driver_override" device attribute implemented here is very similar
to "driver_override" implemented for platform, pci, and amba bus types.

One important use-case of "driver_override" device attribute is to force
use of rpmsg_chrdev driver for certain rpmsg_device instances.

Signed-off-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Documentation/ABI/testing/sysfs-bus-rpmsg
drivers/rpmsg/rpmsg_core.c