]> err.no Git - linux-2.6/commit
[PATCH] i2c: Race fix for i2c-mpc.c
authorSylvain Munaut <tnt@246tNt.com>
Wed, 18 May 2005 17:39:57 +0000 (19:39 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Jun 2005 04:52:01 +0000 (21:52 -0700)
commit7f02d56e54f2a8afaa01974df650ace9dc15d0cd
treedd39ab530763bfb2f34e84c83d469199e53fc8b0
parentd68a861d857c11a017a8f755fa250afaf8b1bcdb
[PATCH] i2c: Race fix for i2c-mpc.c

i2c: Race fix for i2c-mpc.c

The problem was that the clock speed and driver data is
initialized after the i2c adapter was added. This caused
the i2c bus to start working at a wrong speed. (Mostly
noticable on the second bus on mpc5200)

With this patch we've tried to keep the i2c adapter
working perfectly all the time it is included in the system.
Initialize before added, Remove garbage after deleleted.

Submitted-by: Asier Llano Palacios
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-mpc.c