Quoting Dmitry Baryshkov (2022-12-15 10:46:42)yes, please
On 15/12/2022 20:32, Kuogee Hsieh wrote:I'd prefer we apply my patch and pass the irqreturn_t variable to the
if (!aux->cmd_busy)Can you just move the complete() into the individual handling functions?
return;
if (aux->native)
- dp_aux_native_handler(aux, isr);
+ ret = dp_aux_native_handler(aux, isr);
else
- dp_aux_i2c_handler(aux, isr);
+ ret = dp_aux_i2c_handler(aux, isr);
- complete(&aux->comp);
+ if (ret == IRQ_HANDLED)
+ complete(&aux->comp);
Then you won't have to return the error code from dp_aux_*_handler() at
all. You can check `isr' in that function and call complete if there was
any error.
caller of this function so spurious irqs are shutdown. Should I send it
as a proper patch?