Re: [PATCH v2 4/9] i2c: designware: Uniform initialization flow for polling mode

Andy Shevchenko
2024-02-06T15:13:55Z

On Tue, Feb 06, 2024 at 04:51:53PM +0200, Jarkko Nikula wrote:
> Currently initialization flow in i2c_dw_probe_master() skips a few steps
> and has code duplication for polling mode implementation.
>
> Simplify this by adding a new ACCESS_POLLING flag that is set for those
> two platforms that currently use polling mode and use it to skip
> interrupt handler setup.

...

> #define ACCESS_INTR_MASK BIT(0)
> #define ACCESS_NO_IRQ_SUSPEND BIT(1)
> +#define ACCESS_POLLING BIT(3)

Bit 2 is free now, no?

--
With Best Regards,
Andy Shevchenko