DIAG_MAX_RETRIES
for (retries = 0; retries < DIAG_MAX_RETRIES; retries++) {
device->default_retries = DIAG_MAX_RETRIES;