From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757313AbcAJRaA (ORCPT ); Sun, 10 Jan 2016 12:30:00 -0500 Received: from mail-yk0-f193.google.com ([209.85.160.193]:33717 "EHLO mail-yk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757292AbcAJR3b (ORCPT ); Sun, 10 Jan 2016 12:29:31 -0500 Date: Sun, 10 Jan 2016 12:29:29 -0500 From: Tejun Heo To: Danesh Petigara Cc: Florian Fainelli , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, computersforpeace@gmail.com, gregory.0xf0@gmail.com Subject: Re: [PATCH 3/4] drivers: ata: wake port before DMA stop for ALPM Message-ID: <20160110172929.GK3660@htj.duckdns.org> References: <1452211413-1350-1-git-send-email-f.fainelli@gmail.com> <1452211413-1350-4-git-send-email-f.fainelli@gmail.com> <20160108163610.GS1898@mtj.duckdns.org> <5690444C.2090200@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5690444C.2090200@broadcom.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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