0100-lantiq-xrx200-enable-remove-crc.patch 897 B

12345678910111213141516171819202122232425
  1. --- a/drivers/net/ethernet/lantiq_xrx200.c
  2. +++ b/drivers/net/ethernet/lantiq_xrx200.c
  3. @@ -143,6 +143,7 @@
  4. #define PMAC_IPG_MASK 0xf
  5. #define PMAC_HD_CTL_AS 0x0008
  6. #define PMAC_HD_CTL_AC 0x0004
  7. +#define PMAC_HD_CTL_RC 0x0010
  8. #define PMAC_HD_CTL_RXSH 0x0040
  9. #define PMAC_HD_CTL_AST 0x0080
  10. #define PMAC_HD_CTL_RST 0x0100
  11. @@ -1502,12 +1503,12 @@ static void xrx200_hw_init(struct xrx200
  12. #ifdef SW_ROUTING
  13. /* enable status header, enable CRC */
  14. ltq_pmac_w32_mask(0,
  15. - PMAC_HD_CTL_RST | PMAC_HD_CTL_AST | PMAC_HD_CTL_RXSH | PMAC_HD_CTL_AS | PMAC_HD_CTL_AC,
  16. + PMAC_HD_CTL_RST | PMAC_HD_CTL_AST | PMAC_HD_CTL_RXSH | PMAC_HD_CTL_AS | PMAC_HD_CTL_AC | PMAC_HD_CTL_RC,
  17. PMAC_HD_CTL);
  18. #else
  19. /* disable status header, enable CRC */
  20. ltq_pmac_w32_mask(PMAC_HD_CTL_AST | PMAC_HD_CTL_RXSH | PMAC_HD_CTL_AS,
  21. - PMAC_HD_CTL_AC,
  22. + PMAC_HD_CTL_AC | PMAC_HD_CTL_RC,
  23. PMAC_HD_CTL);
  24. #endif