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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Hilman <khilman@xxxxxx> writes:

[...]
>> @@ -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
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux