FreeBSD Bugzilla – Attachment 187954 Details for
Bug 223642
ds3231 iic driver can't initialise a new device
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to change failures to start the oscillator and acknowledge interrupts to be warnings
ds3231.c.diff (text/plain), 862 bytes, created by
Brian Scott
on 2017-11-13 06:04:44 UTC
(
hide
)
Description:
Patch to change failures to start the oscillator and acknowledge interrupts to be warnings
Filename:
MIME Type:
Creator:
Brian Scott
Created:
2017-11-13 06:04:44 UTC
Size:
862 bytes
patch
obsolete
>--- ds3231.c.orig 2017-11-12 14:28:11.499703000 +1100 >+++ ds3231.c 2017-11-13 15:41:27.183176000 +1100 >@@ -429,10 +429,10 @@ > } > /* Ack any pending alarm interrupt. */ > if (ds3231_status_write(sc, 1, 1) != 0) >- return; >+ device_printf(sc->sc_dev,"WARNING: Can't Ack pending alarm interrupts\n"); > /* Always enable the oscillator. */ > if (ds3231_ctrl_write(sc) != 0) >- return; >+ device_printf(sc->sc_dev,"WARNING: Can't enable the oscillator.\n"); > > /* Temperature. */ > SYSCTL_ADD_PROC(ctx, tree, OID_AUTO, "temperature", >@@ -568,7 +568,7 @@ > data[DS3231_MINS] = TOBCD(ct.min); > data[DS3231_HOUR] = TOBCD(ct.hour) | pmflags; > data[DS3231_DATE] = TOBCD(ct.day); >- data[DS3231_WEEKDAY] = ct.dow; >+ data[DS3231_WEEKDAY] = ct.dow + 1; > data[DS3231_MONTH] = TOBCD(ct.mon); > data[DS3231_YEAR] = TOBCD(ct.year % 100); > if (sc->sc_last_c)
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 223642
: 187954