Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B82BC072A4 for ; Sat, 18 May 2019 15:59:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36EC12087E for ; Sat, 18 May 2019 15:59:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="iRJ1FcYD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729381AbfERP7R (ORCPT ); Sat, 18 May 2019 11:59:17 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:46313 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727380AbfERP7Q (ORCPT ); Sat, 18 May 2019 11:59:16 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 82AEF292AC; Sat, 18 May 2019 11:59:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 18 May 2019 11:59:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=8/aba0WZWsSOBkgC1 59wW8EbpviZQFREeGsZYcR7i8o=; b=iRJ1FcYDGZMzHADb+vqwlXXVAw5lT5Jmh N80JJanMfggBXJuMC50zJ2QnzjX3PUYSNtXFEB/8yfsLOAzdf05uhbw3sO5I++xn b5uZEjIJVm3V7htGWrzxJCQOa8ZPCNCNvMyR+qCiQGSrN/0DmRNq0C92qLR3cSu4 yfVSGi2vJ27BSQrRC7aQIpxLHLlt3Iz8698wwu+qQonVGPDs61ZSRUsh9M4mC4HJ B9e5Sit7Bp1+nv4AM1zWc3WnreZzEXLPsawg3xrBmij6y1+aUJp7N5ZmjVWrS7iK ciasB5uz0Cqj2blvmATn+Axxux2A5aiLoJF7S0nSmG7Ng4Pd/MpVQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtgedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiughoshgt hhdrohhrgheqnecukfhppedutdelrdeihedrfeefrddufedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehiughoshgthhesihguohhstghhrdhorhhgnecuvehluhhsthgvrhfuihii vgeptd X-ME-Proxy: Received: from splinter.mtl.com (bzq-109-65-33-130.red.bezeqint.net [109.65.33.130]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A0C98005C; Sat, 18 May 2019 11:59:11 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, jiri@mellanox.com, vadimp@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [PATCH net 0/2] mlxsw: Two port module fixes Date: Sat, 18 May 2019 18:58:27 +0300 Message-Id: <20190518155829.31055-1-idosch@idosch.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel Patch #1 fixes driver initialization failure on old ASICs due to unsupported register access. This is fixed by first testing if the register is supported. Patch #2 fixes reading of certain modules' EEPROM. The problem and solution are explained in detail in the commit message. Please consider both patches for stable. Vadim Pasternak (2): mlxsw: core: Prevent QSFP module initialization for old hardware mlxsw: core: Prevent reading unsupported slave address from SFP EEPROM drivers/net/ethernet/mellanox/mlxsw/core.c | 6 ++++++ drivers/net/ethernet/mellanox/mlxsw/core.h | 2 ++ drivers/net/ethernet/mellanox/mlxsw/core_env.c | 18 ++++++++++++++++-- .../net/ethernet/mellanox/mlxsw/core_hwmon.c | 3 +++ .../net/ethernet/mellanox/mlxsw/core_thermal.c | 6 ++++++ 5 files changed, 33 insertions(+), 2 deletions(-) -- 2.20.1