Page MenuHomeFreeBSD

D60138.id188518.diff
No OneTemporary

D60138.id188518.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -403,6 +403,17 @@
static inline bool
dev_is_pci(struct device *dev)
{
+ device_t parent = device_get_parent(dev->bsddev);
+
+ if (parent == NULL)
+ return (false);
+ /*
+ * drmn driver is attached to PCI bus via intermediate vgapci
+ * driver. Check for it presence in device tree branch too to
+ * handle drm-kmod cases.
+ */
+ if (device_get_devclass(parent) == devclass_find("vgapci"))
+ return (true);
return (is_pci_device(dev->bsddev));
}

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 8, 11:09 AM (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40180664
Default Alt Text
D60138.id188518.diff (678 B)

Event Timeline