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
Unknown Object (File)
Fri, Apr 26, 7:00 PM
Unknown Object (File)
Apr 12 2024, 7:44 AM
Unknown Object (File)
Apr 12 2024, 7:44 AM
Unknown Object (File)
Apr 10 2024, 5:33 AM
Unknown Object (File)
Mar 17 2024, 4:29 PM
Unknown Object (File)
Dec 20 2023, 5:45 AM
Unknown Object (File)
Dec 12 2023, 4:03 AM
Unknown Object (File)
Nov 10 2023, 12:11 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