hpsa.c (29ea35969b92a4be122a58c4aceea8c5e2c388d9) hpsa.c (fba63097b8614a4a158226c02eec0318f41cd24f)
1/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2000, 2009 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 *

--- 3424 unchanged lines hidden (view full) ---

3433 */
3434 misc_fw_support = readl(&cfgtable->misc_fw_support);
3435 use_doorbell = misc_fw_support & MISC_FW_DOORBELL_RESET2;
3436 if (use_doorbell) {
3437 use_doorbell = DOORBELL_CTLR_RESET2;
3438 } else {
3439 use_doorbell = misc_fw_support & MISC_FW_DOORBELL_RESET;
3440 if (use_doorbell) {
1/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2000, 2009 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 *

--- 3424 unchanged lines hidden (view full) ---

3433 */
3434 misc_fw_support = readl(&cfgtable->misc_fw_support);
3435 use_doorbell = misc_fw_support & MISC_FW_DOORBELL_RESET2;
3436 if (use_doorbell) {
3437 use_doorbell = DOORBELL_CTLR_RESET2;
3438 } else {
3439 use_doorbell = misc_fw_support & MISC_FW_DOORBELL_RESET;
3440 if (use_doorbell) {
3441 dev_warn(&pdev->dev, "Controller claims that "
3442 "'Bit 2 doorbell reset' is "
3443 "supported, but not 'bit 5 doorbell reset'. "
3444 "Firmware update is recommended.\n");
3441 dev_warn(&pdev->dev, "Soft reset not supported. "
3442 "Firmware update is required.\n");
3445 rc = -ENOTSUPP; /* try soft reset */
3446 goto unmap_cfgtable;
3447 }
3448 }
3449
3450 rc = hpsa_controller_hard_reset(pdev, vaddr, use_doorbell);
3451 if (rc)
3452 goto unmap_cfgtable;

--- 1051 unchanged lines hidden ---
3443 rc = -ENOTSUPP; /* try soft reset */
3444 goto unmap_cfgtable;
3445 }
3446 }
3447
3448 rc = hpsa_controller_hard_reset(pdev, vaddr, use_doorbell);
3449 if (rc)
3450 goto unmap_cfgtable;

--- 1051 unchanged lines hidden ---