Re: [PATCH 3/4] drivers: ata: wake port before DMA stop for ALPM
From: Tejun Heo
Date: Sun Jan 10 2016 - 12:30:05 EST
Hello, Danesh.
On Fri, Jan 08, 2016 at 03:20:44PM -0800, Danesh Petigara wrote:
> ahci_set_lpm in it's current form cannot be used here as it also
> modifies the ALPE/ASP bits. The idea is to wake the link before DMA stop
> without changing the ALPM bits so the link can return to it's configured
> low power state when it's idle.
>
> We could however update that function by introducing a new hints flag
> that allows us to skip unneeded logic for this scenario. ahci_set_lpm
> can then be called from ahci_stop_engine.
Yeah, please either update the function or factor the necessary part
out.
Thanks.
--
tejun