Author: tijl
Date: Mon Sep 23 12:27:55 2019
New Revision: 352618
URL: https://svnweb.freebsd.org/changeset/base/352618

Log:
  Create a "drm" subdirectory for drm devices in linsysfs.  Recent versions of
  linux libdrm check for the existence of this directory:
  
  
https://cgit.freedesktop.org/mesa/drm/commit/?id=f8392583418aef5e27bfed9989aeb601e20cc96d
  
  MFC after:    2 weeks

Modified:
  head/sys/compat/linsysfs/linsysfs.c

Modified: head/sys/compat/linsysfs/linsysfs.c
==============================================================================
--- head/sys/compat/linsysfs/linsysfs.c Mon Sep 23 08:53:14 2019        
(r352617)
+++ head/sys/compat/linsysfs/linsysfs.c Mon Sep 23 12:27:55 2019        
(r352618)
@@ -520,6 +520,7 @@ linsysfs_run_bus(device_t dev, struct pfs_node *dir, s
                    device_get_unit(dev) >= 0) {
                        dinfo = device_get_ivars(parent);
                        if (dinfo != NULL && dinfo->cfg.baseclass == 
PCIC_DISPLAY) {
+                               pfs_create_dir(dir, "drm", NULL, NULL, NULL, 0);
                                sprintf(devname, "226:%d",
                                    device_get_unit(dev));
                                sub_dir = pfs_create_dir(chardev,
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to