From 655e737934534338ae88eea45cbb1b65e8ec2042 Mon Sep 17 00:00:00 2001 From: August Date: Tue, 7 Aug 2018 11:53:23 +0800 Subject: [PATCH] add regulator debug message Signed-off-by: August --- lichee/linux-4.9/drivers/regulator/core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lichee/linux-4.9/drivers/regulator/core.c b/lichee/linux-4.9/drivers/regulator/core.c index 2a827c9888..718ec564d1 100644 --- a/lichee/linux-4.9/drivers/regulator/core.c +++ b/lichee/linux-4.9/drivers/regulator/core.c @@ -2727,6 +2727,8 @@ int regulator_enable(struct regulator *regulator) axp_add_enabler(rdev, regulator->supply_name); #endif + pr_info("%s:%s\n", __func__, regulator->supply_name); + if (rdev->supply) { ret = regulator_enable(rdev->supply); if (ret != 0) @@ -2849,6 +2851,8 @@ int regulator_disable(struct regulator *regulator) axp_del_enabler(rdev, regulator->supply_name); #endif + pr_info("%s:%s\n", __func__, regulator->supply_name); + mutex_lock(&rdev->mutex); ret = _regulator_disable(rdev); mutex_unlock(&rdev->mutex);