[bionic,2/2] UBUNTU: SAUCE: drm/i915: make previous commit affects Wyse 3040 only
diff mbox series

Message ID 20180323165428.15530-3-jesse.sung@canonical.com
State New
Headers show
Series
  • Wyse 3040: Fix system hang after the cycle of cpu offline/online
Related show

Commit Message

Wen-chien Jesse Sung March 23, 2018, 4:54 p.m. UTC
BugLink: https://launchpad.net/bugs/1736393

Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com>
---
 drivers/gpu/drm/i915/intel_lpe_audio.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Comments

Thadeu Lima de Souza Cascardo March 27, 2018, 5:24 p.m. UTC | #1
Applied to bionic master-next branch.

Thanks.
Cascardo.

Applied-to: bionic/master-next

Patch
diff mbox series

diff --git a/drivers/gpu/drm/i915/intel_lpe_audio.c b/drivers/gpu/drm/i915/intel_lpe_audio.c
index efe8dd4f12a9..b6db221c007e 100644
--- a/drivers/gpu/drm/i915/intel_lpe_audio.c
+++ b/drivers/gpu/drm/i915/intel_lpe_audio.c
@@ -176,7 +176,15 @@  static int lpe_audio_irq_init(struct drm_i915_private *dev_priv)
 				handle_simple_irq,
 				"hdmi_lpe_audio_irq_handler");
 
-	return 0;
+	static const struct pci_device_id irq_quirk_ids[] = {
+		/* Dell Wyse 3040 */
+		{PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, 0x22b0, 0x1028, 0x07c1)},
+		{}
+	};
+
+	if (pci_dev_present(irq_quirk_ids))
+		return 0;
+	return irq_set_chip_data(irq, dev_priv);
 }
 
 static bool lpe_audio_detect(struct drm_i915_private *dev_priv)