| From 7884e340277a58434d26c13288f44f283cdad0f4 Mon Sep 17 00:00:00 2001 |
| From: Marek Szyprowski <m.szyprowski@samsung.com> |
| Date: Fri, 14 Jun 2019 08:52:53 +0200 |
| Subject: [PATCH] usb: dwc2: Force 8bit UTMI width for Samsung Exynos SoCs |
| |
| commit 1112cf4c4109473fd8a30a4678d25f9321ef5d67 upstream. |
| |
| Samsung Exynos SoCs require to force UTMI width to 8bit, otherwise the |
| host side of the shared USB2 PHY doesn't work. |
| |
| Reported-by: Krzysztof Kozlowski <krzk@kernel.org> |
| Fixes: 707d80f0a3c5 ("usb: dwc2: gadget: Replace phyif with phy_utmi_width") |
| Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> |
| Acked-by: Minas Harutyunyan <hminas@synopsys.com> |
| Acked-by: Krzysztof Kozlowski <krzk@kernel.org> |
| Tested-by: Krzysztof Kozlowski <krzk@kernel.org> |
| Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c |
| index 5949262ff669..55f841a54015 100644 |
| --- a/drivers/usb/dwc2/params.c |
| +++ b/drivers/usb/dwc2/params.c |
| @@ -76,6 +76,7 @@ static void dwc2_set_s3c6400_params(struct dwc2_hsotg *hsotg) |
| struct dwc2_core_params *p = &hsotg->params; |
| |
| p->power_down = 0; |
| + p->phy_utmi_width = 8; |
| } |
| |
| static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg) |
| -- |
| 2.27.0 |
| |