pmaports/modem/modem-qcom-msm-mainline-common/udev.rules
lambdadroid 33a46b86db
modem/modem-qcom-msm-mainline-common: recognize hexagon remoteproc (!799)
At the moment, only "modem" is detected as rpmsg name.
On MSM8916 the audio DSP and modem are both on the same remote
processor ("hexagon").

Add it to the udev rule so the modem symlink is created on MSM8916.
2019-12-09 17:37:50 +03:00

12 lines
380 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|hexagon", GOTO="qcom_rpmsg_end"
ACTION=="add", RUN+="/usr/sbin/rpmsgexport /dev/$name DATA5_CNTL"
LABEL="qcom_rpmsg_end"