]> git.itanic.dy.fi Git - linux-stable/commit
driver core: Add device link flag DL_FLAG_AUTOPROBE_CONSUMER
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Feb 2019 00:59:42 +0000 (01:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2020 10:55:58 +0000 (11:55 +0100)
commit822e87b74f1e0ef543b298c8121a78c382cceeb3
treee8c22e237ea890e96479142b37291940b77c1973
parent1f5102cb6bc935eadb8d543c31119195a3e60a14
driver core: Add device link flag DL_FLAG_AUTOPROBE_CONSUMER

commit e7dd40105aac9ba051e44ad711123bc53a5e4c71 upstream.

Add a new device link flag, DL_FLAG_AUTOPROBE_CONSUMER, to request the
driver core to probe for a consumer driver automatically after binding
a driver to the supplier device on a persistent managed device link.

As unbinding the supplier driver on a managed device link causes the
consumer driver to be detached from its device automatically, this
flag provides a complementary mechanism which is needed to address
some "composite device" use cases.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/device_link.rst
drivers/base/core.c
drivers/base/dd.c
include/linux/device.h