Skip to content
Commit 59980d5c authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Carles Cufí
Browse files

drivers: net: tc6: Saturate RCA and RBA when read directly from OA_BUFSTS



The RCA and RBA fields in OA_BUFSTS register are stored with 8 bits each.

On the other hand, when one receives those values in footer, the value
is saturated to 5 bits due to 32 bit size constrain of the footer itself.

To avoid any mismatches - the values read from OA_BUFSTS are saturated
as well.

Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
parent d378e645
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment