mb/google/poppy: Remove redundant mutex

The mutex is only used in one method and that method is serialised. Remove
the mutex.

BUG=chromium:959232

Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Jacopo Mondi <jacopo@jmondi.org>
Change-Id: Ic173d557f4b49cc9e860d13b782fc4940fd80869
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36745
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Sakari Ailus
2019-11-01 12:09:28 +02:00
committed by Patrick Georgi
parent be0dfef30c
commit 68f0eb5269

View File

@@ -400,14 +400,8 @@ Scope (\_SB.PCI0.I2C2)
} }
/* Reference count for VSIO */ /* Reference count for VSIO */
Mutex (MUTV, 0)
Name (VSIC, 0) Name (VSIC, 0)
Method (DOVD, 1, Serialized) { Method (DOVD, 1, Serialized) {
/* Save Acquire result so we can check for
Mutex acquired */
Store (Acquire (MUTV, 1000), Local0)
/* Check for Mutex acquired */
If (LEqual (Local0, Zero)) {
/* Turn off VSIO */ /* Turn off VSIO */
If (LEqual (Arg0, Zero)) { If (LEqual (Arg0, Zero)) {
/* Decrement only if VSIC > 0 */ /* Decrement only if VSIC > 0 */
@@ -442,9 +436,6 @@ Scope (\_SB.PCI0.I2C2)
Increment (VSIC) Increment (VSIC)
} }
} }
Release (MUTV)
}
} }
/* C0GP is used to indicate if CAM0 /* C0GP is used to indicate if CAM0