[PATCH v5 2/8] i2c: iproc: Add slave mode support

Wolfram Sang wsa at the-dreams.de
Wed Mar 27 15:41:52 PDT 2019


> > +	/* flush TX/RX FIFOs */
> > +	val = (BIT(S_FIFO_RX_FLUSH_SHIFT) | BIT(S_FIFO_TX_FLUSH_SHIFT));
> > +	writel(val, iproc_i2c->base + S_FIFO_CTRL_OFFSET);
> 
> Will flushing FIFOs work when a slave is register while a master
> transfer is on-going at the same time?

Sorry, my bad, this can't happen. Registering a slave is protected by
the adapter lock.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20190327/1d05c680/attachment.sig>


More information about the linux-arm-kernel mailing list