From patchwork Thu Jul 8 12:27:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Mikhaylov X-Patchwork-Id: 472246 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=-14.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, 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 6CD38C07E96 for ; Thu, 8 Jul 2021 12:27:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E79A61585 for ; Thu, 8 Jul 2021 12:27:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231433AbhGHMah (ORCPT ); Thu, 8 Jul 2021 08:30:37 -0400 Received: from mta-02.yadro.com ([89.207.88.252]:44986 "EHLO mta-01.yadro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229659AbhGHMaf (ORCPT ); Thu, 8 Jul 2021 08:30:35 -0400 Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id 04C1349E3D; Thu, 8 Jul 2021 12:27:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yadro.com; h= content-type:content-type:content-transfer-encoding:mime-version :x-mailer:message-id:date:date:subject:subject:from:from :received:received:received; s=mta-01; t=1625747271; x= 1627561672; bh=bO6Qk1sZMJQVSInPZGyfZf+bln/u5E6eqcOxjG61nAI=; b=i Uam7raNvzYwN4+UwSq3eZuNlTjP5MUUCB9cggKvAaJV3IMfiTp3tTfoELDGyU78C PEE4y+++SLQ0O3+dxaPq0eYaGylne3oLUUs+TL6Z2B4I/Chyowea68IdB0NX7JDE mkuJZZKICAA9p5ywlFHaQo0psLvNEQekFsKFZ4KTos= X-Virus-Scanned: amavisd-new at yadro.com Received: from mta-01.yadro.com ([127.0.0.1]) by localhost (mta-01.yadro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wb_Ks_nfBjDz; Thu, 8 Jul 2021 15:27:51 +0300 (MSK) Received: from T-EXCH-03.corp.yadro.com (t-exch-03.corp.yadro.com [172.17.100.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Postfix) with ESMTPS id 0320949F4C; Thu, 8 Jul 2021 15:18:25 +0300 (MSK) Received: from fedora.mshome.net (10.199.0.196) by T-EXCH-03.corp.yadro.com (172.17.100.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Thu, 8 Jul 2021 15:18:25 +0300 From: Ivan Mikhaylov To: "David S . Miller" , Jakub Kicinski , Samuel Mendoza-Jonas CC: Ivan Mikhaylov , Joel Stanley , Benjamin Herrenschmidt , , , Subject: [PATCH v2 0/3] net/ncsi: Add NCSI Intel OEM command to keep PHY link up Date: Thu, 8 Jul 2021 15:27:51 +0300 Message-ID: <20210708122754.555846-1-i.mikhaylov@yadro.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Originating-IP: [10.199.0.196] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-03.corp.yadro.com (172.17.100.103) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add NCSI Intel OEM command to keep PHY link up and prevents any channel resets during the host load on i210. Also includes dummy response handler for Intel manufacturer id. Changes from v1: 1. sparse fixes about casts 2. put it after ncsi_dev_state_probe_cis instead of ncsi_dev_state_probe_channel because sometimes channel is not ready after it 3. inl -> intel Ivan Mikhaylov (3): net/ncsi: fix restricted cast warning of sparse net/ncsi: add NCSI Intel OEM command to keep PHY up net/ncsi: add dummy response handler for Intel boards net/ncsi/Kconfig | 6 +++++ net/ncsi/internal.h | 5 +++++ net/ncsi/ncsi-manage.c | 51 +++++++++++++++++++++++++++++++++++++++--- net/ncsi/ncsi-rsp.c | 11 +++++++-- 4 files changed, 68 insertions(+), 5 deletions(-)