From mboxrd@z Thu Jan 1 00:00:00 1970 From: santosh.shilimkar@ti.com (Santosh) Date: Tue, 23 Aug 2011 18:11:10 +0530 Subject: [PATCH v5 02/22] gpio/omap: use flag to identify wakeup domain In-Reply-To: <1312455893-14922-3-git-send-email-tarun.kanti@ti.com> References: <1312455893-14922-1-git-send-email-tarun.kanti@ti.com> <1312455893-14922-3-git-send-email-tarun.kanti@ti.com> Message-ID: <4E539FE6.2090007@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thursday 04 August 2011 04:34 PM, Tarun Kanti DebBarma wrote: > From: Charulatha V > > In omap3, save/restore context is implemented for GPIO banks 2-6 as GPIO bank1 > is in wakeup domain. Instead of identifying bank's power domain by bank id, > use 'loses_context' flag which is filled by pwrdm_can_ever_lose_context() > during dev_init. > > For getting the powerdomain pointer, omap_hwmod_get_pwrdm() is used. > omap_device_get_pwrdm() could not be used as the pwrdm information needs to be > filled in pdata, whereas omap_device_get_pwrdm() could be used only after > omap_device_build() call. > > Signed-off-by: Charulatha V > --- > arch/arm/mach-omap2/gpio.c | 6 ++++++ > arch/arm/plat-omap/include/plat/gpio.h | 1 + > drivers/gpio/gpio-omap.c | 13 ++++++------- > 3 files changed, 13 insertions(+), 7 deletions(-) > Nice change. Reviewed-by: Santosh Shilimkar