usb: disable SRAM usage temporarily for CLV
authorBin Gao <bin.gao@intel.com>
Fri, 16 Dec 2011 10:37:11 +0000 (02:37 -0800)
committerbuildbot <buildbot@intel.com>
Tue, 20 Dec 2011 15:33:24 +0000 (07:33 -0800)
BZ: 17299

HACK: Enabling SRAM usage in USB OTG driver would make USB OTG unstable during
large file transfer. For now, let's disable SRAM for Cloverview until this
issue is fully root caused and resolved.

Change-Id: Iccd5200b6a6b62798b5b3be970bca37aac4b6169
Signed-off-by: Prabu Renganathan <prabu.renganathan@intel.com>
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/27226
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/usb/gadget/langwell_udc.c

index b89fd6c..cd22808 100644 (file)
@@ -3416,6 +3416,13 @@ static int langwell_udc_probe(struct pci_dev *pdev,
        }
 
        dev->has_sram = 1;
+
+       /* FIXME: SRAM doesn't work stably with Cloverview */
+       if (pdev->vendor == 0x8086 && pdev->device == 0xE006) {
+               dev_info(&pdev->dev, "Disable SRAM for Cloverview.\n");
+               dev->has_sram = 0;
+       }
+
        dev->got_sram = 0;
        dev_vdbg(&dev->pdev->dev, "dev->has_sram: %d\n", dev->has_sram);