Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e28060a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Benjamin Herrenschmidt
Browse files

ps3: Correct debug message in dma_ioc0_map_pages()



It reports the failure of a call to lv1_put_iopte(), not
lv1_map_device_dma_region().

Signed-off-by: default avatarGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: default avatarGeoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent a469f563
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -606,9 +606,8 @@ static int dma_ioc0_map_pages(struct ps3_dma_region *r, unsigned long phys_addr,
				       r->ioid,
				       r->ioid,
				       iopte_flag);
				       iopte_flag);
		if (result) {
		if (result) {
			printk(KERN_WARNING "%s:%d: lv1_map_device_dma_region "
			pr_warning("%s:%d: lv1_put_iopte failed: %s\n",
				"failed: %s\n", __func__, __LINE__,
				   __func__, __LINE__, ps3_result(result));
				ps3_result(result));
			goto fail_map;
			goto fail_map;
		}
		}
		DBG("%s: pg=%d bus=%#lx, lpar=%#lx, ioid=%#x\n", __func__,
		DBG("%s: pg=%d bus=%#lx, lpar=%#lx, ioid=%#x\n", __func__,