The NetBSD Project

CVS log for src/sys/dev/i2c/ihidev.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / i2c

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Nov 14 20:28:39 2026 UTC (41 hours, 29 minutes ago) by yurix
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -5 lines
ihidev: fix typo

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Nov 11 20:37:58 2026 UTC (4 days, 17 hours ago) by yurix
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +16 -6 lines
ihidev: delay attach until gpio interrupts are ready

Fixes PR 60981

Also drop unused field in ihidev_attach_arg, which simplifies this change.

Revision 1.30.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:21:55 2026 UTC (11 days, 14 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.1: +8 -8 lines
Sync with HEAD

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Sep 17 13:51:47 2025 UTC (13 months, 4 weeks ago) by thorpej
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +8 -8 lines
This driver only works with ACPI.  Rather than consult i2c_attach_args::
ia_cookietype, consult self's devhandle and check for DEVHANDLE_TYPE_ACPI.
Use the devhandle to get the ACPI handle where necessary, so it is no longer
necessary to store the ACPI handle in a softc field called "sc_phandle"
(which is not an accurate name).

Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:56:39 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +88 -14 lines
Sync with HEAD

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Dec 9 22:06:31 2024 UTC (23 months, 1 week ago) by jmcneill
Branches: MAIN
CVS tags: perseant-exfatfs-base-20250801, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +14 -5 lines
ihidev: Only reset the HID device once during attach.

From OpenBSD:
https://github.com/openbsd/src/commit/e773e7e3935196eea66382160eeee2d3f77d2e3f

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Dec 9 01:17:30 2024 UTC (23 months, 1 week ago) by jmcneill
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -3 lines
fixup! remove debug printf

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Dec 8 20:49:56 2024 UTC (23 months, 1 week ago) by jmcneill
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +77 -11 lines
ihidev: Add support for GPIO interrupts.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Apr 29 21:25:34 2024 UTC (2 years, 6 months ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base
Branch point for: perseant-exfatfs
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +10 -6 lines
ihidev(4): make driver compile with ACPI option disabled.

This change unlikely useful in practice, but adds consistency to already
available guards. Driver won't attach currently without ACPI.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Aug 1 19:36:45 2023 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
ihidev(4): Use iic_use_direct_match as intended.

This appears to have been a mistake; there's no obvious explanation
in the commit history for why this is different from all other
iic_use_direct_match users.

Patch from Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>, thanks!

(If it really is intended to ues I2C_MATCH_DIRECT_COMPATIBLE here, we
need a clear explanation of why, written down in a nearby comment.)

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Feb 12 03:24:35 2022 UTC (4 years, 9 months ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +21 -20 lines
sys: Fix various abuse of struct device internals.

Will help to make struct device opaque later.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jan 15 06:22:30 2022 UTC (4 years, 10 months ago) by skrll
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
Trailing whitespace

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Jan 14 22:28:59 2022 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -6 lines
ihidev(4): Prohibit closing an unopened ihidev.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jan 14 22:28:50 2022 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
ihidev(4): Avoid reference count overflow.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Jan 14 22:28:23 2022 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +23 -9 lines
ihidev(4): Take the lock for ihidev_open, ihidev_close.

Need this to serialize access to sc_state, sc_refcnt.

XXX Should harmonize this with uhidev(4) and tighten assertions.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jan 14 22:26:45 2022 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +13 -2 lines
ihidev(4): Check kmem_alloc(..., KM_NOSLEEP) for failure.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Jan 14 22:26:35 2022 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3 lines
ihidev(4): Allocate report buffer with KM_SLEEP.

Limited to 64k and only happens on attach anyway.  Let's not leave a
rake to trip on here.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Jan 14 22:25:49 2022 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +51 -43 lines
ihidev(4): Fix locking and interrupt handler.

- Can't run iic_exec in softint because it does cv_wait, at least on
  some i2c controllers -- defer to workqueue instead.

- Fix violations of locking rules:
  . Do not take a lock at higher IPL than it is defined at!
  . Do not sleep under a lock!
  . Definitely do not sleep under a spin lock!
  In this case, sc_intr_lock was defined at IPL_VM but used at IPL_TTY,
  and i2c transactions -- possibly causing sleep for cv_wait -- were
  issued under it.

  But in this case, the interrupt handler needs only a single bit to
  mark whether the work is pending, so just use atomic_swap for that.

- Use an adaptive lock (IPL_NONE) for i2c transactions.

- Detach children, and do so before freeing anything.

Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 9 12:36:14 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-i2c-spi-conf2
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.1: +4 -4 lines
Use the same idiom to cast the ACPI_HANDLE to uint64_t as other drivers
when passing it to acpi_intr_establish().

XXX This is gross, but fixing it is outside the scope of this branch.

Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 9 00:30:09 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-i2c-spi-conf2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -7 lines
Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:11 2021 UTC (5 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base
Branch point for: thorpej-i2c-spi-conf2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -8 lines
Merge thorpej-cfargs2.

Revision 1.19.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 18:53:26 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +6 -8 lines
Adapt to CFARGS().

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Sat May 8 15:44:12 2021 UTC (5 years, 6 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +6 -7 lines
Rather than using the "cookie" from the i2c_attach_args, use the
device handle that's already associated with our device_t.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:54 2021 UTC (5 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf, thorpej-cfargs2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +10 -6 lines
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.12.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:44 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +43 -11 lines
Sync with HEAD.

Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 22 16:23:44 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.1: +2 -4 lines
Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 22 02:01:00 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +12 -6 lines
Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Jan 27 02:29:48 2021 UTC (5 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
Use DEVICE_COMPAT_EOL.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jan 26 02:33:54 2021 UTC (5 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +39 -9 lines
Now that the ACPI layer no longer does this for us, evaluate the _DSM
that returns the HID descriptor address at attach time.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Jan 26 01:23:08 2021 UTC (5 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -2 lines
Don't map ACPI _HID / _CID strings to "compatible" strings from the
Device Tree bindings.  Just pass those strings in the standard
most-specific-to-least-specific order to the drivers and let them
deal.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jan 26 01:15:39 2021 UTC (5 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -4 lines
Back out unintended change in previous.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Jan 25 13:30:20 2021 UTC (5 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -4 lines
Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jan 17 21:47:50 2021 UTC (5 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -4 lines
Use designated initializers and a consistent termination style in
compat_data[].

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:20 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.1: +134 -41 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:31 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +132 -37 lines
Sync with head.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jan 9 04:04:01 2020 UTC (6 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Branch point for: thorpej-futex
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +132 -37 lines
Re-enable the intr / mask / softint / unmask dance now that the x86
interrupt issue is fixed.  Verified working by ryoon@ (thanks!).

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Dec 25 01:19:56 2019 UTC (6 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +37 -115 lines
Revert previous until issues can be sorted out.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Dec 22 16:44:35 2019 UTC (6 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +117 -39 lines
The hid-over-i2c spec specifies that compliant devices use level-sensitive
interrupts.  However, it's not safe to do i2c bus access in hard interrupt
context, and we must read the event data off the device in order to clear
the interrupt condition.

Address this by using acpi_intr_mask() to mask off the interrupt source
while a softint is pending to service the events, re-enabling it once
servicing is completed.

While here, re-factor the interrupt setup / tear-down code a bit to
eventually once day simplify supporting the FDT bindings for hid-over-i2c.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Oct 1 18:00:08 2019 UTC (7 years, 1 month ago) by chs
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -8 lines
in many device attach paths, allocate memory with KM_SLEEP instead of KM_NOSLEEP
and remove code to handle failures that can no longer happen.

Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 26 18:56:05 2019 UTC (7 years, 1 month ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +5 -3 lines
Pull up following revision(s) (requested by bouyer in ticket #244):

	sys/dev/i2c/ihidev.c: revision 1.8

Abort attach if acpi_intr_establish() fails. From K. Schreiner on
current-users@.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Sep 26 08:16:26 2019 UTC (7 years, 1 month ago) by bouyer
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -3 lines
Abort attach if acpi_intr_establish() fails. From K. Schreiner on
current-users@.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:09 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +8 -8 lines
Sync with HEAD

Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:31 2018 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.1.2.3: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.3: +8 -8 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Nov 16 23:05:50 2018 UTC (8 years ago) by jmcneill
Branches: MAIN
CVS tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +7 -7 lines
Use acpi_md_intr_establish/disestablish to handle device IRQs. The existing
code abused AcpiOsInstallInterruptHandler, which is meant for installing
the SCI handler.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Nov 15 23:01:45 2018 UTC (8 years ago) by jakllsch
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
Correctly handle signed/unsigned quantities in kernel HID parser.

Should fix PR kern/53605.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:44 2018 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.2: +6 -11 lines
Sync with HEAD

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:03:57 2018 UTC (8 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -11 lines
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.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:50 2018 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +11 -6 lines
Sync with HEAD

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jun 18 17:07:07 2018 UTC (8 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: pgoyette-compat-0625
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +8 -3 lines
- 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...)

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jun 16 21:22:13 2018 UTC (8 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -6 lines
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.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 22 01:44:48 2018 UTC (8 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -3 lines
Synch with HEAD, resolve conflicts

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Mar 20 12:14:52 2018 UTC (8 years, 7 months ago) by bouyer
Branches: MAIN
CVS tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -3 lines
Allow registering ACPI interrupt handlers with a xname.
AcpiOsInstallInterruptHandler(), part of ACPICA API, doesn't allow passing
the xname. I extend the API with AcpiOsInstallInterruptHandler_xname()
for this purpose, and change acpi_md_OsInstallInterruptHandler() to
accept and use the xname (ia64 doens't use it).
The xname was hardcoded to "acpi SCI" in the
x86 acpi_md_OsInstallInterruptHandler(), so I make
AcpiOsInstallInterruptHandler() call
AcpiOsInstallInterruptHandler_xname with xname = "acpi SCI".

Now 'vmstat -i' shows the device's name instead of "acpi SCI" for for i2c HID
interrupts.

Proposed on tech-kern@ on Dec 29.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 17:05:54 2017 UTC (8 years, 11 months ago) by bouyer
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0315
Branch point for: pgoyette-compat
Add drivers for HID over I2C devices, and a driver for I2C mices.
From OpenBSD.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>