diff options
author | Hamish Guthrie <hcg@openwrt.org> | 2009-03-24 08:54:41 +0000 |
---|---|---|
committer | Hamish Guthrie <hcg@openwrt.org> | 2009-03-24 08:54:41 +0000 |
commit | 74b20050069bf139ff490f32435f27b927fb4ce7 (patch) | |
tree | c1cc6c53bf0a0eb89ebaf60d02359b15334b3e28 /target/linux/ps3/patches-2.6.28/0009-mtd-ps3vram-Remove-ps3vram-debug-routines.patch | |
parent | d0e357e729480d44369c2472081a587e4e5c5e12 (diff) | |
download | mtk-20170518-74b20050069bf139ff490f32435f27b927fb4ce7.zip mtk-20170518-74b20050069bf139ff490f32435f27b927fb4ce7.tar.gz mtk-20170518-74b20050069bf139ff490f32435f27b927fb4ce7.tar.bz2 |
ps3: update ps3vram patches
SVN-Revision: 15011
Diffstat (limited to 'target/linux/ps3/patches-2.6.28/0009-mtd-ps3vram-Remove-ps3vram-debug-routines.patch')
-rw-r--r-- | target/linux/ps3/patches-2.6.28/0009-mtd-ps3vram-Remove-ps3vram-debug-routines.patch | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/target/linux/ps3/patches-2.6.28/0009-mtd-ps3vram-Remove-ps3vram-debug-routines.patch b/target/linux/ps3/patches-2.6.28/0009-mtd-ps3vram-Remove-ps3vram-debug-routines.patch new file mode 100644 index 0000000..7c949e6 --- /dev/null +++ b/target/linux/ps3/patches-2.6.28/0009-mtd-ps3vram-Remove-ps3vram-debug-routines.patch @@ -0,0 +1,78 @@ +From e7dd54cf17714c22665ad74b720f40fb64b3c565 Mon Sep 17 00:00:00 2001 +From: Geoff Levand <geoffrey.levand@am.sony.com> +Date: Tue, 6 Jan 2009 11:32:15 +0000 +Subject: [PATCH] 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> +--- + 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 22f381f..18ca521 100644 +--- a/drivers/mtd/devices/ps3vram.c ++++ b/drivers/mtd/devices/ps3vram.c +@@ -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 */ +@@ -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; +@@ -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; + } + +@@ -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; + } + +-- +1.6.0.4 + |