Skip to content

Commit d8bffff

Browse files
Robert Richterdjbw
authored andcommitted
cxl/port: Remove Component Register base address from struct cxl_dport
The Component Register base address @component_reg_phys is no longer used after the rework of the Component Register setup which now uses struct member @comp_map instead. Remove the base address. Signed-off-by: Robert Richter <rrichter@amd.com> Signed-off-by: Terry Bowman <terry.bowman@amd.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20230622205523.85375-11-terry.bowman@amd.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent d02034b commit d8bffff

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/cxl/core/port.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,6 @@ __devm_cxl_add_dport(struct cxl_port *port, struct device *dport_dev,
960960

961961
dport->dport_dev = dport_dev;
962962
dport->port_id = port_id;
963-
dport->component_reg_phys = component_reg_phys;
964963
dport->port = port;
965964

966965
cond_cxl_root_lock(port);

drivers/cxl/cxl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,15 +594,13 @@ struct cxl_rcrb_info {
594594
* struct cxl_dport - CXL downstream port
595595
* @dport_dev: PCI bridge or firmware device representing the downstream link
596596
* @port_id: unique hardware identifier for dport in decoder target list
597-
* @component_reg_phys: downstream port component registers
598597
* @rcrb: Data about the Root Complex Register Block layout
599598
* @rch: Indicate whether this dport was enumerated in RCH or VH mode
600599
* @port: reference to cxl_port that contains this downstream port
601600
*/
602601
struct cxl_dport {
603602
struct device *dport_dev;
604603
int port_id;
605-
resource_size_t component_reg_phys;
606604
struct cxl_rcrb_info rcrb;
607605
bool rch;
608606
struct cxl_port *port;

0 commit comments

Comments
 (0)