ql4_83xx.c (e8e6e6012d68c4967e8f26fdd39ac95c247d4789) ql4_83xx.c (a083e8bc839db0098301ebc483b83ff241e4fcdb)
1/*
2 * QLogic iSCSI HBA Driver
3 * Copyright (c) 2003-2013 QLogic Corporation
4 *
5 * See LICENSE.qla4xxx for copyright and licensing details.
6 */
7
8#include <linux/ratelimit.h>

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

1659{
1660 ha->isp_ops->idc_lock(ha);
1661 /* Before disabling pause frames, ensure that eport is not in reset */
1662 qla4_83xx_eport_init(ha);
1663 qla4_83xx_dump_pause_control_regs(ha);
1664 __qla4_83xx_disable_pause(ha);
1665 ha->isp_ops->idc_unlock(ha);
1666}
1/*
2 * QLogic iSCSI HBA Driver
3 * Copyright (c) 2003-2013 QLogic Corporation
4 *
5 * See LICENSE.qla4xxx for copyright and licensing details.
6 */
7
8#include <linux/ratelimit.h>

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

1659{
1660 ha->isp_ops->idc_lock(ha);
1661 /* Before disabling pause frames, ensure that eport is not in reset */
1662 qla4_83xx_eport_init(ha);
1663 qla4_83xx_dump_pause_control_regs(ha);
1664 __qla4_83xx_disable_pause(ha);
1665 ha->isp_ops->idc_unlock(ha);
1666}
1667
1668/**
1669 * qla4_83xx_is_detached - Check if we are marked invisible.
1670 * @ha: Pointer to host adapter structure.
1671 **/
1672int qla4_83xx_is_detached(struct scsi_qla_host *ha)
1673{
1674 uint32_t drv_active;
1675
1676 drv_active = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DRV_ACTIVE);
1677
1678 if (test_bit(AF_INIT_DONE, &ha->flags) &&
1679 !(drv_active & (1 << ha->func_num))) {
1680 DEBUG2(ql4_printk(KERN_INFO, ha, "%s: drv_active = 0x%X\n",
1681 __func__, drv_active));
1682 return QLA_SUCCESS;
1683 }
1684
1685 return QLA_ERROR;
1686}