]>
Commit | Line | Data |
---|---|---|
fd453d05 GKH |
1 | From ab5dbebe33e0c353e8545f09c34553ac3351dad6 Mon Sep 17 00:00:00 2001 |
2 | From: Mike Miller <mike.miller@hp.com> | |
3 | Date: Thu, 20 Oct 2011 22:19:17 +0200 | |
4 | Subject: cciss: add small delay when using PCI Power Management to reset for kump | |
5 | ||
6 | From: Mike Miller <mike.miller@hp.com> | |
7 | ||
8 | commit ab5dbebe33e0c353e8545f09c34553ac3351dad6 upstream. | |
9 | ||
10 | The P600 requires a small delay when changing states. Otherwise we may think | |
11 | the board did not reset and we bail. This for kdump only and is particular | |
12 | to the P600. | |
13 | ||
14 | Signed-off-by: Jens Axboe <axboe@kernel.dk> | |
15 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
16 | ||
17 | --- | |
18 | drivers/block/cciss.c | 7 +++++++ | |
19 | 1 file changed, 7 insertions(+) | |
20 | ||
21 | --- a/drivers/block/cciss.c | |
22 | +++ b/drivers/block/cciss.c | |
23 | @@ -4533,6 +4533,13 @@ static int cciss_controller_hard_reset(s | |
24 | pmcsr &= ~PCI_PM_CTRL_STATE_MASK; | |
25 | pmcsr |= PCI_D0; | |
26 | pci_write_config_word(pdev, pos + PCI_PM_CTRL, pmcsr); | |
27 | + | |
28 | + /* | |
29 | + * The P600 requires a small delay when changing states. | |
30 | + * Otherwise we may think the board did not reset and we bail. | |
31 | + * This for kdump only and is particular to the P600. | |
32 | + */ | |
33 | + msleep(500); | |
34 | } | |
35 | return 0; | |
36 | } |