Skip to content
Snippets Groups Projects
Commit f6b8c321 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Stefan Rauch
Browse files

wishbone: Let write callback talk to slave directly and process MSI.


After handle_write_cfg(, WBA_ERR, ) the function wakes a worker which
will talk to the hardware and process the MSI. This worker can be
delayed if the system is busy leading to latency spikes during the
communication.

The detour via the worker can be avoided and the request can be
completed within the write request. Doing it within handle_write_cfg()
could be possible because wishbone_process_msi() is using its own buffer
for communication and only the locking is in the way.
It looks safer and simpler to simply wait until all locks are released
and process the MSI afterwards if needed.
This also mimics the previous workflow except that there is less delay
now.

Don't schedule the worker from handle_write_cfg() but process the MSI
request directly from the write callback if needed.

Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: default avatarKurt Kanzenbach <kurt@linutronix.de>
parent 9ba271b6
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment