Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh_eth: add/use RMCR.RNC bit

Declare 'enum RMCR_BIT' containing the single member for the RMCR.RNC bit and
replace bare numbers in the driver by this mnemonic.

Suggested-by: David Miller <davem@davemloft.net>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Sergei Shtylyov and committed by
David S. Miller
305a3388 c3fa32b9

+6 -3
+3 -3
drivers/net/ethernet/renesas/sh_eth.c
··· 483 483 .register_type = SH_ETH_REG_FAST_SH4, 484 484 485 485 .eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff, 486 - .rmcr_value = 0x00000001, 486 + .rmcr_value = RMCR_RNC, 487 487 488 488 .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO, 489 489 .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RFE | ··· 561 561 EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE | 562 562 EESR_TDE | EESR_ECI, 563 563 .fdr_value = 0x0000072f, 564 - .rmcr_value = 0x00000001, 564 + .rmcr_value = RMCR_RNC, 565 565 566 566 .irq_flags = IRQF_SHARED, 567 567 .apr = 1, ··· 689 689 EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE | 690 690 EESR_TDE | EESR_ECI, 691 691 .fdr_value = 0x0000070f, 692 - .rmcr_value = 0x00000001, 692 + .rmcr_value = RMCR_RNC, 693 693 694 694 .apr = 1, 695 695 .mpr = 1,
+3
drivers/net/ethernet/renesas/sh_eth.h
··· 321 321 #define TD_TFP (TD_TFP1|TD_TFP0) 322 322 323 323 /* RMCR */ 324 + enum RMCR_BIT { 325 + RMCR_RNC = 0x00000001, 326 + }; 324 327 #define DEFAULT_RMCR_VALUE 0x00000000 325 328 326 329 /* ECMR */