]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: fw_devlink: Allow firmware to mark devices as best effort
authorSaravana Kannan <saravanak@google.com>
Thu, 23 Jun 2022 08:03:42 +0000 (01:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 14:52:25 +0000 (16:52 +0200)
commit0c50f4b5b85767041f1e548dbd037d0033178f39
tree4c1382c0cc1df78c1fdd1775f29b0eaaa5ab93f1
parentd0421e221c152cea6d0ca4b80f7881f4b73c54c4
driver core: fw_devlink: Allow firmware to mark devices as best effort

When firmware sets the FWNODE_FLAG_BEST_EFFORT flag for a fwnode,
fw_devlink will do a best effort ordering for that device where it'll
only enforce the probe/suspend/resume ordering of that device with
suppliers that have drivers. The driver of that device can then decide
if it wants to defer probe or probe without the suppliers.

This will be useful for avoid probe delays of the console device that
were caused by commit 67221973b915 ("driver core: Set
fw_devlink.strict=1 by default").

Fixes: 67221973b915 ("driver core: Set fw_devlink.strict=1 by default")
Reported-by: Sascha Hauer <sha@pengutronix.de>
Reported-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20220623080344.783549-2-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
include/linux/fwnode.h