From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH] libata: Add ALPM power state accounting to the AHCI driver Date: Mon, 16 Nov 2009 23:59:39 +0900 Message-ID: <4B0168DB.50109@kernel.org> References: <20091113192429.4dfc9c39@infradead.org> <4AFFB65F.3020201@kernel.org> <4AFFBB75.7050601@pobox.com> <20091115094630.1785b5ca@infradead.org> <4B004328.8060807@kernel.org> <20091115102334.1396eea6@infradead.org> <4B0047CB.5080509@kernel.org> <20091115103313.4691924d@infradead.org> <4B00B034.5010908@kernel.org> <20091115180058.55caa36f@infradead.org> <4B00B5D0.4010707@kernel.org> <20091115215531.23edcf5e@infradead.org> <4B00EDAC.4080904@kernel.org> <4B0109BC.1020204@pobox.com> <20091116064308.741b9a5b@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from hera.kernel.org ([140.211.167.34]:37301 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751144AbZKPPAL (ORCPT ); Mon, 16 Nov 2009 10:00:11 -0500 In-Reply-To: <20091116064308.741b9a5b@infradead.org> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Arjan van de Ven Cc: Jeff Garzik , linux-ide@vger.kernel.org, akpm@linux-foundation.org Arjan van de Ven wrote: > is there a hardware way to ask for the link status via a link level > thing? I thought the sata_scr_read() was by definition a host thing sata_scr_read() will do the right thing given the link parameter although it needs to be called from EH context for PMP links. For now, just making the functions take @link param and passing it around should do. Thanks. -- tejun