Skip to content

Commit 59a3626

Browse files
authored
Merge pull request #27 from MicrochipTech/bugfix/pff2port-vep-idx-corr
Correct pff2port idx converter for VEP inst
2 parents c74fa21 + 4dce3d8 commit 59a3626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/platform/gasops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ int gasop_pff_to_port(struct switchtec_dev *dev, int pff,
208208
return 0;
209209
}
210210

211-
reg = __gas_read32(dev, &pcfg->vep_pff_inst_id);
211+
reg = __gas_read32(dev, &pcfg->vep_pff_inst_id) & 0xffU;
212212
if (reg == pff) {
213213
*port = SWITCHTEC_PFF_PORT_VEP;
214214
return 0;

0 commit comments

Comments
 (0)