- Timestamp:
- 07/29/11 22:13:45 (10 months ago)
- File:
-
- 1 edited
-
trunk/it85spi.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/it85spi.c
r1397 r1401 115 115 int ret, tries; 116 116 117 msg_pdbg("%s():%d was called ...\n", __ FUNCTION__, __LINE__);117 msg_pdbg("%s():%d was called ...\n", __func__, __LINE__); 118 118 if (it85xx_scratch_rom_reenter > 0) 119 119 return; … … 132 132 if (wait_for(KB_IBF, 0, MAX_TIMEOUT, 133 133 "* timeout at waiting for IBF==0.\n", 134 __ FUNCTION__, __LINE__))134 __func__, __LINE__)) 135 135 continue; 136 136 … … 141 141 if (wait_for(KB_IBF, 0, MAX_TIMEOUT, 142 142 "* timeout at taking command.\n", 143 __ FUNCTION__, __LINE__))143 __func__, __LINE__)) 144 144 continue; 145 145 … … 149 149 if (wait_for(KB_OBF, KB_OBF, MAX_TIMEOUT, NULL, NULL, 0)) 150 150 msg_pdbg("%s():%d * timeout at waiting for OBF.\n", 151 __ FUNCTION__, __LINE__);151 __func__, __LINE__); 152 152 if ((ret = INB(LEGACY_KBC_PORT_DATA)) == 0xFA) { 153 153 break; 154 154 } else { 155 155 msg_perr("%s():%d * not run on SRAM ret=%d\n", 156 __ FUNCTION__, __LINE__, ret);156 __func__, __LINE__, ret); 157 157 continue; 158 158 } … … 162 162 /* EC already runs on SRAM */ 163 163 it85xx_scratch_rom_reenter++; 164 msg_pdbg("%s():%d * SUCCESS.\n", __ FUNCTION__, __LINE__);164 msg_pdbg("%s():%d * SUCCESS.\n", __func__, __LINE__); 165 165 } else { 166 msg_perr("%s():%d * Max try reached.\n", 167 __FUNCTION__, __LINE__); 166 msg_perr("%s():%d * Max try reached.\n", __func__, __LINE__); 168 167 } 169 168 } … … 176 175 int tries; 177 176 178 msg_pdbg("%s():%d was called ...\n", __ FUNCTION__, __LINE__);177 msg_pdbg("%s():%d was called ...\n", __func__, __LINE__); 179 178 if (it85xx_scratch_rom_reenter <= 0) 180 179 return; … … 184 183 if (wait_for(KB_IBF, 0, MAX_TIMEOUT, 185 184 "* timeout at waiting for IBF==0.\n", 186 __ FUNCTION__, __LINE__))185 __func__, __LINE__)) 187 186 continue; 188 187 … … 193 192 if (wait_for(KB_IBF, 0, MAX_TIMEOUT, 194 193 "* timeout at taking command.\n", 195 __ FUNCTION__, __LINE__)) {194 __func__, __LINE__)) { 196 195 /* We cannot ensure if EC has exited update mode. 197 196 * If EC is in normal mode already, a further 0xFE … … 206 205 if (tries < MAX_TRY) { 207 206 it85xx_scratch_rom_reenter = 0; 208 msg_pdbg("%s():%d * SUCCESS.\n", __ FUNCTION__, __LINE__);207 msg_pdbg("%s():%d * SUCCESS.\n", __func__, __LINE__); 209 208 } else { 210 msg_perr("%s():%d * Max try reached.\n", 211 __FUNCTION__, __LINE__); 209 msg_perr("%s():%d * Max try reached.\n", __func__, __LINE__); 212 210 } 213 211
Note: See TracChangeset
for help on using the changeset viewer.
