diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-09-02 03:32:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-02 06:19:32 +0300 |
commit | 487234cc1954a1c09115a82b45ebcc2086657572 (patch) | |
tree | 9020312da8262ed3ba8ab1978f85b05e52e7a545 /drivers/net/ethernet/broadcom/bcmsysport.h | |
parent | d49e3a9f5ec493270d53b7796be4da9a1a804ce3 (diff) | |
download | linux-487234cc1954a1c09115a82b45ebcc2086657572.tar.xz |
net: systemport: Correctly set TSB endian for host
Similarly to how we configure the RSB (Receive Status Block) we also
need to set the TSB (Transmit Status Block) based on the host endian.
This was missing from the commit indicated below.
Fixes: 389a06bc534e ("net: systemport: Set correct RSB endian bits based on host")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcmsysport.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bcmsysport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.h b/drivers/net/ethernet/broadcom/bcmsysport.h index 80b4ffff63b7..82e401df199e 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.h +++ b/drivers/net/ethernet/broadcom/bcmsysport.h @@ -449,7 +449,8 @@ struct bcm_rsb { /* Uses 2 bits on SYSTEMPORT Lite and shifts everything by 1 bit, we * keep the SYSTEMPORT layout here and adjust with tdma_control_bit() */ -#define TSB_SWAP 2 +#define TSB_SWAP0 2 +#define TSB_SWAP1 3 #define ACB_ALGO 3 #define BUF_DATA_OFFSET_SHIFT 4 #define BUF_DATA_OFFSET_MASK 0x3ff |