/sys/kernel/debug # cat /sys/class/extcon/extcon0/state USB=1 USB-HOST=0 SDP=0 DCP=0 CDP=1 /sys/kernel/debug # cat /sys/class/extcon/extcon0/state USB=0 USB-HOST=1 SDP=0 DCP=0 CDP=0