diff options
| -rw-r--r-- | drivers/usb/dwc2/params.c | 9 | ||||
| -rw-r--r-- | drivers/usb/dwc2/platform.c | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 6900eea57526..5949262ff669 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c | |||
| @@ -253,6 +253,15 @@ static void dwc2_set_param_phy_utmi_width(struct dwc2_hsotg *hsotg) | |||
| 253 | val = (hsotg->hw_params.utmi_phy_data_width == | 253 | val = (hsotg->hw_params.utmi_phy_data_width == |
| 254 | GHWCFG4_UTMI_PHY_DATA_WIDTH_8) ? 8 : 16; | 254 | GHWCFG4_UTMI_PHY_DATA_WIDTH_8) ? 8 : 16; |
| 255 | 255 | ||
| 256 | if (hsotg->phy) { | ||
| 257 | /* | ||
| 258 | * If using the generic PHY framework, check if the PHY bus | ||
| 259 | * width is 8-bit and set the phyif appropriately. | ||
| 260 | */ | ||
| 261 | if (phy_get_bus_width(hsotg->phy) == 8) | ||
| 262 | val = 8; | ||
| 263 | } | ||
| 264 | |||
| 256 | hsotg->params.phy_utmi_width = val; | 265 | hsotg->params.phy_utmi_width = val; |
| 257 | } | 266 | } |
| 258 | 267 | ||
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index d10a7f8daec3..e98d7812da2d 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c | |||
| @@ -271,15 +271,6 @@ static int dwc2_lowlevel_hw_init(struct dwc2_hsotg *hsotg) | |||
| 271 | 271 | ||
| 272 | hsotg->plat = dev_get_platdata(hsotg->dev); | 272 | hsotg->plat = dev_get_platdata(hsotg->dev); |
| 273 | 273 | ||
| 274 | if (hsotg->phy) { | ||
| 275 | /* | ||
| 276 | * If using the generic PHY framework, check if the PHY bus | ||
| 277 | * width is 8-bit and set the phyif appropriately. | ||
| 278 | */ | ||
| 279 | if (phy_get_bus_width(hsotg->phy) == 8) | ||
| 280 | hsotg->params.phy_utmi_width = 8; | ||
| 281 | } | ||
| 282 | |||
| 283 | /* Clock */ | 274 | /* Clock */ |
| 284 | hsotg->clk = devm_clk_get_optional(hsotg->dev, "otg"); | 275 | hsotg->clk = devm_clk_get_optional(hsotg->dev, "otg"); |
| 285 | if (IS_ERR(hsotg->clk)) { | 276 | if (IS_ERR(hsotg->clk)) { |
