Page MenuHomeFreeBSD

D28748.diff
No OneTemporary

D28748.diff

Index: sys/dev/ichiic/ig4_iic.c
===================================================================
--- sys/dev/ichiic/ig4_iic.c
+++ sys/dev/ichiic/ig4_iic.c
@@ -804,7 +804,13 @@
elems = obj->Package.Elements;
*scl_hcnt = elems[0].Integer.Value & IG4_SCL_CLOCK_MASK;
*scl_lcnt = elems[1].Integer.Value & IG4_SCL_CLOCK_MASK;
- *sda_hold = elems[2].Integer.Value & IG4_SDA_TX_HOLD_MASK;
+ if (elems[2].Integer.Value != 0) {
+ /*
+ * If the value in the table is zero, stick
+ * with value calculated earlier for sda_hold.
+ */
+ *sda_hold = elems[2].Integer.Value & IG4_SDA_TX_HOLD_MASK;
+ }
status = AE_OK;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 30, 3:41 AM (11 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17850877
Default Alt Text
D28748.diff (640 B)

Event Timeline