From c1cfc2062cde8e551906d6df1eb383347813ce6d Mon Sep 17 00:00:00 2001 From: David Collins Date: Mon, 29 Aug 2016 16:21:18 -0700 Subject: [PATCH] regulator: cpr3-mmss-regulator: change CPR aging sensor for msmcobalt Change the CPR sensor used for graphics aging measurements on MSMCOBALT from 17 to 29. Sensor 29 is in the top level of the GPU so it is guaranteed to be usable for aging measurements whenever the GPU is powered regardless of the GPU operating state. Also bypass CPR sensors 0 - 23 during graphics CPR aging measurements so that the measurements will succeed even if the hardware power state of these CPR sensors changes during a given measurement. Change-Id: I3c0dd344e0192a375f31fefea7ef6559fab0652d CRs-Fixed: 1061372 Signed-off-by: David Collins --- drivers/regulator/cpr3-mmss-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/cpr3-mmss-regulator.c b/drivers/regulator/cpr3-mmss-regulator.c index 1e18ce73743d..b3484e2f9c0c 100644 --- a/drivers/regulator/cpr3-mmss-regulator.c +++ b/drivers/regulator/cpr3-mmss-regulator.c @@ -242,8 +242,8 @@ static const int msmcobalt_v2_mmss_fuse_ref_volt[MSM8996_MMSS_FUSE_CORNERS] = { #define MSMCOBALT_MMSS_CPR_SENSOR_COUNT 35 -#define MSMCOBALT_MMSS_AGING_SENSOR_ID 17 -#define MSMCOBALT_MMSS_AGING_BYPASS_MASK0 0 +#define MSMCOBALT_MMSS_AGING_SENSOR_ID 29 +#define MSMCOBALT_MMSS_AGING_BYPASS_MASK0 (GENMASK(23, 0)) #define MSMCOBALT_MMSS_MAX_TEMP_POINTS 3 #define MSMCOBALT_MMSS_TEMP_SENSOR_ID_START 12