From: Binyuan Lan Date: Fri, 30 Sep 2016 03:40:20 +0000 (+0800) Subject: mfd: rk808: close rtc int when power off X-Git-Tag: firefly_0821_release~1463 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f214b9baf898c4cab8d29f58f49940cb28543171;p=firefly-linux-kernel-4.4.55.git mfd: rk808: close rtc int when power off Change-Id: I1f1bfe3d6c106632c45b51bec3c18361572df865 Signed-off-by: Binyuan Lan --- diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 9bffa6ded0b7..0db26cd7876e 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -358,6 +358,14 @@ static void rk808_device_shutdown(void) return; } + /* close rtc int when power off */ + regmap_update_bits(rk808->regmap, + RK808_INT_STS_MSK_REG1, + (0x3 << 5), (0x3 << 5)); + regmap_update_bits(rk808->regmap, + RK808_RTC_INT_REG, + (0x3 << 2), (0x0 << 2)); + ret = pm_shutdown(rk808->regmap); if (ret) dev_err(&rk808_i2c_client->dev, "power off error!\n");