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 <geo.cgv@gmail.com>
This commit is contained in:
parent
32cf1f7df2
commit
fd9a947311
1 changed files with 1 additions and 1 deletions
|
|
@ -700,7 +700,7 @@ static void adin2111_offload_thread(void *p1, void *p2, void *p3)
|
|||
goto continue_unlock;
|
||||
}
|
||||
}
|
||||
if (status1 & ADIN2111_STATUS1_P2_RX_RDY) {
|
||||
if ((status1 & ADIN2111_STATUS1_P2_RX_RDY ) && is_adin2111) {
|
||||
ret = eth_adin2111_oa_data_read(dev, 1);
|
||||
if (ret < 0) {
|
||||
goto continue_unlock;
|
||||
|
|
|
|||
Loading…
Reference in a new issue