Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp409956pxv; Thu, 8 Jul 2021 05:30:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLmTPVQb7sqdtXrYYwmJ+vTGrv7dUPGgqdlmSeyXAfigmdFAbUfEo/wTG4kWlg9JqI+C3n X-Received: by 2002:a5d:96cb:: with SMTP id r11mr9111584iol.53.1625747406007; Thu, 08 Jul 2021 05:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625747406; cv=none; d=google.com; s=arc-20160816; b=E3q79L+rJunMgYybYK78IABCelK7TnTgJH/f8xTYGGPCcOlrT2+T3dZ89xoIbkiest dloMJxmXe3fsDvQS8B4eWzxZexKjt+vouyL0aswRUeVuIohvsIV2HhR1PZS2yuS60UFV uOXSqmvY5nMBgjHF3GFhua6MlnxeNbqpffZD9PG+OVeAR1UDVDmUdivzxS5jvCfXv/oz on9b/QHf433U/QcCPWrSvY+PQCe3HsXMaqMCfmRiUwlmygoWZh0lf0NtieKNkPyzDz4M KvBls/CRXdwGktqcMjMAdFrRvPkYoKStiTntP64BsaotbUbEdP8Ok9vSKTtDPSQZ7FQ5 2Dew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yQR+GzSpQeBUpEml5W9F1YnXe1aTCKkmocAYHrS+9Kc=; b=YHA76GlaGcSr1+pMf7nwBtw1GA7aXodH3XSobhbX/xdqWSwZaeCsW2AlWLG16YvVas kkdhj010x5wBJxMtgNGzXi6PCc6KFJ2duKYARGGjL5a8PB5ZGJ57hMh94M04wml+S0Yq +q4qk2G11rtn0vdiV058FvgqED798PgxmP2u+53GypdbhM2ar+4Vsc9tAMl9hhJpN66A Z1AQm6XOzly6jHou1uS62KjGbNxXF4dcX/Tn7uWE4Q77Y5mGbH0380+0kItQAMSHZiXT kPhoweW816oL85eHLAkkzAg62nS4/mQKoR5qtwP28rGTwpxnRO5q+n4c9tmWfmUhWN1g Q72Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yadro.com header.s=mta-01 header.b=rX48V70v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yadro.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si1901863ioj.45.2021.07.08.05.29.53; Thu, 08 Jul 2021 05:30:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@yadro.com header.s=mta-01 header.b=rX48V70v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yadro.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231548AbhGHMal (ORCPT + 99 others); Thu, 8 Jul 2021 08:30:41 -0400 Received: from mta-02.yadro.com ([89.207.88.252]:45054 "EHLO mta-01.yadro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231455AbhGHMaj (ORCPT ); Thu, 8 Jul 2021 08:30:39 -0400 Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id 3C5AB49E0E; Thu, 8 Jul 2021 12:27:56 +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 :references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received:received; s=mta-01; t= 1625747275; x=1627561676; bh=sydz3Wzh06v4Eeyvteb8BKe1aO3dkHHmVlB nZAgf59I=; b=rX48V70vvH7obTYJ25Y6gLAXN8NgPH4D81fWvlgRgKCMWwHhpNo xuVtOwkmjmodzzs9scTvwBl9OJV2ySJPZvKhHQ5ILqhEO6NeockGMBcx2cJf6HD4 RCrwjeWx+R+xVBrre7MuWq1n86NZPR/O+AXdduXPv/3Hw7jBvbmCKqDo= 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 dPFvq68vkG93; Thu, 8 Jul 2021 15:27:55 +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 277CD49F56; Thu, 8 Jul 2021 15:18:27 +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 3/3] net/ncsi: add dummy response handler for Intel boards Date: Thu, 8 Jul 2021 15:27:54 +0300 Message-ID: <20210708122754.555846-4-i.mikhaylov@yadro.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210708122754.555846-1-i.mikhaylov@yadro.com> References: <20210708122754.555846-1-i.mikhaylov@yadro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: linux-kernel@vger.kernel.org Add the dummy response handler for Intel boards to prevent incorrect handling of OEM commands. Signed-off-by: Ivan Mikhaylov --- net/ncsi/ncsi-rsp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/net/ncsi/ncsi-rsp.c b/net/ncsi/ncsi-rsp.c index 04bc50be5c01..d48374894817 100644 --- a/net/ncsi/ncsi-rsp.c +++ b/net/ncsi/ncsi-rsp.c @@ -699,12 +699,19 @@ static int ncsi_rsp_handler_oem_bcm(struct ncsi_request *nr) return 0; } +/* Response handler for Intel card */ +static int ncsi_rsp_handler_oem_intel(struct ncsi_request *nr) +{ + return 0; +} + static struct ncsi_rsp_oem_handler { unsigned int mfr_id; int (*handler)(struct ncsi_request *nr); } ncsi_rsp_oem_handlers[] = { { NCSI_OEM_MFR_MLX_ID, ncsi_rsp_handler_oem_mlx }, - { NCSI_OEM_MFR_BCM_ID, ncsi_rsp_handler_oem_bcm } + { NCSI_OEM_MFR_BCM_ID, ncsi_rsp_handler_oem_bcm }, + { NCSI_OEM_MFR_INTEL_ID, ncsi_rsp_handler_oem_intel } }; /* Response handler for OEM command */ -- 2.31.1