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)
Dec 12 2024, 4:50 AM
Unknown Object (File)
Nov 21 2024, 4:12 PM
Unknown Object (File)
Sep 24 2024, 8:52 AM
Unknown Object (File)
Sep 24 2024, 4:22 AM
Unknown Object (File)
Sep 21 2024, 3:16 AM
Unknown Object (File)
Sep 19 2024, 3:45 PM
Unknown Object (File)
Sep 19 2024, 2:53 AM
Unknown Object (File)
Sep 18 2024, 3:04 AM
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