]> git.baikalelectronics.ru Git - kernel.git/commit
net: davinci_emac: Fix ioremap for devices with MDIO within the EMAC address space
authorTony Lindgren <tony@atomide.com>
Thu, 15 Jan 2015 22:45:13 +0000 (14:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jan 2015 06:00:03 +0000 (01:00 -0500)
commitc6553f4e1a5ee08de20ee7bdfd0484c84d33c08f
tree20ff3f5f3fecfd36719ea3d83b3575b6cf9ab45d
parent669ea435f921a5e966e138f3b78d6daffd696784
net: davinci_emac: Fix ioremap for devices with MDIO within the EMAC address space

Some devices like dm816x have the MDIO registers within the first EMAC
instance address space. Let's fix the issue by allowing to pass an
optional second IO range for the EMAC control register area.

Cc: Brian Hutchinson <b.hutchman@gmail.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c