summaryrefslogtreecommitdiffstats
path: root/replication.c
diff options
context:
space:
mode:
authorGuenter Roeck2021-05-03 15:53:00 +0200
committerJason Wang2021-05-27 05:03:07 +0200
commitf607dce2ed0a78bee3da6482c7abe58a80df2974 (patch)
tree336b9fd60f0885d5822d16c1bf69d3a1f8fdff87 /replication.c
parentMerge remote-tracking branch 'remotes/dg-gitlab/tags/ppc-for-6.1-20210504' in... (diff)
downloadqemu-f607dce2ed0a78bee3da6482c7abe58a80df2974.tar.gz
qemu-f607dce2ed0a78bee3da6482c7abe58a80df2974.tar.xz
qemu-f607dce2ed0a78bee3da6482c7abe58a80df2974.zip
hw/net/imx_fec: return 0xffff when accessing non-existing PHY
If a PHY does not exist, attempts to read from it should return 0xffff. Otherwise the Linux kernel will believe that a PHY is there and select the non-existing PHY. This in turn will result in network errors later on since the real PHY is not selected or configured. Since reading from or writing to a non-existing PHY is not an emulation error, replace guest error messages with traces. Fixes: 461c51ad4275 ("Add a phy-num property to the i.MX FEC emulator") Cc: Jean-Christophe Dubois <jcd@tribudubois.net> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'replication.c')
0 files changed, 0 insertions, 0 deletions