Commit 85afc31
cxl/pci: Split cxl_pci_setup_regs()
In preparation for moving parts of register mapping to cxl_core, split
cxl_pci_setup_regs() into a helper that finds register blocks,
(cxl_find_regblock()), and a generic wrapper that probes the precise
register sets within a block (cxl_setup_regs()).
Move the actual mapping (cxl_map_regs()) of the only register-set that
cxl_pci cares about (memory device registers) up a level from the former
cxl_pci_setup_regs() into cxl_pci_probe().
With this change the unused component registers are no longer mapped,
but the helpers are primed to move into the core.
[djbw: drop cxl_map_regs() for component registers]
Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
[djbw: rebase on the cxl_register_map refactor]
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/163434053788.914258.18412599112859205220.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>1 parent a261e9a commit 85afc31
1 file changed
Lines changed: 37 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
437 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
438 | 440 | | |
439 | | - | |
| 441 | + | |
440 | 442 | | |
441 | | - | |
442 | | - | |
443 | | - | |
| 443 | + | |
| 444 | + | |
444 | 445 | | |
445 | | - | |
| 446 | + | |
| 447 | + | |
446 | 448 | | |
447 | 449 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
| 450 | + | |
452 | 451 | | |
453 | 452 | | |
454 | | - | |
455 | | - | |
| 453 | + | |
456 | 454 | | |
457 | | - | |
458 | 455 | | |
459 | | - | |
460 | 456 | | |
461 | 457 | | |
462 | 458 | | |
463 | 459 | | |
464 | 460 | | |
465 | 461 | | |
466 | | - | |
| 462 | + | |
467 | 463 | | |
468 | 464 | | |
469 | 465 | | |
470 | 466 | | |
471 | 467 | | |
472 | | - | |
473 | 468 | | |
474 | 469 | | |
475 | | - | |
476 | | - | |
477 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
478 | 473 | | |
479 | | - | |
480 | | - | |
481 | | - | |
| 474 | + | |
| 475 | + | |
482 | 476 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
487 | 481 | | |
488 | | - | |
489 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
490 | 485 | | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
496 | 492 | | |
497 | | - | |
| 493 | + | |
498 | 494 | | |
499 | 495 | | |
500 | 496 | | |
501 | 497 | | |
| 498 | + | |
502 | 499 | | |
503 | 500 | | |
504 | 501 | | |
| |||
518 | 515 | | |
519 | 516 | | |
520 | 517 | | |
521 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
522 | 523 | | |
523 | 524 | | |
524 | 525 | | |
| |||
0 commit comments