Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268585
b: refs/heads/master
c: 9feeb01
h: refs/heads/master
i:
  268583: 596e425
v: v3
  • Loading branch information
Marc Dietrich authored and Greg Kroah-Hartman committed Sep 30, 2011
1 parent 1440925 commit 93a49a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de839b8f06bc5dd3f5037c4409a720cbb9bf21c3
refs/heads/master: 9feeb0147fe6ae3158db5f319faded5e763744f9
10 changes: 8 additions & 2 deletions trunk/drivers/staging/nvec/nvec.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,10 +861,16 @@ static int __devexit tegra_nvec_remove(struct platform_device *pdev)
static int tegra_nvec_suspend(struct platform_device *pdev, pm_message_t state)
{
struct nvec_chip *nvec = platform_get_drvdata(pdev);
struct nvec_msg *msg;

dev_dbg(nvec->dev, "suspending\n");
nvec_write_async(nvec, EC_DISABLE_EVENT_REPORTING, 3);
nvec_write_async(nvec, "\x04\x02", 2);

/* keep these sync or you'll break suspend */
msg = nvec_write_sync(nvec, EC_DISABLE_EVENT_REPORTING, 3);
nvec_msg_free(nvec, msg);
msg = nvec_write_sync(nvec, "\x04\x02", 2);
nvec_msg_free(nvec, msg);

nvec_disable_i2c_slave(nvec);

return 0;
Expand Down

0 comments on commit 93a49a3

Please sign in to comment.