Commit Graph

13 Commits

Author SHA1 Message Date
jdc 1e4ed9cf7e Call sysmon_envsys_destroy() if we receive any error from sysmon, rather
than just on some errors.
2021-06-14 13:52:11 +00:00
mlelstv cfac8f4e47 Avoid double free when attach fails. 2021-06-14 09:56:04 +00:00
thorpej 18f3098ca5 Use DEVICE_COMPAT_EOL. 2021-01-27 02:29:48 +00:00
thorpej d588f10834 Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.
2021-01-25 13:30:20 +00:00
thorpej 7246a94523 Use designated initializers and a consistent termination style in
compat_data[].
2021-01-17 21:42:35 +00:00
martin 23444c94ea Avoid creating a full temporary softc struct on the stack. 2020-06-26 10:06:57 +00:00
thorpej 82af5f8187 No need to do the poll-during-autoconfiguration dance; the i2c code
does the right thing for us.
2019-12-23 02:25:28 +00:00
jdc 6c5b34cf0d Chip matching improvements:
only match for currently known addresses
  don't generate messages when matching
Tested on Sun Blade 2500 by martin@.
2019-12-11 21:00:11 +00:00
thorpej feee3a19f4 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.
2018-06-26 06:03:57 +00:00
thorpej 4f9e5a443e - 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...)
2018-06-18 17:07:07 +00:00
thorpej aa41e9922c 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.
2018-06-16 21:22:13 +00:00
jdc a764ab2671 Increase the number of read retries (to 5). 2016-01-11 18:23:52 +00:00
jdc fce5253324 Add a driver for the ADM1026 Thermal System Management Fan Controller
i2c chip.
2015-12-16 07:56:48 +00:00