1、 typec线识别流程(ADP开关和USB_OPTION的开关切到typec那边)
usb_id_irq_handler-->切换模式micro_usb_set_mode
2、adp micro b线检测流程
client_data.id = MSG_OWNER_BC;
client_data.name = "battery_charger";
client_data.msg_cb = battery_chg_callback;
client_data.priv = bcdev;
client_data.state_cb = battery_chg_state_cb;
bcdev->client = pmic_glink_register_client(dev, &client_data);
充电检测(adsp检测发通知(glink)然后跑识别的流程)--->battery_chg_callback--->handle_notification(schedule_work(&bcdev->usb_type_work);)--> battery_chg_update_usb_type_work-->battery_chg_update_uusb_type--->切换模式 micro_usb_set_mode
标签:usb,chg,battery,typec,client,data,QCM4490,ADPmicrob From: https://www.cnblogs.com/yuanqiangfei/p/18208164