davinci_mdio: Correct bitmask for clock divider value
authorChristian Riesch <christian.riesch@omicron.at>
Wed, 22 Feb 2012 22:07:58 +0000 (22:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Feb 2012 08:24:18 +0000 (03:24 -0500)
The CLKDIV bitfield in the MDIO Control Register is a 16 bit field,
therefore the CLKDIV value may range from 0 to 0xffff.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c

index af8b8fc39eb2c0d7702e760820759a1f6bac103c..2757c7d6e6330460c179d025a1ddc2267d32b27d 100644 (file)
@@ -53,7 +53,7 @@ struct davinci_mdio_regs {
        u32     control;
 #define CONTROL_IDLE           BIT(31)
 #define CONTROL_ENABLE         BIT(30)
-#define CONTROL_MAX_DIV                (0xff)
+#define CONTROL_MAX_DIV                (0xffff)
 
        u32     alive;
        u32     link;