Messages in this thread | | | From | "Pallala, Ramakrishna" <> | Subject | RE: [PATCH 4/4] iio/adc/axp288: add support for axp288 gpadc | Date | Wed, 10 Sep 2014 04:19:49 +0000 |
| |
Hi Jacob,
> +#if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM_RUNTIME) static int > +axp288_gpadc_suspend(struct device *dev) { > + int ret; > + struct iio_dev *indio_dev = dev_get_drvdata(dev); > + struct gpadc_info *info = iio_priv(indio_dev); > + > + mutex_lock(&indio_dev->mlock); > + ret = axp288_gpadc_enable(info->regmap, false); > + mutex_unlock(&indio_dev->mlock); > + > + return ret; > +}
AXP288 has integrated fuel gauge which relies on VBATT and IBATT ADC measurements. If we disable the ADC then Fuel Gauge will get stuck. So for the proper functioning of this integrated fuel gauging ADC measurements should always be ON.
Thanks, Ram
| |