Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 642
b: refs/heads/master
c: 616299a
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed May 1, 2005
1 parent 9f89fc3 commit ada0b54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: a497aa20e5ea54fdee474192d6dc138b4832fc9e
refs/heads/master: 616299afcebfb2228f45a95aac7e63704c3733fc
7 changes: 6 additions & 1 deletion trunk/drivers/ide/ppc/pmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,8 @@ pmac_ide_do_suspend(ide_hwif_t *hwif)
}
#endif /* CONFIG_BLK_DEV_IDE_PMAC_BLINK */

disable_irq(pmif->irq);

/* The media bay will handle itself just fine */
if (pmif->mediabay)
return 0;
Expand Down Expand Up @@ -1236,19 +1238,22 @@ pmac_ide_do_resume(ide_hwif_t *hwif)
ppc_md.feature_call(PMAC_FTR_IDE_ENABLE, pmif->node, pmif->aapl_bus_id, 1);
msleep(10);
ppc_md.feature_call(PMAC_FTR_IDE_RESET, pmif->node, pmif->aapl_bus_id, 0);
msleep(jiffies_to_msecs(IDE_WAKEUP_DELAY));

/* Kauai has it different */
if (pmif->kauai_fcr) {
u32 fcr = readl(pmif->kauai_fcr);
fcr |= KAUAI_FCR_UATA_RESET_N | KAUAI_FCR_UATA_ENABLE;
writel(fcr, pmif->kauai_fcr);
}

msleep(jiffies_to_msecs(IDE_WAKEUP_DELAY));
}

/* Sanitize drive timings */
sanitize_timings(pmif);

enable_irq(pmif->irq);

return 0;
}

Expand Down

0 comments on commit ada0b54

Please sign in to comment.