Skip to content

Commit e9a88a1

Browse files
authored
Merge pull request #102 from Microsemi/id_prot
Remove code for disabling ID protection
2 parents 3c969f5 + a9aa9fd commit e9a88a1

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

linux/switchtec.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,6 @@ enum {
358358
NTB_CTRL_REQ_ID_EN = 1 << 0,
359359

360360
NTB_CTRL_LUT_EN = 1 << 0,
361-
362-
NTB_PART_CTRL_ID_PROT_DIS = 1 << 0,
363361
};
364362

365363
struct ntb_ctrl_regs {

ntb_hw_switchtec.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,8 +1021,6 @@ static int add_req_id(struct switchtec_ntb *sndev,
10211021
if (rc)
10221022
return rc;
10231023

1024-
iowrite32(NTB_PART_CTRL_ID_PROT_DIS, &mmio_ctrl->partition_ctrl);
1025-
10261024
for (i = 0; i < table_size; i++) {
10271025
proxy_id = ioread32(&mmio_ctrl->req_id_table[i]);
10281026

@@ -1087,8 +1085,6 @@ static int del_req_id(struct switchtec_ntb *sndev,
10871085
if (rc)
10881086
return rc;
10891087

1090-
iowrite32(NTB_PART_CTRL_ID_PROT_DIS, &mmio_ctrl->partition_ctrl);
1091-
10921088
for (i = 0; i < table_size; i++) {
10931089
rid = ioread32(&mmio_ctrl->req_id_table[i]);
10941090

@@ -1142,9 +1138,6 @@ static int clr_req_ids(struct switchtec_ntb *sndev,
11421138
if (rc)
11431139
return rc;
11441140

1145-
iowrite32(NTB_PART_CTRL_ID_PROT_DIS,
1146-
&mmio_ctrl->partition_ctrl);
1147-
11481141
for (i = 0; i < table_size; i++)
11491142
iowrite32(0, &mmio_ctrl->req_id_table[i]);
11501143

0 commit comments

Comments
 (0)