]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.14.13/sunxi-rsb-include-of-based-modalias-in-device-uevent.patch
Fix up backported ptrace patch
[thirdparty/kernel/stable-queue.git] / releases / 4.14.13 / sunxi-rsb-include-of-based-modalias-in-device-uevent.patch
CommitLineData
af53c2aa
GKH
1From e2bf801ecd4e62222a46d1ba9e57e710171d29c1 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
3Date: Mon, 27 Nov 2017 20:05:34 +0100
4Subject: sunxi-rsb: Include OF based modalias in device uevent
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9From: Stefan Brüns <stefan.bruens@rwth-aachen.de>
10
11commit e2bf801ecd4e62222a46d1ba9e57e710171d29c1 upstream.
12
13Include the OF-based modalias in the uevent sent when registering devices
14on the sunxi RSB bus, so that user space has a chance to autoload the
15kernel module for the device.
16
17Fixes a regression caused by commit 3f241bfa60bd ("arm64: allwinner: a64:
18pine64: Use dcdc1 regulator for mmc0"). When the axp20x-rsb module for
19the AXP803 PMIC is built as a module, it is not loaded and the system
20ends up with an disfunctional MMC controller.
21
22Fixes: d787dcdb9c8f ("bus: sunxi-rsb: Add driver for Allwinner Reduced Serial Bus")
23Acked-by: Chen-Yu Tsai <wens@csie.org>
24Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
25Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
26Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
27
28---
29 drivers/bus/sunxi-rsb.c | 1 +
30 1 file changed, 1 insertion(+)
31
32--- a/drivers/bus/sunxi-rsb.c
33+++ b/drivers/bus/sunxi-rsb.c
34@@ -178,6 +178,7 @@ static struct bus_type sunxi_rsb_bus = {
35 .match = sunxi_rsb_device_match,
36 .probe = sunxi_rsb_device_probe,
37 .remove = sunxi_rsb_device_remove,
38+ .uevent = of_device_uevent_modalias,
39 };
40
41 static void sunxi_rsb_dev_release(struct device *dev)