OSDN Git Service

i2c: i2c-cadence: Initialize configuration before probing devices
authorMike Looijmans <mike.looijmans@topic.nl>
Mon, 16 Jan 2017 14:49:38 +0000 (15:49 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 25 Jan 2017 21:07:40 +0000 (22:07 +0100)
commit0e1929dedea36781e25902118c93edd8d8f09af1
tree5e353f42c88f892c20528b8a4c28856919594944
parent7a308bb3016f57e5be11a677d15b821536419d36
i2c: i2c-cadence: Initialize configuration before probing devices

The cadence I2C driver calls cdns_i2c_writereg(..) to setup a workaround
in the controller, but did so after calling i2c_add_adapter() which starts
probing devices on the bus. Change the order so that the configuration is
completely finished before using the adapter.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-cadence.c