History log of /netbsd/sys/dev/i2c/at24cxx.c (Results 1 – 25 of 41)
Revision Date Author Comments
# 3ad0e1e8 28-Jan-2021 thorpej <thorpej@NetBSD.org>

No need to consult ia->ia_ncompat before calling iic_compatible_lookup().


# 01632a17 27-Jan-2021 thorpej <thorpej@NetBSD.org>

Use DEVICE_COMPAT_EOL.


# d068de0e 25-Jan-2021 thorpej <thorpej@NetBSD.org>

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.


# d95a8b0e 18-Jan-2021 thorpej <thorpej@NetBSD.org>

Change the device_compatible_match() function to only perform the match.
Introduce a device_compatible_lookup() function to return an entry based
on the same matching criteria (a'la of_search_compati

Change the device_compatible_match() function to only perform the match.
Introduce a device_compatible_lookup() function to return an entry based
on the same matching criteria (a'la of_search_compatible()).

Update iic_compatible_match() to reflect the above change, and introduce
iic_compatible_lookup(). This pattern is less awkward to use.

show more ...


# 33a497c2 17-Jan-2021 thorpej <thorpej@NetBSD.org>

Change the device_compatible_entry struct to have a union of
a scalar value (uintptr_t value) and a pointer value (const void *data),
rather than just "uintptr_t data". This eliminates the need for

Change the device_compatible_entry struct to have a union of
a scalar value (uintptr_t value) and a pointer value (const void *data),
rather than just "uintptr_t data". This eliminates the need for drivers
to cast this value, and doesn't lose const'ness of pointers assigned
to the field.

Update all of the users of this field to use the correct set of
designated initialisers for each specific case.

show more ...


# 5ca8f16d 15-Jan-2020 thorpej <thorpej@NetBSD.org>

tsleep -> kpause


# cd0348d5 23-Dec-2019 thorpej <thorpej@NetBSD.org>

Oops, missed one more instance of unneeded-I2C_F_POLL.


# 623de550 23-Dec-2019 thorpej <thorpej@NetBSD.org>

seeprom_bootstrap_read(): no need to hard-code I2C_F_POLL here because
the i2c code will ensure it's there if the system is cold.


# 4baaa629 29-Nov-2019 hkenken <hkenken@NetBSD.org>

Support more than 128Kbit model.


# d3231881 27-Oct-2019 jmcneill <jmcneill@NetBSD.org>

Add atmel,24c256 compat data


# 376767b8 26-Mar-2019 mlelstv <mlelstv@NetBSD.org>

provide compatible names for all sizes.


# 075bc71c 26-Jun-2018 thorpej <thorpej@NetBSD.org>

Remove the i2c "size" locator and corresponding property / attach arg.
It was a hack meant only for EEPROMs, which have another way to specify
size in the config directive ("flag" paramter), as well

Remove the i2c "size" locator and corresponding property / attach arg.
It was a hack meant only for EEPROMs, which have another way to specify
size in the config directive ("flag" paramter), as well as a better way
to detect size based on "compatible" string.

show more ...


# c8f6a097 26-Jun-2018 thorpej <thorpej@NetBSD.org>

Encode the size information in the compat data.


# 0089a6b2 26-Jun-2018 thorpej <thorpej@NetBSD.org>

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
cour

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.

show more ...


# b3c1046b 18-Jun-2018 thorpej <thorpej@NetBSD.org>

- 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

- 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...)

show more ...


# 22de7409 16-Jun-2018 thorpej <thorpej@NetBSD.org>

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 direc

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.

show more ...


# 1d42e734 28-Oct-2017 riastradh <riastradh@NetBSD.org>

Kill some more extern struct cfdriver declarations.

Down with externs in .c!


# 6c72954e 21-Oct-2017 jmcneill <jmcneill@NetBSD.org>

match atmel,24c16


# c8a5d153 10-Sep-2016 jakllsch <jakllsch@NetBSD.org>

Iterate over ia_ncompat array properly.


# 4eb9a39f 23-Jul-2016 jakllsch <jakllsch@NetBSD.org>

Also check the compatibles table when the size is below zero.

Fixes an aprint_error() on Jetson TK1.


# 9e4bb003 13-Dec-2015 jmcneill <jmcneill@NetBSD.org>

Support direct config.


# 850f2b6e 27-Sep-2015 phx <phx@NetBSD.org>

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.


# 02a19cc8 10-May-2015 jmcneill <jmcneill@NetBSD.org>

Many I2C drivers hold spin locks between iic_acquire_bus / iic_release_bus.
Avoid sleeping while owning the I2C bus.


# 1a918832 25-Jul-2014 dholland <dholland@NetBSD.org>

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.


# 76258fa0 16-Mar-2014 dholland <dholland@NetBSD.org>

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

show more ...


12