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; }
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; }