mlx5_core: Implement new initialization sequence
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 18 Jul 2013 12:31:08 +0000 (15:31 +0300)
committerRoland Dreier <roland@purestorage.com>
Wed, 31 Jul 2013 21:12:24 +0000 (14:12 -0700)
commitcd23b14b654769db83c9684ae1ba32c0e066670f
tree60270d1f4313fa4938f05ec9773b7994c81be676
parent11940c8728b8e4bd67d0afacefbb9391ff8f4201
mlx5_core: Implement new initialization sequence

Introduce enbale_hca and disable_hca commands to signify when the
driver starts or ceases to operate on the device.

In addition the driver will use boot and init pages count; boot pages
is required to allow firmware to complete boot commands and the other
to complete init hca.  Command interface revision is bumped to 4 to
enforce using supported firmware.

This patch breaks compatibility with old versions of firmware (< 4);
however, the first GA firmware we will publish will support version 4
so this should not be a problem.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
include/linux/mlx5/device.h
include/linux/mlx5/driver.h