Home | History | Annotate | Download | only in i2c
History log of /src/sys/dev/i2c/adm1021.c
RevisionDateAuthorComments
 1.32  03-Oct-2025  thorpej Use device_{get,set}prop_string() for sensor names.
 1.31  21-Sep-2025  thorpej Get the sensor descriptive information from our device properties
dictionary, rather than from a secondary dictionary passed in the
i2c_attach_args (this secondary dictionary is deprecated and going
away).
 1.30  24-Jan-2022  andvar remove double "with" in comments and usage text. Also fix one typo.
 1.29  21-Jun-2021  christos branches: 1.29.6;
fix proplib deprecation
 1.28  15-Jun-2021  mlelstv iic_acquire_bus may fail.
 1.27  30-Jan-2021  thorpej branches: 1.27.4;
If we're going to keep a reference on the "props" dictionary from
the i2c_attach_args, we should retain it.
 1.26  28-Jan-2021  thorpej Use iic_compatible_lookup() in admtemp_setflags().
 1.25  27-Jan-2021  thorpej Use DEVICE_COMPAT_EOL.
 1.24  25-Jan-2021  thorpej Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.
 1.23  24-Jan-2021  rin Use temperature sensors as rnd(9) sources.
 1.22  17-Jan-2021  thorpej Use designated initializers and a consistent termination style in
compat_data[].
 1.21  10-Dec-2020  jdc Handle failing to acquire the iic bus.
Better handle errors when attaching sysmon sensors.
 1.20  21-Aug-2020  macallan branches: 1.20.2;
get sensore names from properties, remove OF code
 1.19  26-Jun-2018  thorpej In my quest to make device_compatible_entry (and associated goo)
super-general, it turns out I also made it a little to cumbersome
to use (if my tired fingers are any indication). So, this is a
course-correction -- one string per entry (like of_compat_data,
which it will soon replace), and remove the over-verbose macros.
 1.18  18-Jun-2018  thorpej - Rename iic_compat_match() to iic_compatible_match() and change it
to use the new device_compatible_match() routine. A pointer to
the matching device_compatible_entry is returned if a match is
found.
- Adjust iic_use_direct_match() accordingly.
- i2c drivers now provide device_compatible_entry tables when performing
direct-config matching.
- In the dsrtc driver, take advantage of this new capability to greatly
simplify model selection.

(I'm coming for you next, of_compat_data...)
 1.17  16-Jun-2018  thorpej More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
all of the logic for direct-config matching. If it returns true,
the driver returns the match result (which may be 0). If it returns
false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
lower-indexed "compatible" device property are more-specific matches,
and return a better match quality accordingly.
 1.16  29-Sep-2017  macallan branches: 1.16.2;
get sensor descriptions from OpenFirmware if we know how
this needs to be generalized
 1.15  20-Sep-2017  macallan add MAX6690 which seems to be a straight up ADM1032 clone
 1.14  13-Sep-2017  macallan MAX6642 does not have lower limit registers
 1.13  01-Sep-2017  macallan support MAX6642 - yet another adm1021 kinda-sorta clone
 1.12  04-Jan-2016  christos PR/50621: David Binderman: Wrap iic_exec() in a simpler utility function
and fix all the pointer/sizeof botches in the proces.
 1.11  03-Jan-2016  jdc Add display and setting of chip temperature limits for envsys(4).
Different chips are recognised where possible, and the appropriate limits
are displayed/settable.
 1.10  07-Dec-2015  jdc Use the destination buffer size when copying strings.
(Didn't matter in practice, because the destination was large enough.)
 1.9  27-Sep-2015  phx Direct config: Only match via the list of compatible hardware when we have
such a list available (ia_ncompat > 0). Otherwise fall back to matching
the device name with ia_name.
 1.8  27-Oct-2012  chs branches: 1.8.14;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.7  20-Jun-2011  pgoyette branches: 1.7.2; 1.7.12;
Initialize sensor state before registering.

XXX Still need to fix i2c/ibmhawk.c
 1.6  19-Jun-2011  martin Initialize sensor states to SINVALID
 1.5  11-Mar-2010  mrg branches: 1.5.8;
various aprint_* fixes.
 1.4  28-Feb-2010  martin Add direct config support for a few devices
 1.3  05-Jun-2009  hubertf branches: 1.3.2;
From the specs: address 0xff gives the die revision
 1.2  12-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.1  29-Oct-2008  jkunz branches: 1.1.6; 1.1.8; 1.1.10; 1.1.12; 1.1.16;
Ported alipm(4) and admtemp(4) from OpenBSD.
 1.1.16.6  11-Aug-2010  yamt sync with head.
 1.1.16.5  11-Mar-2010  yamt sync with head
 1.1.16.4  20-Jun-2009  yamt sync with head
 1.1.16.3  16-May-2009  yamt sync with head
 1.1.16.2  04-May-2009  yamt sync with head.
 1.1.16.1  29-Oct-2008  yamt file adm1021.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:38 +0000
 1.1.12.2  23-Jul-2009  jym Sync with HEAD.
 1.1.12.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.10.2  19-Jan-2009  skrll Sync with HEAD.
 1.1.10.1  29-Oct-2008  skrll file adm1021.c was added on branch nick-hppapmap on 2009-01-19 13:17:53 +0000
 1.1.8.2  17-Jan-2009  mjf Sync with HEAD.
 1.1.8.1  29-Oct-2008  mjf file adm1021.c was added on branch mjf-devfs2 on 2009-01-17 13:28:54 +0000
 1.1.6.2  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.1.6.1  29-Oct-2008  haad file adm1021.c was added on branch haad-dm on 2008-12-13 01:14:13 +0000
 1.3.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.5.8.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.7.12.2  03-Dec-2017  jdolecek update from HEAD
 1.7.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.7.2.1  30-Oct-2012  yamt sync with head
 1.8.14.2  19-Mar-2016  skrll Sync with HEAD
 1.8.14.1  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.16.2.2  28-Jul-2018  pgoyette Sync with HEAD
 1.16.2.1  25-Jun-2018  pgoyette Sync with HEAD
 1.20.2.2  03-Apr-2021  thorpej Sync with HEAD.
 1.20.2.1  14-Dec-2020  thorpej Sync w/ HEAD.
 1.27.4.2  01-Aug-2021  thorpej Sync with HEAD.
 1.27.4.1  17-Jun-2021  thorpej Sync w/ HEAD.
 1.29.6.1  10-Sep-2021  thorpej Remove unnecessary references to i2c_attach_args::ia_prop and mark the ones
that remain as XXX.

RSS XML Feed