Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127683
b: refs/heads/master
c: e7dd54c
h: refs/heads/master
i:
  127681: 0309fa3
  127679: b799a87
v: v3
  • Loading branch information
Geoff Levand authored and Benjamin Herrenschmidt committed Jan 8, 2009
1 parent 5223220 commit 388ab51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 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: 0a2d15b928e0b1673d4ed5f48d95af211b6fcc06
refs/heads/master: e7dd54cf17714c22665ad74b720f40fb64b3c565
29 changes: 0 additions & 29 deletions trunk/drivers/mtd/devices/ps3vram.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ struct ps3vram_priv {
#define DMA_NOTIFIER_HANDLE_BASE 0x66604200 /* first DMA notifier handle */
#define DMA_NOTIFIER_OFFSET_BASE 0x1000 /* first DMA notifier offset */
#define DMA_NOTIFIER_SIZE 0x40

#define NUM_NOTIFIERS 16

#define NOTIFIER 7 /* notifier used for completion report */

/* A trailing '-' means to subtract off ps3fb_videomemory.size */
Expand Down Expand Up @@ -131,28 +128,6 @@ static int ps3vram_notifier_wait(struct mtd_info *mtd, int timeout_ms)
return -1;
}

static void ps3vram_dump_ring(struct mtd_info *mtd)
{
struct ps3vram_priv *priv = mtd->priv;
uint32_t *fifo;

pr_info("PUT = %08x GET = %08x\n", priv->ctrl[CTRL_PUT],
priv->ctrl[CTRL_GET]);
for (fifo = priv->fifo_base; fifo < priv->fifo_ptr; fifo++)
pr_info("%p: %08x\n", fifo, *fifo);
}

static void ps3vram_dump_reports(struct mtd_info *mtd)
{
struct ps3vram_priv *priv = mtd->priv;
int i;

for (i = 0; i < NUM_NOTIFIERS; i++) {
uint32_t *n = ps3vram_get_notifier(priv->reports, i);
pr_info("%p: %08x\n", n, *n);
}
}

static void ps3vram_init_ring(struct mtd_info *mtd)
{
struct ps3vram_priv *priv = mtd->priv;
Expand Down Expand Up @@ -284,8 +259,6 @@ static int ps3vram_upload(struct mtd_info *mtd, unsigned int src_offset,
ps3vram_fire_ring(mtd);
if (ps3vram_notifier_wait(mtd, 200) < 0) {
pr_err("notifier timeout\n");
ps3vram_dump_ring(mtd);
ps3vram_dump_reports(mtd);
return -1;
}

Expand Down Expand Up @@ -317,8 +290,6 @@ static int ps3vram_download(struct mtd_info *mtd, unsigned int src_offset,
ps3vram_fire_ring(mtd);
if (ps3vram_notifier_wait(mtd, 200) < 0) {
pr_err("notifier timeout\n");
ps3vram_dump_ring(mtd);
ps3vram_dump_reports(mtd);
return -1;
}

Expand Down

0 comments on commit 388ab51

Please sign in to comment.