On Thu, Feb 22, 2024 at 06:42:20PM +0800, Hans Hu wrote: > > > > Thanks for your suggestion, the purpose of this approach is to > > > reduce the clock stretching caused by the system. Therefore, > > > I try to put almost all of the processing in the interrupt context. > > Well, I think per-msg handling in interrupt context is enough. The > > transfer (consisting of multiple messages) handling is usually best left > > in process context. > > > > OK, I understand now. If you need inspiration, check i2c-digicolor.c for a simple driver implementing it.
Attachment:
signature.asc
Description: PGP signature