]> git.baikalelectronics.ru Git - kernel.git/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)
commit04e03c26d91d03062fbcf8112a93377c429ab419
treedd39ab530763bfb2f34e84c83d469199e53fc8b0
parent7bf1360c02a552535f6b91d8723427a2842901b4
[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