Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/linux Re-enable PCI MSI for DRM devices
details: https://anonhg.NetBSD.org/src/rev/d44c4fe5057c
branches: trunk
changeset: 744495:d44c4fe5057c
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Feb 03 16:22:52 2020 +0000
description:
Re-enable PCI MSI for DRM devices
diffstat:
sys/external/bsd/drm2/linux/linux_pci.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r 7ba6b059c260 -r d44c4fe5057c sys/external/bsd/drm2/linux/linux_pci.c
--- a/sys/external/bsd/drm2/linux/linux_pci.c Mon Feb 03 16:22:25 2020 +0000
+++ b/sys/external/bsd/drm2/linux/linux_pci.c Mon Feb 03 16:22:52 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_pci.c,v 1.7 2020/01/18 02:59:42 jmcneill Exp $ */
+/* $NetBSD: linux_pci.c,v 1.8 2020/02/03 16:22:52 jmcneill Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.7 2020/01/18 02:59:42 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.8 2020/02/03 16:22:52 jmcneill Exp $");
#include <linux/pci.h>
@@ -266,7 +266,6 @@
int
pci_enable_msi(struct pci_dev *pdev)
{
-#ifdef notyet
const struct pci_attach_args *const pa = &pdev->pd_pa;
if (pci_msi_alloc_exact(pa, &pdev->pd_intr_handles, 1))
@@ -274,9 +273,6 @@
pdev->msi_enabled = 1;
return 0;
-#else
- return -ENOSYS;
-#endif
}
void
Home |
Main Index |
Thread Index |
Old Index