It is a pure wish of BME and we are not sure then it reads file '.../charger' charger_detect is called by reading file /sys/devices/platform/musb_hdrc/charger and it seems that BME reads it after it gets signal about VBUS UP.