Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174906742
D60138.id188518.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
678 B
Referenced Files
None
Subscribers
None
D60138.id188518.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 7, 9:44 PM (7 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40180664
Default Alt Text
D60138.id188518.diff (678 B)
Attached To
Mode
D60138: LinuxKPI: Add drm support to dev_is_pci() function
Attached
Detach File
Event Timeline
Log In to Comment