<p>Werner Zeh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20431">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vendorcode/siemens: Fix bug in hwilib for FF_FanReq and FF_FreezeDis<br><br>The two flags FF_FanReq and FF_Freeze_Dis should be treated as<br>8 bit values and not as 32 bit. Change the length of these fields to<br>1 byte and adjust the offset and mask for FF_FanReq.<br><br>Change-Id: If5e9e8b16491a33997cc39c3dd9b80f97682adc6<br>Signed-off-by: Werner Zeh <werner.zeh@siemens.com><br>---<br>M src/vendorcode/siemens/hwilib/hwilib.c<br>1 file changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/20431/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/vendorcode/siemens/hwilib/hwilib.c b/src/vendorcode/siemens/hwilib/hwilib.c<br>index c1533e8..08e8da9 100644<br>--- a/src/vendorcode/siemens/hwilib/hwilib.c<br>+++ b/src/vendorcode/siemens/hwilib/hwilib.c<br>@@ -143,14 +143,14 @@<br>          .pos[0] = {.blk_type = BLK_HIB, .offset = 0xe0, .len = 0x80},<br>                 .get_field = hwilib_read_bytes },<br>     [FF_FreezeDis] = {<br>-           .pos[0] = {.blk_type = BLK_HIB, .offset = 0x1b8, .len = 4},<br>+          .pos[0] = {.blk_type = BLK_HIB, .offset = 0x1b8, .len = 1},<br>           .mask = 0x10,<br>                 .mask_offset = 4,<br>             .get_field = hwilib_read_bytes },<br>     [FF_FanReq] = {<br>-              .pos[0] = {.blk_type = BLK_HIB, .offset = 0x1b8, .len = 4},<br>-          .mask = 0x400,<br>-               .mask_offset = 10,<br>+           .pos[0] = {.blk_type = BLK_HIB, .offset = 0x1b9, .len = 1},<br>+          .mask = 0x04,<br>+                .mask_offset = 2,<br>             .get_field = hwilib_read_bytes },<br>     [NvramVirtTimeDsaveReset] = {<br>                 .pos[0] = {.blk_type = BLK_HIB, .offset = 0x1be, .len = 2},<br></pre><p>To view, visit <a href="https://review.coreboot.org/20431">change 20431</a>. To unsubscribe, 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/20431"/><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: If5e9e8b16491a33997cc39c3dd9b80f97682adc6 </div>
<div style="display:none"> Gerrit-Change-Number: 20431 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Werner Zeh <werner.zeh@siemens.com> </div>