@@ -344,7 +344,8 @@ static void pci_read_bases(struct pci_dev *dev, unsigned int howmany, int rom)
344
344
}
345
345
}
346
346
347
- static void pci_read_bridge_io (struct pci_dev * dev , struct resource * res )
347
+ static void pci_read_bridge_io (struct pci_dev * dev , struct resource * res ,
348
+ bool log )
348
349
{
349
350
u8 io_base_lo , io_limit_lo ;
350
351
unsigned long io_mask , io_granularity , base , limit ;
@@ -377,11 +378,13 @@ static void pci_read_bridge_io(struct pci_dev *dev, struct resource *res)
377
378
region .start = base ;
378
379
region .end = limit + io_granularity - 1 ;
379
380
pcibios_bus_to_resource (dev -> bus , res , & region );
380
- pci_info (dev , " bridge window %pR\n" , res );
381
+ if (log )
382
+ pci_info (dev , " bridge window %pR\n" , res );
381
383
}
382
384
}
383
385
384
- static void pci_read_bridge_mmio (struct pci_dev * dev , struct resource * res )
386
+ static void pci_read_bridge_mmio (struct pci_dev * dev , struct resource * res ,
387
+ bool log )
385
388
{
386
389
u16 mem_base_lo , mem_limit_lo ;
387
390
unsigned long base , limit ;
@@ -396,11 +399,13 @@ static void pci_read_bridge_mmio(struct pci_dev *dev, struct resource *res)
396
399
region .start = base ;
397
400
region .end = limit + 0xfffff ;
398
401
pcibios_bus_to_resource (dev -> bus , res , & region );
399
- pci_info (dev , " bridge window %pR\n" , res );
402
+ if (log )
403
+ pci_info (dev , " bridge window %pR\n" , res );
400
404
}
401
405
}
402
406
403
- static void pci_read_bridge_mmio_pref (struct pci_dev * dev , struct resource * res )
407
+ static void pci_read_bridge_mmio_pref (struct pci_dev * dev , struct resource * res ,
408
+ bool log )
404
409
{
405
410
u16 mem_base_lo , mem_limit_lo ;
406
411
u64 base64 , limit64 ;
@@ -446,7 +451,8 @@ static void pci_read_bridge_mmio_pref(struct pci_dev *dev, struct resource *res)
446
451
region .start = base ;
447
452
region .end = limit + 0xfffff ;
448
453
pcibios_bus_to_resource (dev -> bus , res , & region );
449
- pci_info (dev , " bridge window %pR\n" , res );
454
+ if (log )
455
+ pci_info (dev , " bridge window %pR\n" , res );
450
456
}
451
457
}
452
458
@@ -518,9 +524,9 @@ void pci_read_bridge_bases(struct pci_bus *child)
518
524
for (i = 0 ; i < PCI_BRIDGE_RESOURCE_NUM ; i ++ )
519
525
child -> resource [i ] = & dev -> resource [PCI_BRIDGE_RESOURCES + i ];
520
526
521
- pci_read_bridge_io (child -> self , child -> resource [0 ]);
522
- pci_read_bridge_mmio (child -> self , child -> resource [1 ]);
523
- pci_read_bridge_mmio_pref (child -> self , child -> resource [2 ]);
527
+ pci_read_bridge_io (child -> self , child -> resource [0 ], true );
528
+ pci_read_bridge_mmio (child -> self , child -> resource [1 ], true );
529
+ pci_read_bridge_mmio_pref (child -> self , child -> resource [2 ], true );
524
530
525
531
if (dev -> transparent ) {
526
532
pci_bus_for_each_resource (child -> parent , res ) {
0 commit comments