Skip to content

Commit 3132e77

Browse files
committed
Corrected expected Vendor ID value
Signed-off-by: ChetaN KS <[email protected]>
1 parent a405e2c commit 3132e77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inc/switchtec/registers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define SWITCHTEC_MAX_PFF_CSR 255
3131
#define SWITCHTEC_MAX_PARTITIONS 48
3232

33-
#define MICROSEMI_VENDOR_ID 0x11f8
33+
#define EFAR_VENDOR_ID 0x1055
3434

3535
#define BIT(x) (1 << x)
3636
#define SWITCHTEC_EVENT_OCCURRED BIT(0)

lib/platform/gasops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ int gasop_event_summary(struct switchtec_dev *dev,
359359

360360
for (i = 0; i < SWITCHTEC_MAX_PFF_CSR; i++) {
361361
reg = gas_reg_read16(dev, pff_csr[i].vendor_id);
362-
if (reg != MICROSEMI_VENDOR_ID)
362+
if (reg != EFAR_VENDOR_ID)
363363
break;
364364

365365
sum->pff[i] = gas_reg_read32(dev, pff_csr[i].pff_event_summary);

0 commit comments

Comments
 (0)