Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (11 days ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/usb/dwc3/host.c

    r31574 r31859  
    2222int dwc3_host_init(struct dwc3 *dwc)
    2323{
    24         struct property_entry   props[2];
     24        struct property_entry   props[3];
    2525        struct platform_device  *xhci;
    2626        int                     ret, irq;
    2727        struct resource         *res;
    2828        struct platform_device  *dwc3_pdev = to_platform_device(dwc->dev);
     29        int                     prop_idx = 0;
    2930
    3031        irq = platform_get_irq_byname(dwc3_pdev, "host");
     
    9091        memset(props, 0, sizeof(struct property_entry) * ARRAY_SIZE(props));
    9192
    92         if (dwc->usb3_lpm_capable) {
    93                 props[0].name = "usb3-lpm-capable";
     93        if (dwc->usb3_lpm_capable)
     94                props[prop_idx++].name = "usb3-lpm-capable";
     95
     96        /**
     97         * WORKAROUND: dwc3 revisions <=3.00a have a limitation
     98         * where Port Disable command doesn't work.
     99         *
     100         * The suggested workaround is that we avoid Port Disable
     101         * completely.
     102         *
     103         * This following flag tells XHCI to do just that.
     104         */
     105        if (dwc->revision <= DWC3_REVISION_300A)
     106                props[prop_idx++].name = "quirk-broken-port-ped";
     107
     108        if (prop_idx) {
    94109                ret = platform_device_add_properties(xhci, props);
    95110                if (ret) {
Note: See TracChangeset for help on using the changeset viewer.