On 07/04/2011 01:04 PM, Dmitry Torokhov wrote: >> >> @@ -828,6 +828,8 @@ static int mxt_initialize(struct mxt_data *data) >> mxt_write_object(data, MXT_GEN_COMMAND, >> MXT_COMMAND_RESET, 1); >> msleep(MXT_RESET_TIME); >> + while (data->pdata->read_chg()) >> + msleep(2); > > I would prefer if we did not wait indefinitely but timed out after > certain number of retries. > Thanks, that does make sense. I'll send a new version. BR, -- Iiro -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html