Re: [PATCH v1] Input: elants_i2c: Add Elan touchscreen support

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

 



On Thu, 2014-11-20 at 09:47 -0800, Dmitry Torokhov wrote:
> Hi Oliver,
> 
> On Thu, Nov 20, 2014 at 11:31:30AM +0100, Oliver Neukum wrote:
> > > +static int elants_i2c_initialize(struct elants_data *ts)
> > > +{
> > > +       struct i2c_client *client = ts->client;
> > > +       int error, retry_cnt;
> > > +       const u8 hello_packet[] = { 0x55, 0x55, 0x55, 0x55 };
> > > +       const u8 recov_packet[] = { 0x55, 0x55, 0x80, 0x80 };
> > > +       u8 buf[HEADER_SIZE];
> > > +
> > 
> > Strictly speaking you should disable preemption here.
> 
> Umm, why?

You said the upper bound matters. So you need to protect yourself
against losing too much time by preemption.

	Regards
		Oliver


--
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