bus/dpaa: fix statistics reading
authorNipun Gupta <nipun.gupta@nxp.com>
Wed, 24 Feb 2021 12:42:50 +0000 (18:12 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 24 Feb 2021 17:03:30 +0000 (18:03 +0100)
commite62a3f4183f14a91f0dd63e9ea39e749406b5653
tree52d0178bdc0687197b72d6f2ba2d9a723e6aa1a2
parenta675f35d784115bb2a746daa94b6b5ab6305298f
bus/dpaa: fix statistics reading

Reading of word un-aligned values after reading word aligned
values lead to corruption of memory.
This patch make changes such that word aligned access is made,
before making an un-aligned access

Fixes: 6d6b4f49a155 ("bus/dpaa: add FMAN hardware operations")
Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/dpaa/base/fman/fman_hw.c