From 04a77e80d63a6b792970c8567447f70d76ac7be4 Mon Sep 17 00:00:00 2001
From: "choongryeol.lee" <choongryeol.lee@lge.com>
Date: Wed, 17 Sep 2014 19:36:45 -0700
Subject: [PATCH] usb: phy-msm-usb: do not update psy type to unknown

The userspace fails to detect the power supply type
as USB if the type is unknown at bootup.
Also, since power supply class is registered as USB
type, the default type should be USB rather than
unknown.

Change-Id: Ie212037a96d6a1edb44f72ae080492bd4dd42449
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
---
 drivers/usb/phy/phy-msm-usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c
index 73f496d5ba1a..eb99f80361d2 100644
--- a/drivers/usb/phy/phy-msm-usb.c
+++ b/drivers/usb/phy/phy-msm-usb.c
@@ -1390,7 +1390,7 @@ static int msm_otg_notify_chg_type(struct msm_otg *motg)
 		motg->chg_type == USB_ACA_C_CHARGER))
 		charger_type = POWER_SUPPLY_TYPE_USB_ACA;
 	else
-		charger_type = POWER_SUPPLY_TYPE_UNKNOWN;
+		charger_type = POWER_SUPPLY_TYPE_USB;
 
 	if (!psy) {
 		pr_err("No USB power supply registered!\n");
-- 
GitLab