| .. | .. |
|---|
| 26 | 26 | pwrcfgcmd = pwrseqcmd[aryidx]; |
|---|
| 27 | 27 | |
|---|
| 28 | 28 | RT_TRACE(_module_hal_init_c_, _drv_info_, |
|---|
| 29 | | - ("rtl88eu_pwrseqcmdparsing: offset(%#x) cut_msk(%#x)" |
|---|
| 29 | + ("%s: offset(%#x) cut_msk(%#x)" |
|---|
| 30 | 30 | " cmd(%#x)" |
|---|
| 31 | 31 | "msk(%#x) value(%#x)\n", |
|---|
| 32 | | - GET_PWR_CFG_OFFSET(pwrcfgcmd), |
|---|
| 33 | | - GET_PWR_CFG_CUT_MASK(pwrcfgcmd), |
|---|
| 34 | | - GET_PWR_CFG_CMD(pwrcfgcmd), |
|---|
| 35 | | - GET_PWR_CFG_MASK(pwrcfgcmd), |
|---|
| 36 | | - GET_PWR_CFG_VALUE(pwrcfgcmd))); |
|---|
| 32 | + __func__, |
|---|
| 33 | + GET_PWR_CFG_OFFSET(pwrcfgcmd), |
|---|
| 34 | + GET_PWR_CFG_CUT_MASK(pwrcfgcmd), |
|---|
| 35 | + GET_PWR_CFG_CMD(pwrcfgcmd), |
|---|
| 36 | + GET_PWR_CFG_MASK(pwrcfgcmd), |
|---|
| 37 | + GET_PWR_CFG_VALUE(pwrcfgcmd))); |
|---|
| 37 | 38 | |
|---|
| 38 | 39 | /* Only Handle the command whose CUT is matched */ |
|---|
| 39 | 40 | if (GET_PWR_CFG_CUT_MASK(pwrcfgcmd) & cut_vers) { |
|---|
| 40 | 41 | switch (GET_PWR_CFG_CMD(pwrcfgcmd)) { |
|---|
| 41 | 42 | case PWR_CMD_READ: |
|---|
| 42 | 43 | RT_TRACE(_module_hal_init_c_, _drv_info_, |
|---|
| 43 | | - ("rtl88eu_pwrseqcmdparsing: PWR_CMD_READ\n")); |
|---|
| 44 | + ("%s: PWR_CMD_READ\n", __func__)); |
|---|
| 44 | 45 | break; |
|---|
| 45 | 46 | case PWR_CMD_WRITE: |
|---|
| 46 | 47 | RT_TRACE(_module_hal_init_c_, _drv_info_, |
|---|
| 47 | | - ("rtl88eu_pwrseqcmdparsing: PWR_CMD_WRITE\n")); |
|---|
| 48 | + ("%s: PWR_CMD_WRITE\n", __func__)); |
|---|
| 48 | 49 | offset = GET_PWR_CFG_OFFSET(pwrcfgcmd); |
|---|
| 49 | 50 | |
|---|
| 50 | 51 | /* Read the value from system register */ |
|---|
| .. | .. |
|---|
| 59 | 60 | break; |
|---|
| 60 | 61 | case PWR_CMD_POLLING: |
|---|
| 61 | 62 | RT_TRACE(_module_hal_init_c_, _drv_info_, |
|---|
| 62 | | - ("rtl88eu_pwrseqcmdparsing: PWR_CMD_POLLING\n")); |
|---|
| 63 | + ("%s: PWR_CMD_POLLING\n", __func__)); |
|---|
| 63 | 64 | |
|---|
| 64 | 65 | poll_bit = false; |
|---|
| 65 | 66 | offset = GET_PWR_CFG_OFFSET(pwrcfgcmd); |
|---|
| .. | .. |
|---|
| 81 | 82 | break; |
|---|
| 82 | 83 | case PWR_CMD_DELAY: |
|---|
| 83 | 84 | RT_TRACE(_module_hal_init_c_, _drv_info_, |
|---|
| 84 | | - ("rtl88eu_pwrseqcmdparsing: PWR_CMD_DELAY\n")); |
|---|
| 85 | + ("%s: PWR_CMD_DELAY\n", __func__)); |
|---|
| 85 | 86 | if (GET_PWR_CFG_VALUE(pwrcfgcmd) == PWRSEQ_DELAY_US) |
|---|
| 86 | 87 | udelay(GET_PWR_CFG_OFFSET(pwrcfgcmd)); |
|---|
| 87 | 88 | else |
|---|
| 88 | | - udelay(GET_PWR_CFG_OFFSET(pwrcfgcmd)*1000); |
|---|
| 89 | + udelay(GET_PWR_CFG_OFFSET(pwrcfgcmd) * 1000); |
|---|
| 89 | 90 | break; |
|---|
| 90 | 91 | case PWR_CMD_END: |
|---|
| 91 | 92 | /* When this command is parsed, end the process */ |
|---|
| 92 | 93 | RT_TRACE(_module_hal_init_c_, _drv_info_, |
|---|
| 93 | | - ("rtl88eu_pwrseqcmdparsing: PWR_CMD_END\n")); |
|---|
| 94 | + ("%s: PWR_CMD_END\n", __func__)); |
|---|
| 94 | 95 | return true; |
|---|
| 95 | 96 | default: |
|---|
| 96 | 97 | RT_TRACE(_module_hal_init_c_, _drv_err_, |
|---|
| 97 | | - ("rtl88eu_pwrseqcmdparsing: Unknown CMD!!\n")); |
|---|
| 98 | + ("%s: Unknown CMD!!\n", __func__)); |
|---|
| 98 | 99 | break; |
|---|
| 99 | 100 | } |
|---|
| 100 | 101 | } |
|---|