tn3399_openwrt/target/linux/ar71xx
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
..
base-files ar71xx: add userspace support for WD My Net N750 2013-12-16 07:16:43 +00:00
files ag71xx: ag71xx: use device name for debugfs entry 2013-12-17 15:12:50 +00:00
generic ar71xx: Update profile for the wa750/wa850 to include rssileds by default 2013-11-30 18:31:06 +00:00
image ar71xx: build image for the TP-Link TL-WA901ND v3 board 2013-12-15 21:34:20 +00:00
mikrotik ar71xx: add initial support for the Mikrotik RB911G/RB912UAG boards 2013-12-16 18:08:51 +00:00
nand ar71xx: move WNDR4300 profile to the nand subtarget 2013-11-04 18:37:09 +00:00
patches-3.10 ar71xx: add initial support for the Mikrotik RB911G/RB912UAG boards 2013-12-16 18:08:51 +00:00
base-files.mk ar71xx: drop procd_init console hack 2013-06-21 16:53:11 +00:00
config-3.10 ar71xx: add initial support for the Mikrotik RB911G/RB912UAG boards 2013-12-16 18:08:51 +00:00
Makefile kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
modules.mk ar71xx: always enable hw ecc support for the ar934x-nfc module 2013-11-01 18:33:18 +00:00