linux/drivers/net/ethernet/smsc
Guenter Roeck 62ee783bf1 smsc911x: Fix crash seen if neither ACPI nor OF is configured or used
Commit 0b50dc4fc9 ("Convert smsc911x to use ACPI as well as DT") makes
the call to smsc911x_probe_config() unconditional, and no longer fails if
there is no device node. device_get_phy_mode() is called unconditionally,
and if there is no phy node configured returns an error code. This error
code is assigned to phy_interface, and interpreted elsewhere in the code
as valid phy mode. This in turn causes qemu to crash when running a
variant of realview_pb_defconfig.

	qemu: hardware error: lan9118_read: Bad reg 0x86

Fixes: 0b50dc4fc9 ("Convert smsc911x to use ACPI as well as DT")
Cc: Jeremy Linton <jeremy.linton@arm.com>
Cc Graeme Gregory <graeme.gregory@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-08-17 14:06:16 -07:00
..
epic100.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
Kconfig drivers/net: remove all references to obsolete Ethernet-HOWTO 2015-06-23 06:50:35 -07:00
Makefile
smc91c92_cs.c net: smc91c92_cs: Use setup_timer and mod_timer 2015-03-01 13:40:22 -05:00
smc91x.c Revert "Revert "smc91x: retrieve IRQ and trigger flags in a modern way"" 2015-05-04 15:12:33 -04:00
smc91x.h net: smc91x: use run-time configuration on all ARM machines 2015-02-28 12:56:56 -05:00
smc911x.c net: ethernet: smsc: drop owner assignment from platform_drivers 2014-10-20 16:21:12 +02:00
smc911x.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
smc9194.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2013-11-13 17:40:34 +09:00
smc9194.h
smsc911x.c smsc911x: Fix crash seen if neither ACPI nor OF is configured or used 2015-08-17 14:06:16 -07:00
smsc911x.h smsc: replace WARN_ON() with WARN_ON_SMP() 2014-08-11 14:38:29 -07:00
smsc9420.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
smsc9420.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00