mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
net: ldpaa_eth: fix the memory layout of the dpmac_get_counters() API
Each MC commands has a specific predefined memory layout that gets interpreted by the firmware. The dpmac_get_counters() API memory layout is wrong, thus the results returned by the command are incorrect. Fix this by updating the offset of the counter field. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
e533228d9e
commit
3e69762740
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ do { \
|
|||
|
||||
/* cmd, param, offset, width, type, arg_name */
|
||||
#define DPMAC_CMD_GET_COUNTER(cmd, type) \
|
||||
MC_CMD_OP(cmd, 1, 0, 64, enum dpmac_counter, type)
|
||||
MC_CMD_OP(cmd, 0, 0, 8, enum dpmac_counter, type)
|
||||
|
||||
/* cmd, param, offset, width, type, arg_name */
|
||||
#define DPMAC_RSP_GET_COUNTER(cmd, counter) \
|
||||
|
|
Loading…
Reference in a new issue