Re: [PATCH v8 07/11] i2c: cgbc: Add support for fixed frequency buses

From: Andi Shyti

Date: Wed Dec 02 2026 - 09:05:54 EST


Hi Thomas,

On Mon, Nov 30, 2026 at 03:28:15PM +0100, Thomas Richard (congatec GmbH) wrote:
> Some I2C buses run at a fixed frequency. Add a fixed_freq flag to struct
> cgbc_i2c_platform_data to identify them. But the frequency is still needed
> to compute read_maxtime_us, so split cgbc_i2c_set_frequency() into two
> functions:
> - cgbc_i2c_set_frequency(): sets the bus frequency (skipped for
> fixed-frequency buses).
> - cgbc_i2c_get_frequency(): reads the bus frequency and computes
> read_maxtime_us.
>
> Signed-off-by: Thomas Richard (congatec GmbH) <thomas.richard@xxxxxxxxxxx>

Reviewed-by: Andi Shyti <andi.shyti@xxxxxxxxxx>

Thanks,
Andi