<p>Matt DeVillier has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/23697">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ec/chromeec: Fix battery ACPI mutex level<br><br>Commit 07fe618 [chromeec: Add support for reading second battery info]<br>added a Mutex as part of the ACPI code to determine battery statuses.<br><br>Windows is extremely picky about ACPI code, and attempting to acquire<br>a level 1 mutex without first having acquired a level 0 mutex causes<br>Windows to hang on boot. Since there's no reason to use a level 1<br>mutex here, change it to level 0.<br><br>Test: Boot Windows on device with ChromeEC without hanging<br><br>Change-Id: Icfb0817cfe0c49eb4527a12b507362939a6d32c6<br>Signed-off-by: Matt DeVillier <matt.devillier@gmail.com><br>---<br>M src/ec/google/chromeec/acpi/battery.asl<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/23697/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl</span><br><span>index d8056b0..0a0caec 100644</span><br><span>--- a/src/ec/google/chromeec/acpi/battery.asl</span><br><span>+++ b/src/ec/google/chromeec/acpi/battery.asl</span><br><span>@@ -17,7 +17,7 @@</span><br><span> // Scope (EC0)</span><br><span> </span><br><span> /* Mutex for EC battery index interface */</span><br><span style="color: hsl(0, 100%, 40%);">-Mutex (BATM, 1)</span><br><span style="color: hsl(120, 100%, 40%);">+Mutex (BATM, 0)</span><br><span> </span><br><span> // Wait for desired battery index to be presented in shared memory</span><br><span> //   Arg0 = battery index</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/23697">change 23697</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/23697"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Icfb0817cfe0c49eb4527a12b507362939a6d32c6 </div>
<div style="display:none"> Gerrit-Change-Number: 23697 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Matt DeVillier <matt.devillier@gmail.com> </div>