net: ipa: use upper_32_bits()
authorAlex Elder <elder@linaro.org>
Thu, 18 Mar 2021 18:59:28 +0000 (13:59 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 23:20:34 +0000 (16:20 -0700)
commit3c54b7be5d3677f37dfcd68afcc1d8e2b677a5b9
tree4baac6bc06cb7ab93b15fc675e2e8a0edec6d461
parentd2fd2311de909a7f4e99b4bd11a19e6b671d6a6b
net: ipa: use upper_32_bits()

Use upper_32_bits() to extract the high-order 32 bits of a DMA
address.  This avoids doing a 32-position shift on a DMA address
if it happens not to be 64 bits wide.  Use lower_32_bits() to
extract the low-order 32 bits (because that's what it's for).

Suggested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/gsi.c