Re: [PATCH] i2c: do not acpi/of match device in i2c_device_probe()

2020-09-11 Thread Sergey Senozhatsky
On (20/08/26 23:49), Sergey Senozhatsky wrote: > i2c, apparently, can match the same device twice - the first > time in ->match bus hook (i2c_device_match()), and the second > one in ->probe (i2c_device_probe()) bus hook. > > To make things more complicated, the second matching does not > do

Re: [PATCH] i2c: do not acpi/of match device in i2c_device_probe()

2020-08-26 Thread Sergey Senozhatsky
On (20/08/26 18:16), Andy Shevchenko wrote: > On Wed, Aug 26, 2020 at 11:49:20PM +0900, Sergey Senozhatsky wrote: > > i2c, apparently, can match the same device twice - the first > > time in ->match bus hook (i2c_device_match()), and the second > > one in ->probe (i2c_device_probe()) bus hook. > >

Re: [PATCH] i2c: do not acpi/of match device in i2c_device_probe()

2020-08-26 Thread Andy Shevchenko
On Wed, Aug 26, 2020 at 11:49:20PM +0900, Sergey Senozhatsky wrote: > i2c, apparently, can match the same device twice - the first > time in ->match bus hook (i2c_device_match()), and the second > one in ->probe (i2c_device_probe()) bus hook. > > To make things more complicated, the second

[PATCH] i2c: do not acpi/of match device in i2c_device_probe()

2020-08-26 Thread Sergey Senozhatsky
i2c, apparently, can match the same device twice - the first time in ->match bus hook (i2c_device_match()), and the second one in ->probe (i2c_device_probe()) bus hook. To make things more complicated, the second matching does not do exactly same checks as the first one. Namely,