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/drm Copy body of static drm_legacy_dev...
details: https://anonhg.NetBSD.org/src/rev/a721af71a903
branches: trunk
changeset: 992519:a721af71a903
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 06:52:34 2018 +0000
description:
Copy body of static drm_legacy_dev_reinit from drm_fops.c to drm_cdevsw.c.
diffstat:
sys/external/bsd/drm2/drm/drm_cdevsw.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 21b8f7590b87 -r a721af71a903 sys/external/bsd/drm2/drm/drm_cdevsw.c
--- a/sys/external/bsd/drm2/drm/drm_cdevsw.c Mon Aug 27 06:52:24 2018 +0000
+++ b/sys/external/bsd/drm2/drm/drm_cdevsw.c Mon Aug 27 06:52:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_cdevsw.c,v 1.6 2018/08/27 06:51:29 riastradh Exp $ */
+/* $NetBSD: drm_cdevsw.c,v 1.7 2018/08/27 06:52:34 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_cdevsw.c,v 1.6 2018/08/27 06:51:29 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_cdevsw.c,v 1.7 2018/08/27 06:52:34 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -258,7 +258,13 @@
drm_legacy_dma_takedown(dev);
mutex_unlock(&dev->struct_mutex);
- drm_legacy_dev_reinit(dev);
+ /* XXX Synchronize with drm_legacy_dev_reinit. */
+ if (!drm_core_check_feature(dev, DRIVER_MODESET)) {
+ dev->sigdata.lock = NULL;
+ dev->context_flag = 0;
+ dev->last_context = 0;
+ dev->if_version = 0;
+ }
return 0;
}
Home |
Main Index |
Thread Index |
Old Index