]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: davinci_mdio: split reset function on init_clk and enable
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 24 Jun 2016 18:23:49 +0000 (21:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 12:57:19 +0000 (08:57 -0400)
commita6ae14cbd4e942606396540048ba66e39daa4a9f
tree4cdecd94e9a925f78c929c0c89ae09ee1c95b5f2
parent0eba0f50e0fedd0b0ca04b95b2c4bdd699c83bd5
drivers: net: davinci_mdio: split reset function on init_clk and enable

The Davinci MDIO MDIO_CONTROL.CLKDIV can be calculated only once
during probe, hence split __davinci_mdio_reset() on
davinci_mdio_init_clk() and davinci_mdio_enable(). Initialize and
save CLKDIV in .probe(). Then just use saved value.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c