Skip to content
Commit 0d5fb5ea authored by Feng Tang's avatar Feng Tang Committed by Ben Dooks
Browse files

i2c-eg20t: correct the driver init order of pch_i2c_probe()



Before registering an adapter to i2c subsystem, we need make sure
driver is ready for incoming i2c xfer, becasue the i2c_add_adapter()
may trigger a i2c device driver's proble function which may start
some real i2c xfer. I met this issue when integrating a TSC2007 i2c
touch screen device with the i2c-eg20t driver.

This patch will call request_irq() and hw init before calling
i2c_add_adapter().

Signed-off-by: default avatarFeng Tang <feng.tang@intel.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 1d5a34fe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment