]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: designware: Retrieve quirk flags as early as possible
authorBaikal Electronics <support@baikalelectronics.ru>
Thu, 28 May 2020 09:33:19 +0000 (12:33 +0300)
committerWolfram Sang <wsa@kernel.org>
Sat, 30 May 2020 21:03:06 +0000 (23:03 +0200)
commit1e39417dafc20c8adcb3e05f0ceac933971563ba
tree1f475ad6ac77969fa72c43c19aa3cc1f4bcdf485
parent4d691e61a8faefc76c879f36b667b060f428f38a
i2c: designware: Retrieve quirk flags as early as possible

Some platforms might need to activate the driver quirks at a very early
probe stage. For instance, Baikal-T1 System I2C doesn't need to map the
registers space as ones belong to the system controller. Instead it will
request the syscon regmap from the parental DT node. In order to be able
to do so let's retrieve the model flags right after the DW I2C private
data is created. While at it replace the or-assignment with just
assignment operator since or-ing is redundant at this stage.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-designware-platdrv.c