Re: [PATCH v4] Input: add touchscreen driver for MELFAS MCS-5000 controller
From: Joonyoung Shim <hidden>
Date: 2009-09-16 06:19:45
From: Joonyoung Shim <hidden>
Date: 2009-09-16 06:19:45
On 9/16/2009 3:00 PM, Dmitry Torokhov wrote:
Hi Joonyoung, On Wed, Sep 16, 2009 at 02:45:02PM +0900, Joonyoung Shim wrote:quoted
+ +static irqreturn_t mcs5000_ts_interrupt(int irq, void *dev_id) +{ + struct mcs5000_ts_data *data = dev_id; + struct i2c_client *client = data->client; + u8 buffer[READ_BLOCK_SIZE]; + int err; + int x; + int y; + + disable_irq_nosync(irq); +I don't think we need to disable IRQ in the threaded handler - it should be masked off until we return...
Yor're right. It is unnecessary.
quoted
+ +static irqreturn_t mcs5000_ts_hardirq(int irq, void *dev_id) +{ + return IRQ_WAKE_THREAD; +}This is not needed, just pass NULL to request_threaded_irq().
OK, this is unnecessary too. I will resend the patch after fix. Thanks.