]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mlx4_core: Handle multi-physical function devices
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 6 Jul 2009 23:10:03 +0000 (16:10 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 6 Jul 2009 23:10:03 +0000 (16:10 -0700)
commitcc4ac2e7fb90dfbbbd5a42df0879733f787e4690
tree2d349bbda2642b8b2c5156fedf0c13cbbb7cfc28
parent626f380d0b264a1e40237f5a2a3dffc5d14f256e
mlx4_core: Handle multi-physical function devices

MT26468 (PCI ID 0x6764) devices can expose multiple physical
functions.  The current driver only handles the primary physical
function.  For other functions, the QUERY_FW firmware command will
fail with the CMD_STAT_MULTI_FUNC_REQ error code.  Don't try to drive
such devices, but print a message saying the driver is skipping those
devices rather than just "QUERY_FW command failed."

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
[ Rather than keeping unsupported devices bound to the driver, simply
  print a more informative error message and exit - Roland ]

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/cmd.c
drivers/net/mlx4/main.c