Ejemplo n.º 1
0
int iwl_grab_nic_access(struct iwl_bus *bus)
{
    int ret = iwl_grab_nic_access_silent(bus);
    if (ret) {
        u32 val = iwl_read32(bus, CSR_GP_CNTRL);
        IWL_ERR(bus,
                "MAC is in deep sleep!. CSR_GP_CNTRL = 0x%08X\n", val);
    }

    return ret;
}
Ejemplo n.º 2
0
bool iwl_grab_nic_access(struct iwl_trans *trans)
{
	int ret = iwl_grab_nic_access_silent(trans);
	if (unlikely(ret)) {
		u32 val = iwl_read32(trans, CSR_GP_CNTRL);
		WARN_ONCE(1, "Timeout waiting for hardware access "
			     "(CSR_GP_CNTRL 0x%08x)\n", val);
		return false;
	}

	return true;
}