openwrtv4/target/linux
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
..
adm5120 kernel: remove obsolete yaffs options from target configs 2013-12-16 07:51:21 +00:00
adm8668 targets: prepare for supporting normal and initramfs images 2013-06-27 19:58:31 +00:00
amazon target: don't build jffs2 nor images by default 2013-06-05 20:58:59 +00:00
ar7 kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
ar71xx ag71xx: ag71xx: use device name for debugfs entry 2013-12-17 15:12:50 +00:00
at91 at91: fix typo in network file 2013-11-17 17:14:32 +00:00
atheros kernel: update 3.10 to 3.10.17 2013-10-23 12:51:05 +00:00
au1000 au1000: make sysupgrade compatible with all file system types 2013-11-07 12:46:16 +00:00
avr32 kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
bcm53xx kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
brcm47xx brcm47xx: deactivate early printk support 2013-12-15 19:19:16 +00:00
brcm63xx kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
brcm2708 kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
cns3xxx add uImage image build 2013-11-10 09:57:07 +00:00
cns21xx kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
cobalt cobalt: do not build userland with support for mips1 2013-10-13 22:10:57 +00:00
ep93xx ep93xx: fix kmod-input-keyboard-ep93xx dependencies 2013-10-01 22:39:28 +00:00
gemini build: unify arm target cflags 2013-09-26 17:53:20 +00:00
generic kernel: define RB_ID_HW_OPTIONS in include/linux/routerboot.h 2013-12-16 10:11:00 +00:00
imx6 imx6: ventana: add canbus utils 2013-12-17 02:47:20 +00:00
iop32x targets: prepare for supporting normal and initramfs images 2013-06-27 19:58:31 +00:00
ixp4xx kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
kirkwood kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
lantiq kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
malta kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
mcs814x build: unify arm target cflags 2013-09-26 17:53:20 +00:00
mpc52xx build: unify powerpc target cflags 2013-09-26 17:53:28 +00:00
mpc83xx kernel: remove obsolete yaffs options from target configs 2013-12-16 07:51:21 +00:00
mpc85xx kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
mvebu kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
mxs upgrade 3.12 targets to 3.12.5 2013-12-14 17:37:14 +00:00
octeon kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
omap upgrade 3.12 targets to 3.12.5 2013-12-14 17:37:14 +00:00
omap24xx build: unify arm target cflags 2013-09-26 17:53:20 +00:00
orion build: unify arm target cflags 2013-09-26 17:53:20 +00:00
ppc40x kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
ppc44x kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
pxa targets: prepare for supporting normal and initramfs images 2013-06-27 19:58:31 +00:00
ramips ralink: fix dir810 networking 2013-12-16 10:16:33 +00:00
rb532 kernel: remove obsolete yaffs options from target configs 2013-12-16 07:51:21 +00:00
realview kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
sibyte build: unify mips target cflags 2013-09-26 17:53:14 +00:00
sparc kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
sunxi upgrade 3.12 targets to 3.12.5 2013-12-14 17:37:14 +00:00
uml uml: work around mangled parameter handling for ubd 2013-09-24 13:36:42 +00:00
x86 kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
xburst kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
Makefile