Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965447AbbDVOsU (ORCPT ); Wed, 22 Apr 2015 10:48:20 -0400 Received: from mail-qc0-f169.google.com ([209.85.216.169]:33774 "EHLO mail-qc0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965169AbbDVOsR (ORCPT ); Wed, 22 Apr 2015 10:48:17 -0400 Date: Wed, 22 Apr 2015 10:48:12 -0400 From: Tejun Heo To: Matthew Garrett Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, kristen@linux.intel.com Subject: Re: [PATCH 2/3] libata: Add firmware_default LPM policy Message-ID: <20150422144812.GA10592@htj.duckdns.org> References: <1429370796-5881-1-git-send-email-mjg59@coreos.com> <1429370796-5881-3-git-send-email-mjg59@coreos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1429370796-5881-3-git-send-email-mjg59@coreos.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1156 Lines: 42 Hello, Matthew. On Sat, Apr 18, 2015 at 08:26:35AM -0700, Matthew Garrett wrote: > +firmware_defaults Inherit configuration from the state programmed by > + the firmware during system init. Do we lose anything by naming the policy just "firmware"? > @@ -701,9 +702,9 @@ static int ahci_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, > > if (hpriv->cap & HOST_CAP_ALPM) { > u32 cmd = readl(port_mmio + PORT_CMD); > + cmd &= ~(PORT_CMD_ASP | PORT_CMD_ALPE); Prolly worth nothing in the changelog? > > if (policy == ATA_LPM_MAX_POWER || !(hints & ATA_LPM_HIPM)) { > - cmd &= ~(PORT_CMD_ASP | PORT_CMD_ALPE); > cmd |= PORT_CMD_ICC_ACTIVE; > > writel(cmd, port_mmio + PORT_CMD); ... > @@ -2024,7 +2024,7 @@ retry: > } > } > > - if (id[79] & SATA_DIPM) > + if (id[79] & (1 << SATA_DIPM)) > dev->init_dipm = true; Does this chunk belong here? Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/