diff options
author | Laura Abbott <labbott@fedoraproject.org> | 2017-07-07 07:59:21 -0700 |
---|---|---|
committer | Laura Abbott <labbott@fedoraproject.org> | 2017-07-07 07:59:21 -0700 |
commit | cd35ee37534cb354b10a3544232a3b999467cb87 (patch) | |
tree | 08a6a1c6a5f1dfaa2242d67926574ea5e4d10dff /qcom-msm89xx-fixes.patch | |
parent | 93120b23f4df603ce37b5a8c83873ac8f85941c0 (diff) | |
download | kernel-cd35ee37534cb354b10a3544232a3b999467cb87.tar.gz kernel-cd35ee37534cb354b10a3544232a3b999467cb87.tar.xz kernel-cd35ee37534cb354b10a3544232a3b999467cb87.zip |
Linux v4.12-7934-g9f45efb
Diffstat (limited to 'qcom-msm89xx-fixes.patch')
-rw-r--r-- | qcom-msm89xx-fixes.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/qcom-msm89xx-fixes.patch b/qcom-msm89xx-fixes.patch index fc2f16dc3..ea2280131 100644 --- a/qcom-msm89xx-fixes.patch +++ b/qcom-msm89xx-fixes.patch @@ -1,50 +1,3 @@ -From 83b8b93188114e1a39b3475d9429a2ee8977a398 Mon Sep 17 00:00:00 2001 -From: Bjorn Andersson <bjorn.andersson@linaro.org> -Date: Wed, 28 Jun 2017 14:53:23 -0700 -Subject: [PATCH 1/6] rpmsg: Make modalias work for DeviceTree based devices - -When rpmsg devices are expected to be matched based on their compatible -the modalias should reflect this, so that module autoloading has a -chance to match and load the appropriate module. - -Tested-by: Rob Clark <robdclark@gmail.com> -Reported-by: Rob Clark <robdclark@gmail.com> -Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> ---- - drivers/rpmsg/rpmsg_core.c | 10 ++++++++++ - 1 file changed, 10 insertions(+) - -diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c -index 600f5f9f7431..62580ad1b1f1 100644 ---- a/drivers/rpmsg/rpmsg_core.c -+++ b/drivers/rpmsg/rpmsg_core.c -@@ -342,6 +342,11 @@ static ssize_t modalias_show(struct device *dev, - struct device_attribute *attr, char *buf) - { - struct rpmsg_device *rpdev = to_rpmsg_device(dev); -+ ssize_t len; -+ -+ len = of_device_modalias(dev, buf, PAGE_SIZE); -+ if (len != -ENODEV) -+ return len; - - return sprintf(buf, RPMSG_DEVICE_MODALIAS_FMT "\n", rpdev->id.name); - } -@@ -384,6 +389,11 @@ static int rpmsg_dev_match(struct device *dev, struct device_driver *drv) - static int rpmsg_uevent(struct device *dev, struct kobj_uevent_env *env) - { - struct rpmsg_device *rpdev = to_rpmsg_device(dev); -+ int ret; -+ -+ ret = of_device_uevent_modalias(dev, env); -+ if (ret != -ENODEV) -+ return ret; - - return add_uevent_var(env, "MODALIAS=" RPMSG_DEVICE_MODALIAS_FMT, - rpdev->id.name); --- -2.13.0 - From ccdf75f90484a87ddb29649304156a503bf5a829 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson <bjorn.andersson@linaro.org> Date: Wed, 28 Jun 2017 16:44:58 -0700 |