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,6 +1,6 @@
pkgname=modem-qcom-msm-mainline-common
pkgver=0.1
pkgrel=1
pkgrel=2
pkgdesc="Common support for Qualcomm MSM modems on the mainline kernel"
url="https://postmarketos.org/"
arch="armhf"
@ -15,4 +15,4 @@ package() {
install -Dm644 "$srcdir/udev.rules" "$pkgdir/usr/lib/udev/rules.d/55-$pkgname.rules"
}
sha512sums="a68d91d2747ee2c8ff3940ae02d7c6874b151ecbee6798d2b0215625b1d1e336c6d7c9ee9bebefa70c79c594bd00c9b8d059d958e875234d3bc348cfb1051147 udev.rules"
sha512sums="f1807844c2f685d99d71a02c0b793cea04b242db27f43259a7d9156b9bec27328e34f323a91afaee0a14a6df6232f678009e6499f3b0ede43cad3351ccadb77d udev.rules"

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"