aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2015-08-17 13:45:36 -0700
committerDavid S. Miller <[email protected]>2015-08-17 14:06:16 -0700
commit62ee783bf1f872ba879e088a669b04afebee899b (patch)
tree98fcd45c8e6c0e382f7a6961f9c8808994a1484a /tools/perf/scripts/python/event_analyzing_sample.py
parentc87acb2558db7a870575dd8e14ded2e5acbdc295 (diff)
smsc911x: Fix crash seen if neither ACPI nor OF is configured or used
Commit 0b50dc4fc971 ("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: 0b50dc4fc971 ("Convert smsc911x to use ACPI as well as DT") Cc: Jeremy Linton <[email protected]> Cc Graeme Gregory <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions