hpsa.c (2946e82bdd76568dd6a3ebb49fe977ac222c0a19) | hpsa.c (39c53f55a950027fe8e94d56541e21f1a921f7ce) |
---|---|
1/* 2 * Disk Array driver for HP Smart Array SAS controllers 3 * Copyright 2000, 2014 Hewlett-Packard Development Company, L.P. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * --- 7424 unchanged lines hidden (view full) --- 7433 hpsa_free_irqs(h); 7434 return -ENODEV; 7435 } 7436 return 0; 7437} 7438 7439static int hpsa_kdump_soft_reset(struct ctlr_info *h) 7440{ | 1/* 2 * Disk Array driver for HP Smart Array SAS controllers 3 * Copyright 2000, 2014 Hewlett-Packard Development Company, L.P. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * --- 7424 unchanged lines hidden (view full) --- 7433 hpsa_free_irqs(h); 7434 return -ENODEV; 7435 } 7436 return 0; 7437} 7438 7439static int hpsa_kdump_soft_reset(struct ctlr_info *h) 7440{ |
7441 int rc; |
|
7441 hpsa_send_host_reset(h, RAID_CTLR_LUNID, HPSA_RESET_TYPE_CONTROLLER); 7442 7443 dev_info(&h->pdev->dev, "Waiting for board to soft reset.\n"); | 7442 hpsa_send_host_reset(h, RAID_CTLR_LUNID, HPSA_RESET_TYPE_CONTROLLER); 7443 7444 dev_info(&h->pdev->dev, "Waiting for board to soft reset.\n"); |
7444 if (hpsa_wait_for_board_state(h->pdev, h->vaddr, BOARD_NOT_READY)) { | 7445 rc = hpsa_wait_for_board_state(h->pdev, h->vaddr, BOARD_NOT_READY); 7446 if (rc) { |
7445 dev_warn(&h->pdev->dev, "Soft reset had no effect.\n"); | 7447 dev_warn(&h->pdev->dev, "Soft reset had no effect.\n"); |
7446 return -1; | 7448 return rc; |
7447 } 7448 7449 dev_info(&h->pdev->dev, "Board reset, awaiting READY status.\n"); | 7449 } 7450 7451 dev_info(&h->pdev->dev, "Board reset, awaiting READY status.\n"); |
7450 if (hpsa_wait_for_board_state(h->pdev, h->vaddr, BOARD_READY)) { | 7452 rc = hpsa_wait_for_board_state(h->pdev, h->vaddr, BOARD_READY); 7453 if (rc) { |
7451 dev_warn(&h->pdev->dev, "Board failed to become ready " 7452 "after soft reset.\n"); | 7454 dev_warn(&h->pdev->dev, "Board failed to become ready " 7455 "after soft reset.\n"); |
7453 return -1; | 7456 return rc; |
7454 } 7455 7456 return 0; 7457} 7458 7459static void hpsa_free_reply_queues(struct ctlr_info *h) 7460{ 7461 int i; --- 1179 unchanged lines hidden --- | 7457 } 7458 7459 return 0; 7460} 7461 7462static void hpsa_free_reply_queues(struct ctlr_info *h) 7463{ 7464 int i; --- 1179 unchanged lines hidden --- |