modem/modem-qcom-msm-mainline-common: check name attribute (#1485)

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.
This commit is contained in:
Bhushan Shah 2018-05-13 12:36:35 +05:30 committed by Oliver Smith
parent 56297edcf9
commit a42155e7ef
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
SUBSYSTEM!="rpmsg", GOTO="qcom_rpmsg_end"
# symlink rpmsg endpoints under useful names
ATTR{rpmsg_name}=="DATA5_CNTL", SYMLINK+="modem"
ATTR{name}=="DATA5_CNTL", SYMLINK+="modem"
# open SMD channels when the remoteproc comes up
KERNEL!="rpmsg_ctrl[0-9]*", GOTO="qcom_rpmsg_end"