Skip to content

Commit fd9a947

Browse files
GeorgeCGVcarlescufi
authored andcommitted
drivers: ethernet: adin2111: add is_adin2111 check for oa port 2
Skip RX check for port 2 in the OA path for ADIN1110. As the 2nd port doesn't exist. Signed-off-by: Georgij Cernysiov <[email protected]>
1 parent 32cf1f7 commit fd9a947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/eth_adin2111.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ static void adin2111_offload_thread(void *p1, void *p2, void *p3)
700700
goto continue_unlock;
701701
}
702702
}
703-
if (status1 & ADIN2111_STATUS1_P2_RX_RDY) {
703+
if ((status1 & ADIN2111_STATUS1_P2_RX_RDY ) && is_adin2111) {
704704
ret = eth_adin2111_oa_data_read(dev, 1);
705705
if (ret < 0) {
706706
goto continue_unlock;

0 commit comments

Comments
 (0)