From: Matthew Garrett Date: Fri, 11 Nov 2011 21:05:54 +0000 (+0100) Subject: The Windows driver .inf disables ASPM on all cciss devices. Do the same. X-Git-Tag: v3.2-rc3~39^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=193733585692301f38d489b8ad8724c2f88349c0;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git The Windows driver .inf disables ASPM on all cciss devices. Do the same. Signed-off-by: Matthew Garrett Cc: iss_storagedev@hp.com Acked-by: Mike Miller Signed-off-by: Jens Axboe --- diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 486f94e..5b69019 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -4319,6 +4320,10 @@ static int __devinit cciss_pci_init(ctlr_info_t *h) dev_warn(&h->pdev->dev, "controller appears to be disabled\n"); return -ENODEV; } + + pci_disable_link_state(h->pdev, PCIE_LINK_STATE_L0S | + PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM); + err = pci_enable_device(h->pdev); if (err) { dev_warn(&h->pdev->dev, "Unable to Enable PCI device\n");