From a42155e7ef4d3bacf4bf4b6e11b46f4b5777974c Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Sun, 13 May 2018 12:36:35 +0530 Subject: [PATCH] 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. --- aports/modem/modem-qcom-msm-mainline-common/APKBUILD | 4 ++-- aports/modem/modem-qcom-msm-mainline-common/udev.rules | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aports/modem/modem-qcom-msm-mainline-common/APKBUILD b/aports/modem/modem-qcom-msm-mainline-common/APKBUILD index 35d31c2c..59f0f1cc 100644 --- a/aports/modem/modem-qcom-msm-mainline-common/APKBUILD +++ b/aports/modem/modem-qcom-msm-mainline-common/APKBUILD @@ -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" diff --git a/aports/modem/modem-qcom-msm-mainline-common/udev.rules b/aports/modem/modem-qcom-msm-mainline-common/udev.rules index b8b153d7..023320e6 100644 --- a/aports/modem/modem-qcom-msm-mainline-common/udev.rules +++ b/aports/modem/modem-qcom-msm-mainline-common/udev.rules @@ -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"