提交 b0a50e92 编写于 作者: A Alan Stern 提交者: Greg Kroah-Hartman

USB: EHCI: avoid BIOS handover on the HASEE E200

Leandro Liptak reports that his HASEE E200 computer hangs when we ask
the BIOS to hand over control of the EHCI host controller.  This
definitely sounds like a bug in the BIOS, but at the moment there is
no way to fix it.

This patch works around the problem by avoiding the handoff whenever
the motherboard and BIOS version match those of Leandro's computer.
Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
Reported-by: NLeandro Liptak <leandroliptak@gmail.com>
Tested-by: NLeandro Liptak <leandroliptak@gmail.com>
CC: <stable@vger.kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e3d10505
...@@ -656,6 +656,14 @@ static const struct dmi_system_id ehci_dmi_nohandoff_table[] = { ...@@ -656,6 +656,14 @@ static const struct dmi_system_id ehci_dmi_nohandoff_table[] = {
DMI_MATCH(DMI_BIOS_VERSION, "Lucid-"), DMI_MATCH(DMI_BIOS_VERSION, "Lucid-"),
}, },
}, },
{
/* HASEE E200 */
.matches = {
DMI_MATCH(DMI_BOARD_VENDOR, "HASEE"),
DMI_MATCH(DMI_BOARD_NAME, "E210"),
DMI_MATCH(DMI_BIOS_VERSION, "6.00"),
},
},
{ } { }
}; };
...@@ -665,9 +673,14 @@ static void ehci_bios_handoff(struct pci_dev *pdev, ...@@ -665,9 +673,14 @@ static void ehci_bios_handoff(struct pci_dev *pdev,
{ {
int try_handoff = 1, tried_handoff = 0; int try_handoff = 1, tried_handoff = 0;
/* The Pegatron Lucid tablet sporadically waits for 98 seconds trying /*
* the handoff on its unused controller. Skip it. */ * The Pegatron Lucid tablet sporadically waits for 98 seconds trying
if (pdev->vendor == 0x8086 && pdev->device == 0x283a) { * the handoff on its unused controller. Skip it.
*
* The HASEE E200 hangs when the semaphore is set (bugzilla #77021).
*/
if (pdev->vendor == 0x8086 && (pdev->device == 0x283a ||
pdev->device == 0x27cc)) {
if (dmi_check_system(ehci_dmi_nohandoff_table)) if (dmi_check_system(ehci_dmi_nohandoff_table))
try_handoff = 0; try_handoff = 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册