input: ft5x06_ts: fix the Focaltech CTP current leakage issue

Focaltech touch controller does not go to sleep in suspend because
the pinctrl operation inadvertently resets the touch controller.
Remove the pinctrl operation in suspend and resume callback to
prevent this spurious reset.

This patch is propagated from msm-3.18 kernel.
'commit 7e2ea02b16de ("input: ft5x06_ts: fix the Focaltech CTP
current leakage issue")'

CRs-Fixed: 1046961
Change-Id: Ifa02c0287195d7ce55fb2d8ac49ec1c8ae5baec9
Signed-off-by: Mao Li <maol@codeaurora.org>
This commit is contained in:
Mao Li 2014-06-10 19:54:13 +08:00 committed by Gerrit - the friendly Code Review server
parent 888157c601
commit cbb13b31eb

View file

@ -593,11 +593,6 @@ static int ft5x06_ts_suspend(struct device *dev)
dev_info(dev, "Already in suspend state\n");
return 0;
}
if (data->ts_pinctrl) {
err = ft5x06_ts_pinctrl_select(data, false);
if (err < 0)
dev_err(dev, "Cannot get idle pinctrl state\n");
}
disable_irq(data->client->irq);
@ -666,11 +661,6 @@ static int ft5x06_ts_resume(struct device *dev)
return err;
}
}
if (data->ts_pinctrl) {
err = ft5x06_ts_pinctrl_select(data, true);
if (err < 0)
dev_err(dev, "Cannot get default pinctrl state\n");
}
if (gpio_is_valid(data->pdata->reset_gpio)) {
gpio_set_value_cansleep(data->pdata->reset_gpio, 0);