[PATCHv8 03/13] I2C: OMAP: Remove reset at init
Tony Lindgren
tony at atomide.com
Wed Jun 20 06:29:05 EDT 2012
* Shubhrajyoti D <shubhrajyoti at ti.com> [120618 07:35]:
> The reset in the driver at init is not needed anymore as the
> following patch has removed the HWMOD_INIT_NO_RESET flag.
> 6d3c55f [OMAP: hwmod: fix the i2c-reset timeout during bootup]
>
> This patch does the following
> -removes the reset from the probe and implements a omap_i2c_reset
> function to reset.
> - Reset is removed from omap_i2c_init, which was called
> not only during probe, but also after time out and error handling.
> omap_i2c_reset is added in those places to effect the reset.
See the comments regarding driver specific resets in hwmod code.
The way to set this up is to have a shared inline function in
i2c-omap.h that both the driver and hwmod code can use.
Eventually hwmod code will do the reset only in late initcall
if no driver is loaded for the device in question.
Tony
More information about the linux-arm-kernel
mailing list