]> asedeno.scripts.mit.edu Git - linux.git/commit
driver core: Add flag to autoremove device link on supplier unbind
authorVivek Gautam <vivek.gautam@codeaurora.org>
Wed, 27 Jun 2018 12:50:56 +0000 (18:20 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 9 Jul 2018 10:14:31 +0000 (12:14 +0200)
commit1689cac5b32a6db6f812e8063ea418a7cf023d03
tree165be23752f68df71466619de2601bcc12d3714d
parente88728f46cfbb59cc7e7acf1d230c05ec093764e
driver core: Add flag to autoremove device link on supplier unbind

Add a flag to autoremove the device links on supplier driver
unbind. This obviates the need to explicitly delete the link
in the remove path.
We remove these links only when the supplier's link to its
consumers has gone to DL_STATE_SUPPLIER_UNBIND state.

Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Suggested-by: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/driver-api/device_link.rst
drivers/base/core.c
include/linux/device.h