Page MenuHomeFreeBSD

intelspi: Add support for ddb/kdb -compatible polled mode
ClosedPublic

Authored by wulf on Jul 31 2023, 2:57 PM.
Tags
None
Referenced Files
F132099894: D41247.id.diff
Mon, Oct 13, 4:48 PM
F132099892: D41247.id125372.diff
Mon, Oct 13, 4:48 PM
F132037034: D41247.id125523.diff
Mon, Oct 13, 3:37 AM
F132037027: D41247.diff
Mon, Oct 13, 3:37 AM
Unknown Object (File)
Sun, Oct 12, 7:03 AM
Unknown Object (File)
Sat, Oct 11, 5:19 AM
Unknown Object (File)
Jul 2 2025, 1:58 AM
Unknown Object (File)
Jun 30 2025, 3:43 PM
Subscribers

Details

Summary

Required for Apple and Microsoft -compatible HID-over-SPI drivers.

Most logic was already implemented in commit 3c0867343819
"spibus: extend API: add cs_delay ivar, KEEP_CS and NO_SLEEP flags".
It dissallowed driver sleeps in the interrupt context. This commit
extends this feature on ddb/kdb context and adds some new properties:

  • Skip driver locking if SPI functions were called from kdb/ddb.
  • Reinitialize controller if kdb/ddb initiated SPI transfer has interrupted another already running one. Does not work very reliable yet.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable