mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
Revert "driver core: Add support for linking devices during device addition"
This reverts commit 5302dd7dd0
.
Based on a lot of email and in-person discussions, this patch series is
being reworked to address a number of issues that were pointed out that
needed to be taken care of before it should be merged. It will be
resubmitted with those changes hopefully soon.
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Saravana Kannan <saravanak@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
33cbfe5449
commit
bfb3943bed
2 changed files with 0 additions and 97 deletions
|
@ -78,17 +78,6 @@ extern void bus_remove_file(struct bus_type *, struct bus_attribute *);
|
|||
* -EPROBE_DEFER it will queue the device for deferred probing.
|
||||
* @uevent: Called when a device is added, removed, or a few other things
|
||||
* that generate uevents to add the environment variables.
|
||||
* @add_links: Called, perhaps multiple times per device, after a device is
|
||||
* added to this bus. The function is expected to create device
|
||||
* links to all the suppliers of the input device that are
|
||||
* available at the time this function is called. As in, the
|
||||
* function should NOT stop at the first failed device link if
|
||||
* other unlinked supplier devices are present in the system.
|
||||
*
|
||||
* Return 0 if device links have been successfully created to all
|
||||
* the suppliers of this device. Return an error if some of the
|
||||
* suppliers are not yet available and this function needs to be
|
||||
* reattempted in the future.
|
||||
* @probe: Called when a new device or driver add to this bus, and callback
|
||||
* the specific driver's probe to initial the matched device.
|
||||
* @remove: Called when a device removed from this bus.
|
||||
|
@ -133,7 +122,6 @@ struct bus_type {
|
|||
|
||||
int (*match)(struct device *dev, struct device_driver *drv);
|
||||
int (*uevent)(struct device *dev, struct kobj_uevent_env *env);
|
||||
int (*add_links)(struct device *dev);
|
||||
int (*probe)(struct device *dev);
|
||||
int (*remove)(struct device *dev);
|
||||
void (*shutdown)(struct device *dev);
|
||||
|
@ -1143,13 +1131,11 @@ enum dl_dev_state {
|
|||
* struct dev_links_info - Device data related to device links.
|
||||
* @suppliers: List of links to supplier devices.
|
||||
* @consumers: List of links to consumer devices.
|
||||
* @needs_suppliers: Hook to global list of devices waiting for suppliers.
|
||||
* @status: Driver status information.
|
||||
*/
|
||||
struct dev_links_info {
|
||||
struct list_head suppliers;
|
||||
struct list_head consumers;
|
||||
struct list_head needs_suppliers;
|
||||
enum dl_dev_state status;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue