openwrtv4/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx
Gabor Juhos 0d7a6748e1 ag71xx: ag71xx: use device name for debugfs entry
The ag71xx debugfs code uses the network device name
for the device specific debugfs directory. Since r38689
'ar71xx: ag71xx: fix a race involving netdev registration'
the debugfs initialization happens before the ethernet
device gets registered and the network device name contains
'eth%d' at this point. If the board setup code registers
multiple ag71xx devices, the debugfs code tries to create
the device specific dir with the same name which causes
an error like this:

  eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
  ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
  ag71xx: probe of ag71xx.0 failed with error -12

Use the device name for the debugfs directory to avoid the
collisions. Also add an error message and change the return
code if the debugfs_create_dir call fails.

Reported-by: Ronald Wahl <ronald.wahl@raritan.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39115
2013-12-17 15:12:50 +00:00
..
ag71xx.h ar71xx: ethernet: reduce tx dma ring size further to improve cache footprint 2013-08-13 10:35:10 +00:00
ag71xx_ar7240.c ar71xx: remove __dev{init,exit} annotations from kernel files 2013-02-19 20:52:06 +00:00
ag71xx_ar8216.c ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
ag71xx_debugfs.c ag71xx: ag71xx: use device name for debugfs entry 2013-12-17 15:12:50 +00:00
ag71xx_ethtool.c ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
ag71xx_main.c ar71xx: ag71xx: fix ag71xx_probe error path 2013-11-11 07:47:00 +00:00
ag71xx_mdio.c ar71xx: remove __dev{init,exit} annotations from kernel files 2013-02-19 20:52:06 +00:00
ag71xx_phy.c ar71xx: ag71xx: fix a race involving netdev registration 2013-11-08 08:17:54 +00:00
Kconfig ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
Makefile ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00