master/voe_handler.c
changeset 1995 7d748d9cf9e8
parent 1931 831f2d34664c
child 2045 ff2a13a4603c
child 2268 5e1d3c9430e0
equal deleted inserted replaced
1994:b369f3f92eb8 1995:7d748d9cf9e8
   265         if (!datagram->working_counter) {
   265         if (!datagram->working_counter) {
   266             unsigned long diff_ms =
   266             unsigned long diff_ms =
   267                 (jiffies - voe->jiffies_start) * 1000 / HZ;
   267                 (jiffies - voe->jiffies_start) * 1000 / HZ;
   268             if (diff_ms < EC_VOE_RESPONSE_TIMEOUT) {
   268             if (diff_ms < EC_VOE_RESPONSE_TIMEOUT) {
   269                 EC_SLAVE_DBG(slave, 1, "Slave did not respond to"
   269                 EC_SLAVE_DBG(slave, 1, "Slave did not respond to"
   270                         " VoE write request. Retrying after %u ms...\n",
   270                         " VoE write request. Retrying after %lu ms...\n",
   271                         (u32) diff_ms);
   271                         diff_ms);
   272                 // no response; send request datagram again
   272                 // no response; send request datagram again
   273                 return;
   273                 return;
   274             }
   274             }
   275         }
   275         }
   276         voe->state = ec_voe_handler_state_error;
   276         voe->state = ec_voe_handler_state_error;