Hot plug data is available only in host mode. Guard hotplug
read with host mode.
Bug
1047763
Bug
1050193
Reviewed-on: http://git-master/r/133890
(cherry picked from commit
927cf3665a02d64e13102480aeaa1dbd46080031)
Change-Id: I1fdefc0642e63ab981b2d224bfe5c2f983241170
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/143133
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Rebase-Id: Rf069d441f4bca50d302a3e3f793f0234abaeba5c
utmi_phy_pad_power_off(phy);
- if (phy->pdata->u_data.host.hot_plug) {
+ if (phy->hot_plug) {
bool enable_hotplug = true;
/* if it is OTG port then make sure to enable hot-plug feature
only if host adaptor is connected, i.e id is low */