From: shubhrajyoti@ti.com (Shubhrajyoti) Date: Thu, 21 Jun 2012 12:33:44 +0530 Subject: [PATCHv8 03/13] I2C: OMAP: Remove reset at init In-Reply-To: <20120620102905.GC12766@atomide.com> References: <1340029828-20751-1-git-send-email-shubhrajyoti@ti.com> <1340029828-20751-4-git-send-email-shubhrajyoti@ti.com> <20120620102905.GC12766@atomide.com> Message-ID: <4FE2C750.3020803@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wednesday 20 June 2012 03:59 PM, Tony Lindgren wrote: > See the comments regarding driver specific resets in hwmod code. you mean omap_hwmod.c > > 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. hwmod reset function uses oh (omap_hwmod). How could the driver also pass oh ? Could we keep a local copy in driver data? > Eventually hwmod code will do the reset only in late initcall > if no driver is loaded for the device in question.