Skip to content

Commit c442a0d

Browse files
Saravana Kannangregkh
authored andcommitted
driver core: Set fw_devlink to "permissive" behavior by default
Set fw_devlink to "permissive" behavior by default so that device links are automatically created (with DL_FLAG_SYNC_STATE_ONLY) by scanning the firmware. This ensures suppliers get their sync_state() calls only after all their consumers have probed successfully. Without this, suppliers will get their sync_state() calls at late_initcall_sync() even if their consuer Ideally, we'd want to set fw_devlink to "on" or "rpm" by default. But that needs more testing as it's known to break some corner case drivers/platforms. Cc: Rob Herring <[email protected]> Cc: Frank Rowand <[email protected]> Cc: [email protected] Signed-off-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a3a87d6 commit c442a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2345,7 +2345,7 @@ static int device_private_init(struct device *dev)
23452345
return 0;
23462346
}
23472347

2348-
static u32 fw_devlink_flags;
2348+
static u32 fw_devlink_flags = DL_FLAG_SYNC_STATE_ONLY;
23492349
static int __init fw_devlink_setup(char *arg)
23502350
{
23512351
if (!arg)

0 commit comments

Comments
 (0)