mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-01 19:06:16 +02:00
[xburst] n516-lpc: Fix irq strom during resume
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20127 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4eee092f76
commit
c44117cefd
@ -211,7 +211,7 @@ static irqreturn_t n516_lpc_irq_thread(int irq, void *devid)
|
|||||||
struct i2c_client *client = chip->i2c_client;
|
struct i2c_client *client = chip->i2c_client;
|
||||||
struct i2c_msg msg = {client->addr, client->flags | I2C_M_RD, 1, &raw_msg};
|
struct i2c_msg msg = {client->addr, client->flags | I2C_M_RD, 1, &raw_msg};
|
||||||
|
|
||||||
if (client->dev.power.status != DPM_ON)
|
if (client->dev.power.status >= DPM_OFF)
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
|
|
||||||
ret = i2c_transfer(client->adapter, &msg, 1);
|
ret = i2c_transfer(client->adapter, &msg, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user