Thread (1 message) 1 message, 1 author, 2011-05-25
DORMANTno replies

[PATCH 07/15] OMAP: GPIO: handle save/restore ctx in GPIO driver

From: Kevin Hilman <hidden>
Date: 2011-05-25 22:36:30
Also in: linux-omap

Kevin Hilman [off-list ref] writes:

[...]
quoted
@@ -1394,11 +1409,17 @@ void omap2_gpio_resume_after_idle(void)
 		for (j = 0; j < hweight_long(bank->dbck_enable_mask); j++)
 			clk_enable(bank->dbck);
 
-		if (!workaround_enabled)
+		pdev = to_platform_device(bank->dev);
+		ctx_lost_cnt_after = omap_device_get_context_loss_count(pdev);
+
+		if (ctx_lost_cnt_after == bank->ctx_lost_cnt_before)
 			continue;
 
+		if (!workaround_enabled)
+			goto restore_gpio_ctx;
Now that these functions are all bank-specific, this
'workaround_enabled' flag should be made per-bank.
Oops, ignore this comment... I see it's done in the next patch.

Kevin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help