Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 548e309f authored by Jie Cheng's avatar Jie Cheng Committed by Gerrit - the friendly Code Review server
Browse files

power: smb1360: update USB status immediately after enabling charger



Update USB online status change after setting CHARGING_ENABLED
property. This notifies it to the userspace immediately.

CRs-Fixed: 735650
Change-Id: Ifb517c4b6a96fb1496074534e39a6b32e4f28a1d
Signed-off-by: default avatarJie Cheng <rockiec@codeaurora.org>
parent 2d3171d7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1289,6 +1289,7 @@ static int smb1360_battery_set_property(struct power_supply *psy,
	case POWER_SUPPLY_PROP_CHARGING_ENABLED:
		smb1360_charging_disable(chip, USER, !val->intval);
		power_supply_changed(&chip->batt_psy);
		power_supply_changed(chip->usb_psy);
		break;
	case POWER_SUPPLY_PROP_CAPACITY:
		chip->fake_battery_soc = val->intval;