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/dist/drm/i915 Drop the gmbus wait lock...
details: https://anonhg.NetBSD.org/src/rev/740a2a8d347c
branches: trunk
changeset: 336464:740a2a8d347c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Mar 02 18:36:49 2015 +0000
description:
Drop the gmbus wait lock to delay.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/intel_i2c.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r cc03f99b3d51 -r 740a2a8d347c sys/external/bsd/drm2/dist/drm/i915/intel_i2c.c
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_i2c.c Mon Mar 02 17:53:00 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_i2c.c Mon Mar 02 18:36:49 2015 +0000
@@ -292,7 +292,9 @@
!ISSET(gmbus2, (GMBUS_SATOER | gmbus2_status))) {
if (i-- == 0)
break;
+ spin_unlock(&dev_priv->gmbus_wait_lock);
DELAY(1000);
+ spin_lock(&dev_priv->gmbus_wait_lock);
}
} else {
for (i = 0; i < mstohz(50); i++) {
Home |
Main Index |
Thread Index |
Old Index