Re: [PATCH v2] i2c: bcm2835: Model Divider in CCF

Stefan Wahren
2019-05-28T07:52:21Z

Hi Annaliese,

thank you for mention that we have multiple I2C interfaces.

On 08.05.19 09:12, Annaliese McDermond wrote:
> +
> +static struct clk *bcm2835_i2c_register_div(struct device *dev,
> + const char *mclk_name,
> + struct bcm2835_i2c_dev *i2c_dev)
> +{
> + struct clk_init_data init;
> + struct clk_bcm2835_i2c *priv;
> + const char *devname = dev_name(dev);
> +
> + init.ops = &clk_bcm2835_i2c_ops;
> + init.name = "bcm2835-i2c";

Does this work intentionally in case i2c-0 and i2c-1 are used at the
same time?

Please also check the output of /sys/kernel/debug/clk/clk_summary

Regards
Stefan