Gao Pan
5212f9ae51
i2c: imx: init bus recovery info before adding i2c adapter
...
During driver probe, i2c_imx_init_recovery_info() must come before
i2c_add_numbered_adapter(), because the get/set_scl() functions
are assigned in i2c_register_adapter() under the conditon that bus
recover_info are initialized. Otherwise, get/set_scl() function
pointers never get assigned.
In such case, when i2c_generic_gpio_recovery() is used for bus recovery,
there will be kernel crash because bri->set_scl is NULL.
The solution to this bug is moving i2c_imx_init_recovery_info() before
i2c_register_adapter().
Signed-off-by: Gao Pan <b54642@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
2015-12-09 11:15:41 +01:00
..
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2015-10-26 15:44:59 +01:00
2015-10-23 23:31:11 +02:00
2015-06-03 00:40:16 +09:00
2015-06-23 19:55:19 +02:00
2015-06-03 03:04:53 +09:00
2014-10-20 16:20:37 +02:00
2015-07-31 13:32:31 +02:00
2015-06-10 22:02:57 +09:00
2015-08-10 08:37:38 +02:00
2014-10-20 16:20:37 +02:00
2015-03-13 15:10:54 +01:00
2015-06-15 13:18:19 +01:00
2015-11-30 15:55:07 +01:00
2015-03-07 01:08:26 +01:00
2015-10-15 14:09:37 +02:00
2015-10-15 14:09:37 +02:00
2015-10-25 15:49:46 +01:00
2015-11-10 11:58:25 -08:00
2015-04-23 19:35:32 +02:00
2015-03-27 16:56:21 +01:00
2014-10-20 16:20:37 +02:00
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2015-08-10 08:37:29 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:37 +02:00
2014-10-20 16:20:37 +02:00
2015-05-12 18:09:33 +02:00
2014-11-07 18:35:33 +01:00
2015-11-20 16:22:21 +01:00
2015-10-20 18:14:01 +02:00
2015-10-10 08:40:11 +01:00
2015-12-09 11:15:41 +01:00
2014-10-20 16:20:37 +02:00
2014-11-07 18:35:33 +01:00
2014-12-14 16:10:09 -08:00
2015-11-10 11:58:25 -08:00
2015-07-09 22:17:31 +02:00
2014-10-20 16:20:37 +02:00
2015-08-24 14:05:18 +02:00
2015-10-20 18:14:36 +02:00
2015-03-27 16:53:41 +01:00
2015-10-23 21:58:32 +02:00
2015-11-30 15:54:22 +01:00
2015-05-12 18:27:48 +02:00
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2015-03-15 10:51:13 +01:00
2015-10-20 17:47:45 +02:00
2015-06-17 14:50:03 +02:00
2015-08-10 08:37:33 +02:00
2015-03-14 12:08:21 +01:00
2014-12-14 16:10:09 -08:00
2015-08-10 08:37:28 +02:00
2015-08-10 08:37:34 +02:00
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2015-04-23 19:35:30 +02:00
2015-06-16 08:58:06 +02:00
2015-03-13 15:10:58 +01:00
2015-11-10 11:58:25 -08:00
2015-03-13 15:10:57 +01:00
2014-10-20 16:20:37 +02:00
2015-10-25 09:36:43 +01:00
2015-03-13 15:10:53 +01:00
2015-11-10 11:58:25 -08:00
2014-10-20 16:20:37 +02:00
2015-11-30 14:27:41 +01:00
2015-10-15 14:26:07 +02:00
2014-10-20 16:20:37 +02:00
2015-10-20 18:10:20 +02:00
2014-11-07 18:35:33 +01:00
2014-12-14 16:10:09 -08:00
2015-10-23 22:48:45 +02:00
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2015-12-01 02:01:27 +01:00
2015-10-20 18:15:39 +02:00
2014-10-20 16:20:37 +02:00
2014-11-07 18:35:33 +01:00
2015-10-20 17:38:19 +02:00
2015-10-23 21:55:46 +02:00
2015-10-23 21:55:45 +02:00
2014-10-20 16:20:37 +02:00
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2015-08-10 08:37:38 +02:00
2015-03-15 10:29:53 +01:00
2015-08-24 14:23:31 +02:00
2015-11-20 16:15:35 +01:00
2015-04-10 18:59:49 +02:00
2014-10-20 16:20:37 +02:00
2015-11-20 16:22:21 +01:00
2015-10-23 21:55:46 +02:00
2014-12-14 16:10:09 -08:00