]> git.baikalelectronics.ru Git - kernel.git/commit
sunxi-rsb: Include OF based modalias in device uevent
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Mon, 27 Nov 2017 19:05:34 +0000 (20:05 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 5 Dec 2017 08:14:30 +0000 (09:14 +0100)
commit2346758f005b4fc66d1e327e3a7af16114d30b95
treee1e5c56bb978bce38e5af9286ff0096ce70cc345
parentf06797ef856912ad9e947f576da5935f7f1c2088
sunxi-rsb: Include OF based modalias in device uevent

Include the OF-based modalias in the uevent sent when registering devices
on the sunxi RSB bus, so that user space has a chance to autoload the
kernel module for the device.

Fixes a regression caused by commit 1cd81144c02a ("arm64: allwinner: a64:
pine64: Use dcdc1 regulator for mmc0"). When the axp20x-rsb module for
the AXP803 PMIC is built as a module, it is not loaded and the system
ends up with an disfunctional MMC controller.

Fixes: 2982481577db ("bus: sunxi-rsb: Add driver for Allwinner Reduced Serial Bus")
Cc: stable <stable@vger.kernel.org> # 4.4.x 66def071bf61 of: device: Export of_device_{get_modalias, uvent_modalias} to modules
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/bus/sunxi-rsb.c