Loading drivers/regulator/kryo-regulator.c +3 −3 Original line number Diff line number Diff line /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -454,10 +454,10 @@ static int kryo_regulator_retention_set_bypass(struct regulator_dev *rdev, /* Ensure write above completes before proceeding */ mb(); if (kvreg->version < MSM8996_CPUSS_VER_1P1) { if (enable == BHS_MODE && kvreg->version < MSM8996_CPUSS_VER_1P1) { /* No status register, delay worst case */ udelay(PWR_GATE_SWITCH_TIMEOUT_US); } else { } else if (enable == BHS_MODE) { while (timeout > 0) { reg_val = readl_relaxed(kvreg->pm_apcc_base + APCC_PGS_RET_STATUS); Loading Loading
drivers/regulator/kryo-regulator.c +3 −3 Original line number Diff line number Diff line /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -454,10 +454,10 @@ static int kryo_regulator_retention_set_bypass(struct regulator_dev *rdev, /* Ensure write above completes before proceeding */ mb(); if (kvreg->version < MSM8996_CPUSS_VER_1P1) { if (enable == BHS_MODE && kvreg->version < MSM8996_CPUSS_VER_1P1) { /* No status register, delay worst case */ udelay(PWR_GATE_SWITCH_TIMEOUT_US); } else { } else if (enable == BHS_MODE) { while (timeout > 0) { reg_val = readl_relaxed(kvreg->pm_apcc_base + APCC_PGS_RET_STATUS); Loading