From d178ad02bf242cbb8f23092e4e0d5e772eaa51e6 Mon Sep 17 00:00:00 2001 From: Piotr Szczepanik Date: Sat, 6 Nov 2021 22:06:40 +0100 Subject: [PATCH] Disabled regulator supply validation in rockchi64 current Works around all those "Failed to register regulator: -517" errors --- ...al-disable-regulator-supply-validation.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 patch/kernel/archive/rockchip64-5.10/general-disable-regulator-supply-validation.patch diff --git a/patch/kernel/archive/rockchip64-5.10/general-disable-regulator-supply-validation.patch b/patch/kernel/archive/rockchip64-5.10/general-disable-regulator-supply-validation.patch new file mode 100644 index 0000000000..8827f0ff1d --- /dev/null +++ b/patch/kernel/archive/rockchip64-5.10/general-disable-regulator-supply-validation.patch @@ -0,0 +1,17 @@ +diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c +index 798f99091..9f3b09d05 100644 +--- a/drivers/regulator/core.c ++++ b/drivers/regulator/core.c +@@ -1422,12 +1422,6 @@ static int set_machine_constraints(struct regulator_dev *rdev) + * and we have control then make sure it is enabled. + */ + if (rdev->constraints->always_on || rdev->constraints->boot_on) { +- /* If we want to enable this regulator, make sure that we know +- * the supplying regulator. +- */ +- if (rdev->supply_name && !rdev->supply) +- return -EPROBE_DEFER; +- + if (rdev->supply) { + ret = regulator_enable(rdev->supply); + if (ret < 0) {