From 3aa53d85a061c2c989b875ecd5013556e1b1ceec Mon Sep 17 00:00:00 2001 From: Saravana Kannan Date: Thu, 25 Feb 2021 16:59:05 -0800 Subject: [PATCH] ANDROID: driver core: Set fw_devlink.strict=true by default fw_devlink.strict makes sure all the iommus and dmas probe before their consumers. Without this, some consumers could probe before the iommus/dmas and function without iommu/dma capability. For Android, if an iommu/dma is listed as a supplier for a device tree node, we assume the driver for the iommu/dma exists and will be loaded. Bug: 181264536 Signed-off-by: Saravana Kannan Change-Id: I36e69269eb16fbedb8f7efc48e8b0b20c66a765f (cherry picked from commit 9af429562a3a925a6d5d2b5cd383346989cbd0d8) --- drivers/base/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 6c0ef9d55a34..fee6ca79fd12 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1565,7 +1565,7 @@ static int __init fw_devlink_setup(char *arg) } early_param("fw_devlink", fw_devlink_setup); -static bool fw_devlink_strict; +static bool fw_devlink_strict = true; static int __init fw_devlink_strict_setup(char *arg) { return strtobool(arg, &fw_devlink_strict);