Revert "UPSTREAM: usb: dwc3: drop FIFO resizing logic"
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc3 / core.c
index 538ea674e3d9d7899f7c6bb29f0bdd5e8c8f9919..b8c39d86f56573365dfd75bdc34f81cac4ab147d 100644 (file)
@@ -983,6 +983,9 @@ static int dwc3_probe(struct platform_device *pdev)
        dwc->usb3_lpm_capable = device_property_read_bool(dev,
                                "snps,usb3_lpm_capable");
 
+       dwc->needs_fifo_resize = device_property_read_bool(dev,
+                               "tx-fifo-resize");
+
        dwc->disable_scramble_quirk = device_property_read_bool(dev,
                                "snps,disable_scramble_quirk");
        dwc->u2exit_lfps_quirk = device_property_read_bool(dev,
@@ -1030,6 +1033,7 @@ static int dwc3_probe(struct platform_device *pdev)
                if (pdata->hird_threshold)
                        hird_threshold = pdata->hird_threshold;
 
+               dwc->needs_fifo_resize = pdata->tx_fifo_resize;
                dwc->usb3_lpm_capable = pdata->usb3_lpm_capable;
                dwc->dr_mode = pdata->dr_mode;