2018-05-10 21:28:51 +00:00
|
|
|
SUBSYSTEM!="rpmsg", GOTO="qcom_rpmsg_end"
|
|
|
|
|
|
|
|
# symlink rpmsg endpoints under useful names
|
2018-05-13 07:06:35 +00:00
|
|
|
ATTR{name}=="DATA5_CNTL", SYMLINK+="modem"
|
2020-06-04 20:30:44 +00:00
|
|
|
ATTR{name}=="DATA4", SYMLINK+="modem-at"
|
2018-05-10 21:28:51 +00:00
|
|
|
|
|
|
|
# open SMD channels when the remoteproc comes up
|
|
|
|
KERNEL!="rpmsg_ctrl[0-9]*", GOTO="qcom_rpmsg_end"
|
2019-12-08 21:38:52 +00:00
|
|
|
ATTRS{rpmsg_name}!="modem|hexagon", GOTO="qcom_rpmsg_end"
|
2018-05-10 21:28:51 +00:00
|
|
|
|
|
|
|
ACTION=="add", RUN+="/usr/sbin/rpmsgexport /dev/$name DATA5_CNTL"
|
2020-06-04 20:30:44 +00:00
|
|
|
ACTION=="add", RUN+="/usr/sbin/rpmsgexport /dev/$name DATA4"
|
2018-05-10 21:28:51 +00:00
|
|
|
|
|
|
|
LABEL="qcom_rpmsg_end"
|