Skip to content

Commit

Permalink
Input: atmel_mxt_ts - make CHG line high after enabling interrupts
Browse files Browse the repository at this point in the history
Make the CHG line (interrupt line) go high after the interrupts have been
enabled to make sure we don't miss the falling edge.

Signed-off-by: Iiro Valkonen <iiro.valkonen@atmel.com>
Acked-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Iiro Valkonen authored and Dmitry Torokhov committed Apr 13, 2011
1 parent 910d805 commit 08960a0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions drivers/input/touchscreen/atmel_mxt_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,10 +814,6 @@ static int mxt_initialize(struct mxt_data *data)
if (error)
return error;

error = mxt_make_highchg(data);
if (error)
return error;

mxt_handle_pdata(data);

/* Backup to memory */
Expand Down Expand Up @@ -1005,6 +1001,10 @@ static ssize_t mxt_update_fw_store(struct device *dev,

enable_irq(data->irq);

error = mxt_make_highchg(data);
if (error)
return error;

return count;
}

Expand Down Expand Up @@ -1115,6 +1115,10 @@ static int __devinit mxt_probe(struct i2c_client *client,
goto err_free_object;
}

error = mxt_make_highchg(data);
if (error)
goto err_free_irq;

error = input_register_device(input_dev);
if (error)
goto err_free_irq;
Expand Down

0 comments on commit 08960a0

Please sign in to comment.