From: Kim Taejeong Date: Fri, 18 May 2018 06:30:44 +0000 (+0900) Subject: [9610][ERD] drv: muic: init path open in kernel X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74d3fb18bd63b0836e892051b18bd002d38c560e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [9610][ERD] drv: muic: init path open in kernel Change-Id: I84a8756e8d8f7c5bf303f99af90664c65ef590ed Signed-off-by: Kim Taejeong --- diff --git a/drivers/muic/s2mu004-muic.c b/drivers/muic/s2mu004-muic.c index 4ce270d10cc5..aee2c2014524 100644 --- a/drivers/muic/s2mu004-muic.c +++ b/drivers/muic/s2mu004-muic.c @@ -1138,11 +1138,15 @@ static int s2mu004_muic_reg_init(struct s2mu004_muic_data *muic_data) if (ret < 0) pr_err("failed to write ctrl(%d)\n", ret); + data = s2mu004_i2c_read_byte(i2c, S2MU004_REG_MUIC_SW_CTRL); + pr_info("%s init path(0x%x)\n", __func__, data); + if (data) + s2mu004_muic_set_com_sw(muic_data, MANSW_OPEN); + /* * These registers represents the RID ADC LDO voltage control. * Low / High LDO initialized to 3V, 2.7V each. */ - #ifdef CONFIG_MUIC_S2MU004_RID s2mu004_muic_control_rid_adc(muic_data, S2MU004_ENABLE);