Re: [PATCH 1/3] Input: atmel_mxt_ts - Make wait-after-reset period compatible with all chips From: Iiro Valkonen <hidden> Date: 2011-07-04 12:58:13 On 07/04/2011 01:04 PM, Dmitry Torokhov wrote:quoted @@ -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
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help