]> 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)
commit082e2d1ca451a45d0d34cb384032a42afe90b485
tree5d86259b12f7b5e6704e39fea090b55c8c866e3c
parent8bd84dcc0415a1ad69d07ef6096785be94d59b37
of: base: Avoid console probe delay when fw_devlink.strict=1

Commit 6a649ad15f44 ("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: 6a649ad15f44 ("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