int wlan_manager_request_power_on(void) { __COMMON_FUNC_ENTER__; INFO_LOG(UG_NAME_REQ, "power on\n"); int ret = _power_on(); __COMMON_FUNC_EXIT__; return ret; }
static void power_on_and_start_clock(void) { int s; uint32_t idx; /* Assume clock control mutex is already acquired, and that block is currently off */ BUG_ON(vce_state.clock_enable_count != 0); idx = vce_state.powertrace_idx++ & vce_state.powertrace_idxmask; if (vce_state.powertrace != NULL) vce_state.powertrace[idx] = jiffies; _power_on(); /* TODO: error handling */ _clock_on(); /* TODO: error handling */ s = wire_interrupt_handler(); BUG_ON(s != 0); /* TODO: error handling */ /* We probably ought to map vce registers here, but for now, *we go with the "promise not to access them" approach */ BUG_ON(vce_base == NULL); }