]>
Commit | Line | Data |
---|---|---|
af53c2aa GKH |
1 | From e2bf801ecd4e62222a46d1ba9e57e710171d29c1 Mon Sep 17 00:00:00 2001 |
2 | From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> | |
3 | Date: Mon, 27 Nov 2017 20:05:34 +0100 | |
4 | Subject: sunxi-rsb: Include OF based modalias in device uevent | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | From: Stefan Brüns <stefan.bruens@rwth-aachen.de> | |
10 | ||
11 | commit e2bf801ecd4e62222a46d1ba9e57e710171d29c1 upstream. | |
12 | ||
13 | Include the OF-based modalias in the uevent sent when registering devices | |
14 | on the sunxi RSB bus, so that user space has a chance to autoload the | |
15 | kernel module for the device. | |
16 | ||
17 | Fixes a regression caused by commit 3f241bfa60bd ("arm64: allwinner: a64: | |
18 | pine64: Use dcdc1 regulator for mmc0"). When the axp20x-rsb module for | |
19 | the AXP803 PMIC is built as a module, it is not loaded and the system | |
20 | ends up with an disfunctional MMC controller. | |
21 | ||
22 | Fixes: d787dcdb9c8f ("bus: sunxi-rsb: Add driver for Allwinner Reduced Serial Bus") | |
23 | Acked-by: Chen-Yu Tsai <wens@csie.org> | |
24 | Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> | |
25 | Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> | |
26 | Signed-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) |