Patch "spmi: Include OF based modalias in device uevent" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
spmi: Include OF based modalias in device uevent
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
spmi-include-of-based-modalias-in-device-uevent.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
d50daa2af2618dab6d21634e65a5fbcf4ae437d6Mon Sep 17 00:00:00 2001
From: Bjorn Andersson <[email protected]>
Date: Thu, 29 Jun 2017 14:46:44 -0700
Subject: spmi: Include OF based modalias in device uevent
From: Bjorn Andersson <[email protected]>
commit d50daa2af2618dab6d21634e65a5fbcf4ae437d6 upstream.
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.
--- drivers/spmi/spmi.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/spmi/spmi.c +12 -0
@@ -365,11 +365,23 @@ static int spmi_drv_remove(struct devicereturn 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, };/**
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/spmi-include-of-based-modalias-in-device-uevent.patch