When some hardware is faulty, the error code cannot be set, and it just stops working. In addition, interrupts are generally not enabled. Therefore, for such hardware, the framework needs to have a mechanism to transmit the status so that applications can sense the status.
So how about extend vchan_idle to vchan_status, include: idle, running, error-stop ? On 2021/9/2 0:32, Bruce Richardson wrote: > Add in a function to check if a device or vchan has completed all jobs > assigned to it, without gathering in the results. This is primarily for > use in testing, to allow the hardware to be in a known-state prior to > gathering completions. > [snip]