diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-01-06 06:32:15 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-01-08 00:25:14 -0500 |
commit | e7dd54cf17714c22665ad74b720f40fb64b3c565 (patch) | |
tree | b9f32ebfac65ef4b55a8671acbd260a80844e67d /drivers/mtd/devices | |
parent | 0a2d15b928e0b1673d4ed5f48d95af211b6fcc06 (diff) |
mtd/ps3vram: Remove ps3vram debug routines
Remove the ps3vram debug routines ps3vram_dump_ring() and
ps3vram_dump_reports(). These routines are not needed.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r-- | drivers/mtd/devices/ps3vram.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/mtd/devices/ps3vram.c b/drivers/mtd/devices/ps3vram.c index 22f381fa7844..18ca5219a982 100644 --- a/drivers/mtd/devices/ps3vram.c +++ b/drivers/mtd/devices/ps3vram.c | |||
@@ -87,9 +87,6 @@ struct ps3vram_priv { | |||
87 | #define DMA_NOTIFIER_HANDLE_BASE 0x66604200 /* first DMA notifier handle */ | 87 | #define DMA_NOTIFIER_HANDLE_BASE 0x66604200 /* first DMA notifier handle */ |
88 | #define DMA_NOTIFIER_OFFSET_BASE 0x1000 /* first DMA notifier offset */ | 88 | #define DMA_NOTIFIER_OFFSET_BASE 0x1000 /* first DMA notifier offset */ |
89 | #define DMA_NOTIFIER_SIZE 0x40 | 89 | #define DMA_NOTIFIER_SIZE 0x40 |
90 | |||
91 | #define NUM_NOTIFIERS 16 | ||
92 | |||
93 | #define NOTIFIER 7 /* notifier used for completion report */ | 90 | #define NOTIFIER 7 /* notifier used for completion report */ |
94 | 91 | ||
95 | /* A trailing '-' means to subtract off ps3fb_videomemory.size */ | 92 | /* A trailing '-' means to subtract off ps3fb_videomemory.size */ |
@@ -131,28 +128,6 @@ static int ps3vram_notifier_wait(struct mtd_info *mtd, int timeout_ms) | |||
131 | return -1; | 128 | return -1; |
132 | } | 129 | } |
133 | 130 | ||
134 | static void ps3vram_dump_ring(struct mtd_info *mtd) | ||
135 | { | ||
136 | struct ps3vram_priv *priv = mtd->priv; | ||
137 | uint32_t *fifo; | ||
138 | |||
139 | pr_info("PUT = %08x GET = %08x\n", priv->ctrl[CTRL_PUT], | ||
140 | priv->ctrl[CTRL_GET]); | ||
141 | for (fifo = priv->fifo_base; fifo < priv->fifo_ptr; fifo++) | ||
142 | pr_info("%p: %08x\n", fifo, *fifo); | ||
143 | } | ||
144 | |||
145 | static void ps3vram_dump_reports(struct mtd_info *mtd) | ||
146 | { | ||
147 | struct ps3vram_priv *priv = mtd->priv; | ||
148 | int i; | ||
149 | |||
150 | for (i = 0; i < NUM_NOTIFIERS; i++) { | ||
151 | uint32_t *n = ps3vram_get_notifier(priv->reports, i); | ||
152 | pr_info("%p: %08x\n", n, *n); | ||
153 | } | ||
154 | } | ||
155 | |||
156 | static void ps3vram_init_ring(struct mtd_info *mtd) | 131 | static void ps3vram_init_ring(struct mtd_info *mtd) |
157 | { | 132 | { |
158 | struct ps3vram_priv *priv = mtd->priv; | 133 | struct ps3vram_priv *priv = mtd->priv; |
@@ -284,8 +259,6 @@ static int ps3vram_upload(struct mtd_info *mtd, unsigned int src_offset, | |||
284 | ps3vram_fire_ring(mtd); | 259 | ps3vram_fire_ring(mtd); |
285 | if (ps3vram_notifier_wait(mtd, 200) < 0) { | 260 | if (ps3vram_notifier_wait(mtd, 200) < 0) { |
286 | pr_err("notifier timeout\n"); | 261 | pr_err("notifier timeout\n"); |
287 | ps3vram_dump_ring(mtd); | ||
288 | ps3vram_dump_reports(mtd); | ||
289 | return -1; | 262 | return -1; |
290 | } | 263 | } |
291 | 264 | ||
@@ -317,8 +290,6 @@ static int ps3vram_download(struct mtd_info *mtd, unsigned int src_offset, | |||
317 | ps3vram_fire_ring(mtd); | 290 | ps3vram_fire_ring(mtd); |
318 | if (ps3vram_notifier_wait(mtd, 200) < 0) { | 291 | if (ps3vram_notifier_wait(mtd, 200) < 0) { |
319 | pr_err("notifier timeout\n"); | 292 | pr_err("notifier timeout\n"); |
320 | ps3vram_dump_ring(mtd); | ||
321 | ps3vram_dump_reports(mtd); | ||
322 | return -1; | 293 | return -1; |
323 | } | 294 | } |
324 | 295 | ||