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

Commit bf85e3d3 authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3-msm: Make POWER_SUPPLY_PROP_PRESENT writeable



Allow the usb power_supply's 'present' property to be writeable
from userspace. This will be useful for debugging external VBUS
detection and independently verifying USB device mode functionality.

Change-Id: Ia156cd05f4b5b21243320f2531cbb6613b93b994
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 27a70795
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1955,6 +1955,7 @@ dwc3_msm_property_is_writeable(struct power_supply *psy,
				enum power_supply_property psp)
{
	switch (psp) {
	case POWER_SUPPLY_PROP_PRESENT:
	case POWER_SUPPLY_PROP_VOLTAGE_MAX:
		return 1;
	default: