aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests
diff options
context:
space:
mode:
authorDharma Balasubiramani <[email protected]>2025-05-20 15:21:46 +0000
committerWilliam Breathitt Gray <[email protected]>2025-05-22 09:40:19 +0000
commitae3392c0f12f179b969ce17856ed18bf8d69a35e (patch)
tree920c9bd7ad68d82bac45221568dc136e02d4d839 /drivers/fpga/tests
parentcounter: stm32-timer-cnt: add support for stm32mp25 (diff)
downloadkernel-ae3392c0f12f179b969ce17856ed18bf8d69a35e.tar.gz
kernel-ae3392c0f12f179b969ce17856ed18bf8d69a35e.zip
counter: microchip-tcb-capture: Add watch validation support
The Timer Counter Block (TCB) exposes several kinds of events to the Counter framework, but not every event is meaningful on every hardware channel. Add a `watch_validate()` callback so userspace may register only the combinations actually supported: * Channel 0 (COUNTER_MCHP_EVCHN_CV, COUNTER_MCHP_EVCHN_RA) - COUNTER_EVENT_CAPTURE - COUNTER_EVENT_CHANGE_OF_STATE - COUNTER_EVENT_OVERFLOW * Channel 1 (COUNTER_MCHP_EVCHN_RB) - COUNTER_EVENT_CAPTURE * Channel 2 (COUNTER_MCHP_EVCHN_RC) - COUNTER_EVENT_THRESHOLD Any other request is rejected with `-EINVAL`. Signed-off-by: Dharma Balasubiramani <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: William Breathitt Gray <[email protected]>
Diffstat (limited to 'drivers/fpga/tests')
0 files changed, 0 insertions, 0 deletions