]> 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)
commite501d8920469b17b817d1c384fd4495682be2663
tree20ff3f5f3fecfd36719ea3d83b3575b6cf9ab45d
parentfaef50b3c58bab0b689628ff15e7de9e630d1c31
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