]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Fix test for MDIO read failure
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 27 Feb 2009 13:06:12 +0000 (13:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2009 11:15:02 +0000 (03:15 -0800)
commitdcf9efad1827ba2f2b7783d6c6e025e112d82500
treecc559f0dd678b604394a24c28fcbc25c0893ccad
parenta667b259b0dab8b44426327b5a4c44771c0774f9
sfc: Fix test for MDIO read failure

Commit 435582116e0cf47b86dd291618f6d7b8f59690b7 changed
mdio_clause45_check_mmds() to read both DEVS0 and DEVS1 registers and
to combine their values into an unsigned 32-bit mask.  This made the
following test for a negative (failure) value useless.  Fix it to
check whether either read failed.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/mdio_10g.c