usb: dwc2: gadget: Set extcon state for usb cable as always true 52/306652/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 18 Feb 2020 04:36:40 +0000 (13:36 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 23 Feb 2024 22:37:51 +0000 (23:37 +0100)
commitdf63e899d9d8298b05656a9c3511756f58837afd
tree13c7766aeeda8b7e5a612d943bdd541ad4c003b0
parentbd2cb30a6bb5097376f0df698ca870c32de0f637
usb: dwc2: gadget: Set extcon state for usb cable as always true

To inform to userspace as enable usb features always, set extcon
state for usb cable as connected permanently. To enable this, add
"g-extcon-always-on" property on dt.

Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
[mszyprow: ported and adapted to v6.6 kernel release]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ib0e9982b426fda7deed510e482d6731a2f23d0b1
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c
drivers/usb/dwc2/params.c