Re: [PATCH v6 1/5] i2c: i2c-core-of: Fix corner case of finding adapter by node

2021-05-17 Thread Doug Anderson
Hi, On Mon, May 3, 2021 at 2:59 PM Douglas Anderson wrote: > > The of_find_i2c_adapter_by_node() could end up failing to find an > adapter in certain conditions. Specifically it's possible that > of_dev_or_parent_node_match() could end up finding an I2C client in > the list and cause bus_find_dev

[PATCH v6 1/5] i2c: i2c-core-of: Fix corner case of finding adapter by node

2021-05-03 Thread Douglas Anderson
The of_find_i2c_adapter_by_node() could end up failing to find an adapter in certain conditions. Specifically it's possible that of_dev_or_parent_node_match() could end up finding an I2C client in the list and cause bus_find_device() to stop early even though an I2C adapter was present later in the