提交 e3a36b20 编写于 作者: F Felipe Balbi 提交者: Wolfram Sang

i2c: omap: remove unnecessary pm_runtime_suspended check

before starting any messages we call pm_runtime_get_sync()
which will make sure that by the time we program a transfer
and our IRQ handler gets called, we're not suspended
anymore.
Signed-off-by: NFelipe Balbi <balbi@ti.com>
Signed-off-by: NShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
上级 3b2f8f82
...@@ -883,9 +883,6 @@ omap_i2c_isr_thread(int this_irq, void *dev_id) ...@@ -883,9 +883,6 @@ omap_i2c_isr_thread(int this_irq, void *dev_id)
u16 stat; u16 stat;
int err = 0, count = 0; int err = 0, count = 0;
if (pm_runtime_suspended(dev->dev))
return IRQ_NONE;
spin_lock_irqsave(&dev->lock, flags); spin_lock_irqsave(&dev->lock, flags);
do { do {
bits = omap_i2c_read_reg(dev, OMAP_I2C_IE_REG); bits = omap_i2c_read_reg(dev, OMAP_I2C_IE_REG);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册