diff options
author | Gabriel L. Somlo <gsomlo@gmail.com> | 2014-08-06 14:07:10 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-08-14 13:22:25 +0200 |
commit | 1195fed9e6790bd8fd86b0dc33e2442d70355ac6 (patch) | |
tree | 2d1b042aa87ff60a5fb353082e75b2231f28e5f1 /qemu-coroutine-io.c | |
parent | 7f9efb6b80f3ee4545a14f17025329cc2c3c0a93 (diff) |
e1000: correctly handle phy_ctrl reserved & self-clearing bits
Make phyreg_writeops responsible for actually writing their
respective phy registers, rather than rely on set_mdic() to
do it on their behalf.
The only current instance of phyreg_writeops is set_phy_ctrl();
modify it to write the register on its own, while also correctly
handling reserved and self-clearing bits.
have_autoneg() does not need to check for MII_CR_RESTART_AUTO_NEG,
since the only time the flag comes into play is during set_phy_ctrl(),
and, following this patch, never actually gets written to the phy
control register.
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qemu-coroutine-io.c')
0 files changed, 0 insertions, 0 deletions