c36aeec04e
On my device the rpmsg0 have DATA5_CNTL under name attribute instead of rpmsg_name ``` looking at device '/devices/platform/smd/smd:modem/smd:modem.rpmsg_chrdev.0.0/rpmsg/rpmsg_ctrl1/rpmsg0': KERNEL=="rpmsg0" SUBSYSTEM=="rpmsg" DRIVER=="" ATTR{dst}=="0" ATTR{src}=="0" ATTR{name}=="DATA5_CNTL" ``` So check for name instead of rpmsg_name.
12 lines
372 B
Text
12 lines
372 B
Text
SUBSYSTEM!="rpmsg", GOTO="qcom_rpmsg_end"
|
|
|
|
# symlink rpmsg endpoints under useful names
|
|
ATTR{name}=="DATA5_CNTL", SYMLINK+="modem"
|
|
|
|
# open SMD channels when the remoteproc comes up
|
|
KERNEL!="rpmsg_ctrl[0-9]*", GOTO="qcom_rpmsg_end"
|
|
ATTRS{rpmsg_name}!="modem", GOTO="qcom_rpmsg_end"
|
|
|
|
ACTION=="add", RUN+="/usr/sbin/rpmsgexport /dev/$name DATA5_CNTL"
|
|
|
|
LABEL="qcom_rpmsg_end"
|