nfp: fix unaligned io read of capabilities word
authorHuanhuan Wang <huanhuan.wang@corigine.com>
Fri, 16 Dec 2022 14:31:01 +0000 (15:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Dec 2022 12:35:20 +0000 (12:35 +0000)
commit1b0c84a32e37cf85d552261005091eb695313f38
tree5d8c6b70e8b45902b2ea6b9f6b531874e83f05db
parente0c8bccd40fc1c19e1d246c39bcf79e357e1ada3
nfp: fix unaligned io read of capabilities word

The address of 32-bit extend capability is not qword aligned,
and may cause exception in some arch.

Fixes: 484963ce9f1e ("nfp: extend capability and control words")
Signed-off-by: Huanhuan Wang <huanhuan.wang@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c