From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: [PATCH net-next 0/3] mlxsw: Add fw_version_check devlink parameter Date: Tue, 6 Nov 2018 20:04:59 +0000 Message-ID: <20181106200314.29918-1-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: "davem@davemloft.net" , Jiri Pirko , Shalom Toledo , Moshe Shemesh , "dsahern@gmail.com" , "jakub.kicinski@netronome.com" , "andrew@lunn.ch" , "f.fainelli@gmail.com" , mlxsw , Ido Schimmel To: "netdev@vger.kernel.org" Return-path: Received: from mail-eopbgr30068.outbound.protection.outlook.com ([40.107.3.68]:10370 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726157AbeKGFb4 (ORCPT ); Wed, 7 Nov 2018 00:31:56 -0500 Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: Shalom says: Currently, drivers do not have the ability to skip the firmware version check during their initialization flow. Hence, drivers will always flash a compatible version. This prevents drivers from running the device with a different firmware version for testing and/or debugging purposes. For example, testing a firmware bug fix. For these situations, the new devlink generic parameter, fw_version_check, gives the ability to skip the version check and allows drivers to run with a different firmware version than what is required by the driver. Patch #1 adds the new parameter to devlink. The other two patches, #2 and #3, add support for this parameter in the mlxsw driver. Shalom Toledo (3): devlink: Add fw_version_check generic parameter mlxsw: core: Reset firmware after flash during driver initialization mlxsw: spectrum: Skip firmware version check based on devlink parameter drivers/net/ethernet/mellanox/mlxsw/core.c | 45 +++++++++++++++++-- drivers/net/ethernet/mellanox/mlxsw/core.h | 2 + drivers/net/ethernet/mellanox/mlxsw/pci.c | 11 +---- .../net/ethernet/mellanox/mlxsw/spectrum.c | 45 +++++++++++++++++++ include/net/devlink.h | 4 ++ net/core/devlink.c | 5 +++ 6 files changed, 98 insertions(+), 14 deletions(-) --=20 2.19.1