summaryrefslogtreecommitdiffstats
path: root/qcom-msm89xx-fixes.patch
diff options
context:
space:
mode:
authorLaura Abbott <labbott@fedoraproject.org>2017-09-06 11:11:28 -0700
committerLaura Abbott <labbott@fedoraproject.org>2017-09-10 09:39:26 -0700
commitb4668f245f4965cc754efce0321172fcb4067895 (patch)
tree43228df285a3e83ea99b79e859994c01f52142b8 /qcom-msm89xx-fixes.patch
parent66cc5ce03c44ec186e7957d45acc521f82a3e794 (diff)
downloadkernel-b4668f245f4965cc754efce0321172fcb4067895.tar.gz
kernel-b4668f245f4965cc754efce0321172fcb4067895.tar.xz
kernel-b4668f245f4965cc754efce0321172fcb4067895.zip
Linux v4.13.1
Diffstat (limited to 'qcom-msm89xx-fixes.patch')
-rw-r--r--qcom-msm89xx-fixes.patch95
1 files changed, 0 insertions, 95 deletions
diff --git a/qcom-msm89xx-fixes.patch b/qcom-msm89xx-fixes.patch
index fc2f16dc3..a3298e432 100644
--- a/qcom-msm89xx-fixes.patch
+++ b/qcom-msm89xx-fixes.patch
@@ -1,98 +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
-Subject: [PATCH 2/6] spmi: Include OF based modalias in device uevent
-
-Include the OF-based modalias in the uevent sent when registering SPMI
-devices, so that user space has a chance to autoload the kernel module
-for the device.
-
-Reported-by: Rob Clark <robdclark@gmail.com>
-Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
-Tested-by: Rob Clark <robdclark@gmail.com>
-Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
----
- drivers/spmi/spmi.c | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
-
-diff --git a/drivers/spmi/spmi.c b/drivers/spmi/spmi.c
-index 2b9b0941d9eb..6d23226e5f69 100644
---- a/drivers/spmi/spmi.c
-+++ b/drivers/spmi/spmi.c
-@@ -365,11 +365,23 @@ static int spmi_drv_remove(struct device *dev)
- return 0;
- }
-
-+static int spmi_drv_uevent(struct device *dev, struct kobj_uevent_env *env)
-+{
-+ int ret;
-+
-+ ret = of_device_uevent_modalias(dev, env);
-+ if (ret != -ENODEV)
-+ return ret;
-+
-+ return 0;
-+}
-+
- static struct bus_type spmi_bus_type = {
- .name = "spmi",
- .match = spmi_device_match,
- .probe = spmi_drv_probe,
- .remove = spmi_drv_remove,
-+ .uevent = spmi_drv_uevent,
- };
-
- /**
---
-2.13.0
-
From 283d0e00a18b294ec56f1fb904896a546704faaf Mon Sep 17 00:00:00 2001
From: Rob Clark <robdclark@gmail.com>
Date: Fri, 30 Jun 2017 11:47:21 -0400