diff options
author | Loic Pallardy <[email protected]> | 2016-12-15 15:49:56 +0100 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2016-12-30 03:12:11 -0800 |
commit | 63447646ac657fde00bb658ce21a3431940ae0ad (patch) | |
tree | 42c99d0259b8204a058e96f5ce172031798064f0 /lib/test-string_helpers.c | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) |
rpmsg: virtio_rpmsg_bus: fix channel creation
Since commit 4dffed5b3ac796b ("rpmsg: Name rpmsg devices based on
channel id"), it is no more possible for a firmware to register twice
a service (on different endpoints). rpmsg_register_device function
is failing when calling device_add for the second time as second
device has the same name as first one already register.
It is because name is based only on service name and so is not more
unique. Previously name was unique thanks to the use of rpmsg_dev_index.
This patch adds destination and source endpoint numbers device name to
create an unique identifier.
Fixes: 4dffed5b3ac7 ("rpmsg: Name rpmsg devices based on channel id")
Acked-by: Peter Griffin <[email protected]>
Signed-off-by: Loic Pallardy <[email protected]>
[bjorn: flipped name and address in device name]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions