Re: [PATCH v6 3/3] i2c-ocores: sifive: add polling mode workaround for FU540-C000 SoC.

2019-05-21 Thread Sagar Kadam
Hi Andrew, On Tue, May 21, 2019 at 7:24 PM Andrew Lunn wrote: > > > static void ocores_process_polling(struct ocores_i2c *i2c) > > { > > + const struct of_device_id *match; > > + > > + match = of_match_node(ocores_i2c_match, i2c->adap.dev.of_node); > > + > > while (1) { > >

Re: [PATCH v6 3/3] i2c-ocores: sifive: add polling mode workaround for FU540-C000 SoC.

2019-05-21 Thread Andrew Lunn
> static void ocores_process_polling(struct ocores_i2c *i2c) > { > + const struct of_device_id *match; > + > + match = of_match_node(ocores_i2c_match, i2c->adap.dev.of_node); > + > while (1) { > irqreturn_t ret; > int err; Please keep with the idea of

[PATCH v6 3/3] i2c-ocores: sifive: add polling mode workaround for FU540-C000 SoC.

2019-05-21 Thread Sagar Shrikant Kadam
The i2c-ocore driver already has a polling mode interface.But it needs a workaround for FU540 Chipset on HiFive unleashed board (RevA00). There is an erratum in FU540 chip that prevents interrupt driven i2c transfers from working, and also the I2C controller's interrupt bit cannot be cleared if