FreeBSD Bugzilla – Attachment 205461 Details for
Bug 238037
[PATCH] Implement ig4 suspend/resume
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch with ig4_iic.c ig4iic_attach() updates from DragonflyBSD
ig4_iic.c.diff (text/plain), 1.13 KB, created by
J.R. Oldroyd
on 2019-07-01 13:25:48 UTC
(
hide
)
Description:
patch with ig4_iic.c ig4iic_attach() updates from DragonflyBSD
Filename:
MIME Type:
Creator:
J.R. Oldroyd
Created:
2019-07-01 13:25:48 UTC
Size:
1.13 KB
patch
obsolete
>Index: ig4_iic.c >=================================================================== >--- ig4_iic.c (revision 349304) >+++ ig4_iic.c (working copy) >@@ -579,6 +579,9 @@ > v = reg_read(sc, IG4_REG_SS_SCL_LCNT); > reg_write(sc, IG4_REG_FS_SCL_LCNT, v); > >+ reg_read(sc, IG4_REG_CLR_INTR); >+ reg_write(sc, IG4_REG_INTR_MASK, 0); >+ > /* > * Program based on a 25000 Hz clock. This is a bit of a > * hack (obviously). The defaults are 400 and 470 for standard >@@ -590,6 +593,7 @@ > reg_write(sc, IG4_REG_SS_SCL_LCNT, 125); > reg_write(sc, IG4_REG_FS_SCL_HCNT, 100); > reg_write(sc, IG4_REG_FS_SCL_LCNT, 125); >+ reg_write(sc, IG4_REG_SDA_HOLD, 1); > > /* > * Use a threshold of 1 so we get interrupted on each character, >@@ -631,6 +635,8 @@ > device_printf(sc->dev, "controller error during attach-1\n"); > if (set_controller(sc, IG4_I2C_ENABLE)) > device_printf(sc->dev, "controller error during attach-2\n"); >+ if (set_controller(sc, 0)) >+ device_printf(sc->dev, "controller error during attach-3\n"); > mtx_unlock(&sc->io_lock); > error = bus_setup_intr(sc->dev, sc->intr_res, INTR_TYPE_MISC | INTR_MPSAFE, > NULL, ig4iic_intr, sc, &sc->intr_handle);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238037
:
204527
|
205417
|
205432
|
205447
| 205461 |
205573
|
205867
|
207593