]> git.baikalelectronics.ru Git - kernel.git/commit
of: base: Avoid console probe delay when fw_devlink.strict=1
authorSaravana Kannan <saravanak@google.com>
Thu, 23 Jun 2022 08:03:43 +0000 (01:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 14:52:25 +0000 (16:52 +0200)
commit349d4dc4658ee9c0a730c93496badff8a4a2e89c
tree5d86259b12f7b5e6704e39fea090b55c8c866e3c
parent0c50f4b5b85767041f1e548dbd037d0033178f39
of: base: Avoid console probe delay when fw_devlink.strict=1

Commit 67221973b915 ("driver core: Set fw_devlink.strict=1 by default")
enabled iommus and dmas dependency enforcement by default. On some
systems, this caused the console device's probe to get delayed until the
deferred_probe_timeout expires.

We need consoles to work as soon as possible, so mark the console device
node with FWNODE_FLAG_BEST_EFFORT so that fw_delink knows not to delay
the probe of the console device for suppliers without drivers. The
driver can then make the decision on where it can probe without those
suppliers or defer its probe.

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-3-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/base.c