Commit a85b4e7f authored by Brian J. Tarricone's avatar Brian J. Tarricone Committed by Greg Kroah-Hartman

USB: ehci: disable LPM and PPCD for nVidia MCP89 chips

Tested on MacBookAir3,1.  Without this, we get EPROTO errors when
fetching device config descriptors.
Signed-off-by: default avatarBrian Tarricone <brian@tarricone.org>
Reported-by: default avatarBenoit Gschwind <gschwind@gnu-log.net>
Tested-by: default avatarEdgar Hucek <gimli@dark-green.com>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6fdbad80
...@@ -161,6 +161,18 @@ static int ehci_pci_setup(struct usb_hcd *hcd) ...@@ -161,6 +161,18 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
if (pdev->revision < 0xa4) if (pdev->revision < 0xa4)
ehci->no_selective_suspend = 1; ehci->no_selective_suspend = 1;
break; break;
/* MCP89 chips on the MacBookAir3,1 give EPROTO when
* fetching device descriptors unless LPM is disabled.
* There are also intermittent problems enumerating
* devices with PPCD enabled.
*/
case 0x0d9d:
ehci_info(ehci, "disable lpm/ppcd for nvidia mcp89");
ehci->has_lpm = 0;
ehci->has_ppcd = 0;
ehci->command &= ~CMD_PPCEE;
break;
} }
break; break;
case PCI_VENDOR_ID_VIA: case PCI_VENDOR_ID_VIA:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment