Re: [PATCH 1/3] Input: atmel_mxt_ts - Make wait-after-reset period compatible with all chips

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux