Author: tijl
Date: Tue Oct  8 10:24:48 2019
New Revision: 353300
URL: https://svnweb.freebsd.org/changeset/base/353300

Log:
  MFC r352618:
  
  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

Modified:
  stable/12/sys/compat/linsysfs/linsysfs.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linsysfs/linsysfs.c
==============================================================================
--- stable/12/sys/compat/linsysfs/linsysfs.c    Tue Oct  8 10:24:01 2019        
(r353299)
+++ stable/12/sys/compat/linsysfs/linsysfs.c    Tue Oct  8 10:24:48 2019        
(r353300)
@@ -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-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to