From mboxrd@z Thu Jan 1 00:00:00 1970 From: philby john Subject: [PATCH] sil3531: has no PM capability, remove support. Date: Mon, 09 Apr 2012 19:44:09 +0530 Message-ID: <1333980849.11209.5.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bk0-f46.google.com ([209.85.214.46]:40563 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755403Ab2DIONT (ORCPT ); Mon, 9 Apr 2012 10:13:19 -0400 Received: by bkcik5 with SMTP id ik5so3407809bkc.19 for ; Mon, 09 Apr 2012 07:13:18 -0700 (PDT) Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: linux-ide@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jeff Garzik , htejun@gmail.com From: Philby John Date: Mon, 9 Apr 2012 19:09:51 +0530 Subject: [PATCH] sil3531: has no PM capability, remove support. SATA sil3531 does not support Power Management Capability and as per the manual Bit [31:27] is hardwired to 00h. Otherwise, when the device goes into suspend/resume the Power Management Control + Status registers are accessed and the arch specific readl()/__raw_readl() calls block indefinitely. This patch sets the PCI_DEV_FLAGS_NO_D3 flag by which the if condition in pci_set_power_state() evaluates to true and pci_raw_set_power_state() functions are not executed. Signed-off-by: Philby John Signed-off-by: Johnny Chiang --- drivers/pci/pci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 8156744..129120d 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1863,6 +1863,7 @@ void pci_pm_init(struct pci_dev *dev) pci_pme_active(dev, false); } else { dev->pme_support = 0; + dev->dev_flags |= PCI_DEV_FLAGS_NO_D3; } } -- 1.6.3.3.340.g77d18