Loading drivers/usb/phy/phy-msm-usb.c +6 −0 Original line number Diff line number Diff line Loading @@ -3676,6 +3676,11 @@ static int msm_otg_extcon_register(struct msm_otg *motg) struct extcon_dev *edev; int ret = 0; if (motg->extcon_registered) { dev_info(&motg->pdev->dev, "extcon_nb already registered\n"); return 0; } if (!of_property_read_bool(node, "extcon")) return 0; Loading Loading @@ -3712,6 +3717,7 @@ static int msm_otg_extcon_register(struct msm_otg *motg) goto err; } } motg->extcon_registered = true; return 0; err: Loading include/linux/usb/msm_hsusb.h +2 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,7 @@ enum usb_id_state { * @extcon_id: Used for ID notification registration. * @vbus_nb: Notification callback for VBUS event. * @id_nb: Notification callback for ID event. * @extcon_registered: indicates if extcon notifier registered or not. * @dpdm_desc: Regulator descriptor for D+ and D- voting. * @dpdm_rdev: Regulator class device for dpdm regulator. * @dbg_idx: Dynamic debug buffer Index. Loading Loading @@ -297,6 +298,7 @@ struct msm_otg { struct extcon_dev *extcon_id; struct notifier_block vbus_nb; struct notifier_block id_nb; bool extcon_registered; struct regulator_desc dpdm_rdesc; struct regulator_dev *dpdm_rdev; /* Maximum debug message length */ Loading Loading
drivers/usb/phy/phy-msm-usb.c +6 −0 Original line number Diff line number Diff line Loading @@ -3676,6 +3676,11 @@ static int msm_otg_extcon_register(struct msm_otg *motg) struct extcon_dev *edev; int ret = 0; if (motg->extcon_registered) { dev_info(&motg->pdev->dev, "extcon_nb already registered\n"); return 0; } if (!of_property_read_bool(node, "extcon")) return 0; Loading Loading @@ -3712,6 +3717,7 @@ static int msm_otg_extcon_register(struct msm_otg *motg) goto err; } } motg->extcon_registered = true; return 0; err: Loading
include/linux/usb/msm_hsusb.h +2 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,7 @@ enum usb_id_state { * @extcon_id: Used for ID notification registration. * @vbus_nb: Notification callback for VBUS event. * @id_nb: Notification callback for ID event. * @extcon_registered: indicates if extcon notifier registered or not. * @dpdm_desc: Regulator descriptor for D+ and D- voting. * @dpdm_rdev: Regulator class device for dpdm regulator. * @dbg_idx: Dynamic debug buffer Index. Loading Loading @@ -297,6 +298,7 @@ struct msm_otg { struct extcon_dev *extcon_id; struct notifier_block vbus_nb; struct notifier_block id_nb; bool extcon_registered; struct regulator_desc dpdm_rdesc; struct regulator_dev *dpdm_rdev; /* Maximum debug message length */ Loading