aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/ps3/system-bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/ps3/system-bus.c')
-rw-r--r--arch/powerpc/platforms/ps3/system-bus.c38
1 files changed, 23 insertions, 15 deletions
diff --git a/arch/powerpc/platforms/ps3/system-bus.c b/arch/powerpc/platforms/ps3/system-bus.c
index 43c493fca2d..d66c3628a11 100644
--- a/arch/powerpc/platforms/ps3/system-bus.c
+++ b/arch/powerpc/platforms/ps3/system-bus.c
@@ -349,9 +349,14 @@ static int ps3_system_bus_match(struct device *_dev,
349 349
350 result = dev->match_id == drv->match_id; 350 result = dev->match_id == drv->match_id;
351 351
352 pr_info("%s:%d: dev=%u(%s), drv=%u(%s): %s\n", __func__, __LINE__, 352 if (result)
353 dev->match_id, dev->core.bus_id, drv->match_id, drv->core.name, 353 pr_info("%s:%d: dev=%u(%s), drv=%u(%s): match\n", __func__,
354 (result ? "match" : "miss")); 354 __LINE__, dev->match_id, dev->core.bus_id,
355 drv->match_id, drv->core.name);
356 else
357 pr_debug("%s:%d: dev=%u(%s), drv=%u(%s): miss\n", __func__,
358 __LINE__, dev->match_id, dev->core.bus_id,
359 drv->match_id, drv->core.name);
355 return result; 360 return result;
356} 361}
357 362
@@ -362,7 +367,7 @@ static int ps3_system_bus_probe(struct device *_dev)
362 struct ps3_system_bus_driver *drv; 367 struct ps3_system_bus_driver *drv;
363 368
364 BUG_ON(!dev); 369 BUG_ON(!dev);
365 pr_info(" -> %s:%d: %s\n", __func__, __LINE__, _dev->bus_id); 370 pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, _dev->bus_id);
366 371
367 drv = ps3_system_bus_dev_to_system_bus_drv(dev); 372 drv = ps3_system_bus_dev_to_system_bus_drv(dev);
368 BUG_ON(!drv); 373 BUG_ON(!drv);
@@ -370,10 +375,10 @@ static int ps3_system_bus_probe(struct device *_dev)
370 if (drv->probe) 375 if (drv->probe)
371 result = drv->probe(dev); 376 result = drv->probe(dev);
372 else 377 else
373 pr_info("%s:%d: %s no probe method\n", __func__, __LINE__, 378 pr_debug("%s:%d: %s no probe method\n", __func__, __LINE__,
374 dev->core.bus_id); 379 dev->core.bus_id);
375 380
376 pr_info(" <- %s:%d: %s\n", __func__, __LINE__, dev->core.bus_id); 381 pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, dev->core.bus_id);
377 return result; 382 return result;
378} 383}
379 384
@@ -384,7 +389,7 @@ static int ps3_system_bus_remove(struct device *_dev)
384 struct ps3_system_bus_driver *drv; 389 struct ps3_system_bus_driver *drv;
385 390
386 BUG_ON(!dev); 391 BUG_ON(!dev);
387 pr_info(" -> %s:%d: %s\n", __func__, __LINE__, _dev->bus_id); 392 pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, _dev->bus_id);
388 393
389 drv = ps3_system_bus_dev_to_system_bus_drv(dev); 394 drv = ps3_system_bus_dev_to_system_bus_drv(dev);
390 BUG_ON(!drv); 395 BUG_ON(!drv);
@@ -395,7 +400,7 @@ static int ps3_system_bus_remove(struct device *_dev)
395 dev_dbg(&dev->core, "%s:%d %s: no remove method\n", 400 dev_dbg(&dev->core, "%s:%d %s: no remove method\n",
396 __func__, __LINE__, drv->core.name); 401 __func__, __LINE__, drv->core.name);
397 402
398 pr_info(" <- %s:%d: %s\n", __func__, __LINE__, dev->core.bus_id); 403 pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, dev->core.bus_id);
399 return result; 404 return result;
400} 405}
401 406
@@ -550,7 +555,7 @@ static void ps3_free_coherent(struct device *_dev, size_t size, void *vaddr,
550 */ 555 */
551 556
552static dma_addr_t ps3_sb_map_single(struct device *_dev, void *ptr, size_t size, 557static dma_addr_t ps3_sb_map_single(struct device *_dev, void *ptr, size_t size,
553 enum dma_data_direction direction) 558 enum dma_data_direction direction, struct dma_attrs *attrs)
554{ 559{
555 struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev); 560 struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev);
556 int result; 561 int result;
@@ -570,7 +575,8 @@ static dma_addr_t ps3_sb_map_single(struct device *_dev, void *ptr, size_t size,
570 575
571static dma_addr_t ps3_ioc0_map_single(struct device *_dev, void *ptr, 576static dma_addr_t ps3_ioc0_map_single(struct device *_dev, void *ptr,
572 size_t size, 577 size_t size,
573 enum dma_data_direction direction) 578 enum dma_data_direction direction,
579 struct dma_attrs *attrs)
574{ 580{
575 struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev); 581 struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev);
576 int result; 582 int result;
@@ -603,7 +609,7 @@ static dma_addr_t ps3_ioc0_map_single(struct device *_dev, void *ptr,
603} 609}
604 610
605static void ps3_unmap_single(struct device *_dev, dma_addr_t dma_addr, 611static void ps3_unmap_single(struct device *_dev, dma_addr_t dma_addr,
606 size_t size, enum dma_data_direction direction) 612 size_t size, enum dma_data_direction direction, struct dma_attrs *attrs)
607{ 613{
608 struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev); 614 struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev);
609 int result; 615 int result;
@@ -617,7 +623,7 @@ static void ps3_unmap_single(struct device *_dev, dma_addr_t dma_addr,
617} 623}
618 624
619static int ps3_sb_map_sg(struct device *_dev, struct scatterlist *sgl, 625static int ps3_sb_map_sg(struct device *_dev, struct scatterlist *sgl,
620 int nents, enum dma_data_direction direction) 626 int nents, enum dma_data_direction direction, struct dma_attrs *attrs)
621{ 627{
622#if defined(CONFIG_PS3_DYNAMIC_DMA) 628#if defined(CONFIG_PS3_DYNAMIC_DMA)
623 BUG_ON("do"); 629 BUG_ON("do");
@@ -646,14 +652,15 @@ static int ps3_sb_map_sg(struct device *_dev, struct scatterlist *sgl,
646 652
647static int ps3_ioc0_map_sg(struct device *_dev, struct scatterlist *sg, 653static int ps3_ioc0_map_sg(struct device *_dev, struct scatterlist *sg,
648 int nents, 654 int nents,
649 enum dma_data_direction direction) 655 enum dma_data_direction direction,
656 struct dma_attrs *attrs)
650{ 657{
651 BUG(); 658 BUG();
652 return 0; 659 return 0;
653} 660}
654 661
655static void ps3_sb_unmap_sg(struct device *_dev, struct scatterlist *sg, 662static void ps3_sb_unmap_sg(struct device *_dev, struct scatterlist *sg,
656 int nents, enum dma_data_direction direction) 663 int nents, enum dma_data_direction direction, struct dma_attrs *attrs)
657{ 664{
658#if defined(CONFIG_PS3_DYNAMIC_DMA) 665#if defined(CONFIG_PS3_DYNAMIC_DMA)
659 BUG_ON("do"); 666 BUG_ON("do");
@@ -661,7 +668,8 @@ static void ps3_sb_unmap_sg(struct device *_dev, struct scatterlist *sg,
661} 668}
662 669
663static void ps3_ioc0_unmap_sg(struct device *_dev, struct scatterlist *sg, 670static void ps3_ioc0_unmap_sg(struct device *_dev, struct scatterlist *sg,
664 int nents, enum dma_data_direction direction) 671 int nents, enum dma_data_direction direction,
672 struct dma_attrs *attrs)
665{ 673{
666 BUG(); 674 BUG();
667} 675}