Commit 83ccbaf
cxl/port: Reduce number of @DPORT variables in cxl_port_add_dport()
In preparation for refactoring cxl_port_add_dport() to add RAS register
setup, cleanup the number of dport variables with a dport_exists() helper.
Kill the @DPORT needed to check for duplicates, rename @new_dport to
@DPORT.
Reported-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Closes: http://lore.kernel.org/20260116150119.00003bbd@huawei.com
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Tested-by: Terry Bowman <terry.bowman@amd.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Link: https://patch.msgid.link/20260131000403.2135324-3-dan.j.williams@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>1 parent 47fec71 commit 83ccbaf
1 file changed
Lines changed: 23 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1587 | 1587 | | |
1588 | 1588 | | |
1589 | 1589 | | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
1590 | 1603 | | |
1591 | 1604 | | |
1592 | 1605 | | |
1593 | 1606 | | |
1594 | | - | |
1595 | 1607 | | |
1596 | 1608 | | |
1597 | 1609 | | |
1598 | 1610 | | |
1599 | 1611 | | |
1600 | 1612 | | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
| 1613 | + | |
1605 | 1614 | | |
1606 | | - | |
1607 | 1615 | | |
1608 | | - | |
| 1616 | + | |
1609 | 1617 | | |
1610 | | - | |
1611 | | - | |
| 1618 | + | |
| 1619 | + | |
1612 | 1620 | | |
1613 | | - | |
| 1621 | + | |
1614 | 1622 | | |
1615 | 1623 | | |
1616 | 1624 | | |
| |||
1626 | 1634 | | |
1627 | 1635 | | |
1628 | 1636 | | |
1629 | | - | |
1630 | | - | |
| 1637 | + | |
| 1638 | + | |
1631 | 1639 | | |
1632 | 1640 | | |
1633 | 1641 | | |
1634 | | - | |
| 1642 | + | |
1635 | 1643 | | |
1636 | | - | |
| 1644 | + | |
1637 | 1645 | | |
1638 | 1646 | | |
1639 | | - | |
| 1647 | + | |
1640 | 1648 | | |
1641 | 1649 | | |
1642 | 1650 | | |
| |||
0 commit comments