Repository navigation
Commit 9cdce1c
Revert "PCI: designware: Program ATU with untranslated address"
Revert f4c55c5 ("PCI: designware: Program ATU with untranslated
address").
Note that dra7xx_pcie_host_init() now modifies pp->io_base, but we still
need the original value for dw_pcie_setup() in the path below, so this adds
a new io_base_tmp member. It will be removed later when dw_pcie_setup() is
removed.
dra7xx_add_pcie_port
dw_pcie_host_init
pp->io_base = range.cpu_addr
pp->io_base_tmp = range.cpu_addr # <-- added
pp->ops->host_init
dra7xx_pcie_host_init # ops->host_init
pp->io_base &= DRA7XX_CPU_TO_BUS_ADDR # <-- modified
pci_common_init_dev(..., &dw_pci)
pcibios_init_hw
hw->setup
dw_pcie_setup # hw_pci.setup
pci_ioremap_io(..., pp->io_base_tmp) # <-- original addr required
[bhelgaas: changelog]
Tested-by: James Morse <james.morse@arm.com>
Tested-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Tested-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Gabriele Paoloni <gabriele.paoloni@huawei.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>1 parent 883cc17 commit 9cdce1c
3 files changed
Lines changed: 16 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
| 420 | + | |
| 421 | + | |
425 | 422 | | |
426 | 423 | | |
427 | 424 | | |
428 | 425 | | |
429 | 426 | | |
430 | 427 | | |
431 | 428 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | 429 | | |
439 | 430 | | |
440 | 431 | | |
| |||
461 | 452 | | |
462 | 453 | | |
463 | 454 | | |
464 | | - | |
465 | | - | |
466 | | - | |
| 455 | + | |
467 | 456 | | |
468 | 457 | | |
469 | 458 | | |
470 | 459 | | |
471 | 460 | | |
472 | 461 | | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | 462 | | |
477 | 463 | | |
478 | 464 | | |
479 | 465 | | |
480 | 466 | | |
481 | 467 | | |
482 | 468 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | 469 | | |
489 | 470 | | |
490 | 471 | | |
| |||
555 | 536 | | |
556 | 537 | | |
557 | 538 | | |
558 | | - | |
| 539 | + | |
559 | 540 | | |
560 | 541 | | |
561 | 542 | | |
| |||
592 | 573 | | |
593 | 574 | | |
594 | 575 | | |
595 | | - | |
| 576 | + | |
596 | 577 | | |
597 | 578 | | |
598 | 579 | | |
599 | 580 | | |
600 | | - | |
| 581 | + | |
601 | 582 | | |
602 | 583 | | |
603 | 584 | | |
| |||
607 | 588 | | |
608 | 589 | | |
609 | 590 | | |
610 | | - | |
| 591 | + | |
611 | 592 | | |
612 | 593 | | |
613 | 594 | | |
| |||
626 | 607 | | |
627 | 608 | | |
628 | 609 | | |
629 | | - | |
| 610 | + | |
630 | 611 | | |
631 | 612 | | |
632 | 613 | | |
633 | 614 | | |
634 | | - | |
| 615 | + | |
635 | 616 | | |
636 | 617 | | |
637 | 618 | | |
| |||
641 | 622 | | |
642 | 623 | | |
643 | 624 | | |
644 | | - | |
| 625 | + | |
645 | 626 | | |
646 | 627 | | |
647 | 628 | | |
| |||
729 | 710 | | |
730 | 711 | | |
731 | 712 | | |
732 | | - | |
| 713 | + | |
733 | 714 | | |
734 | 715 | | |
735 | 716 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
| |||
0 commit comments