MLK-21368 typec: tcpci: disable irq when system suspend
authorLi Jun <jun.li@nxp.com>
Thu, 25 Apr 2019 16:10:16 +0000 (21:40 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 08:35:32 +0000 (11:35 +0300)
commit3aaf2019e9e16d4dc9db37e71dd5a8400b73c530
tree1d7cccba06708678741c671c4a7e13e99314de6f
parentd13854710b4298fadf791da545e6f2e9df4a9826
MLK-21368 typec: tcpci: disable irq when system suspend

Disable typec irq when suspend to avoid the threaded irq to access
some resource(e.g. i2c over rpmsg) but those resource is not
available at later phrase, also use IRQ_DISABLE_UNLAZY flag to
mask the irq on irq chip level when irq happens.

Suggested-by: Anson Huang <anson.huang@nxp.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
(cherry picked from commit 61869f787fb0ee2f00d0fe9443cb8b487e16e5ec)
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
(cherry picked from commit 3b1fd5d8ccc9545818ead8bf1dcccb47bfd5c9e6)
drivers/usb/typec/tcpci.c