usb: dwc2: extcon: provide initial notification 29/224629/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 12 Feb 2020 01:48:50 +0000 (10:48 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 12 Feb 2020 04:22:38 +0000 (13:22 +0900)
commit48f41ac12b6564a5b5cffa595b2c8014b49d6b81
tree463aab38d84c8b10f23399a3acb1ab23ab9f9b66
parent041d01b806e1a260331b25b01353aa96eb32d2b4
usb: dwc2: extcon: provide initial notification

In order provide initial notification through dwc2-extcon, udc should
be enabled with the complete gadget driver since connection state is
determined by gadget interrupts. This patch forces extcon state as
connected at boot time, so as to give chance to configure userspace
daemon.

Change-Id: I6eee17764be83972fd1444aee69f55afbfaf70dc
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
drivers/usb/dwc2/extcon.c