diff options
author | Alex Elder <elder@linaro.org> | 2021-03-18 13:59:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-18 16:20:34 -0700 |
commit | 3c54b7be5d3677f37dfcd68afcc1d8e2b677a5b9 (patch) | |
tree | 4baac6bc06cb7ab93b15fc675e2e8a0edec6d461 /drivers/net/ipa/ipa_table.c | |
parent | net: ipa: fix assumptions about DMA address size (diff) | |
download | linux-dev-3c54b7be5d3677f37dfcd68afcc1d8e2b677a5b9.tar.xz linux-dev-3c54b7be5d3677f37dfcd68afcc1d8e2b677a5b9.zip |
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>
Diffstat (limited to 'drivers/net/ipa/ipa_table.c')
0 files changed, 0 insertions, 0 deletions