phy: rockchip-inno-usb2: disable id irq in pm suspend
authorMeng Dongyang <daniel.meng@rock-chips.com>
Tue, 13 Jun 2017 02:05:46 +0000 (10:05 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 20 Jun 2017 07:23:54 +0000 (15:23 +0800)
commitc29029bc491e543f48cd3855296fe57c67d644f0
tree19642fc0e00f804021b7628efa25fd1e423abd77
parent04f59261376a9b95b69e2a92bb5ec4f9412d0c9c
phy: rockchip-inno-usb2: disable id irq in pm suspend

The otg id voltage is provided from usb2 phy power. On some
rockchip platforms (e.g. rk3399), the usb2 phy power will be
turned off when enter pm suspend, this will trigger id fall
interrupt. But current code enable the ID interrupt consistently,
it may result in the mistake of ID changing operation even if
the state of ID pin is not changed. So disable ID irq when
suspend and enable when resume.

Change-Id: Icac35f13861fd639e4b422b31182a68add73836d
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c