"Cousson, Benoit" <b-cous...@ti.com> writes:

[...]

>
> The issue is not really for the mcbsp but for the serial that need to
> handle the 3 different states.
>
>       if (enable) {
>               /**
>                * Errata 2.15: [UART]:Cannot Acknowledge Idle Requests
>                * in Smartidle Mode When Configured for DMA Operations.
>                */
>               if (uart->dma_enabled)
>                       idlemode = HWMOD_IDLEMODE_FORCE;
>               else
>                       idlemode = HWMOD_IDLEMODE_SMART;
>       } else {
>               idlemode = HWMOD_IDLEMODE_NO;
>       }
>
> You do need to explicitly set the 3 modes, hence the following 3 APIs:
> omap_device_force_idle
> omap_device_no_idle
> omap_device_smart_idle
>
> You can potentially add another API to restore the default idle mode:
>
> omap_device_default_idle
>
> That seems much simpler than 3 pairs of APIs.

My $0.02... based on the fact that we already have some IPs needing to
conrol all 3 modes, I think having the 3 functions above is better than
having 3 pairs of request/release functions.

Kevin


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to