Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3643557ybb; Tue, 31 Mar 2020 09:10:42 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsqjkrzru1Ur9VZoCQgq0N3DobgWlpMUxhXZoiUB7IKbeqEuYAbgdfuiDRAaPM4ygeDtElX X-Received: by 2002:aca:ec49:: with SMTP id k70mr2689364oih.80.1585671041909; Tue, 31 Mar 2020 09:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585671041; cv=none; d=google.com; s=arc-20160816; b=y/J8SiGOu5ioIJTZlVyc+sZb1vwk5aBZAcW7n58yFY1NPcOyFnfwKw1GE1fjRG/Wu1 D7Pbsynbd19KkQr5eDoMFqAMVEPNTzvfOSIBLYP2obE57Q7Dx44Tm36jQFaQBM8jjs4i heMBUdV5K+eTCPPGjLjR8skKkIN4w9WWottYyjdtZn476GqQxBRhIh0A+QCT1YTzodko ifDOOFFeJc0VvqohAWUM9eQiwtscz6lTlOPjQeLnzykb6SqdWoOWqn1kqXtZWxKv0heZ qP1akifkzGcsLPJJcm2PAsPryTkNdL497tSkm9zpDxTrq6izBMO+CEAga3JdxOxoVNUp tWGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=H0knDpqyYJ5Zs2RUgKXwgikdK1MbnxBLSe1invnQLMI=; b=A4+/keEYzYPvoFYc0WztNy1tWLMqDThi5/du8SW0Ra7v3BXlGwPcWxKGUtVff/V+d0 2feJRz1CI45QneLqDx5LzZKnoYI+RRiYVUMh0EHvMv1KTCpZBl67MBHIZ8fHCQSn+bsp cyVKftD2OZX1vwmTIjG5WLZvv5uzEMY2qfr9WuGxq4RvG+Brckdszj2ecNL7nU5dSwlE DoCpw7sYb3k7+uATNTaXibzlSJew/UDJSu3jnqKIDnQ7ca86E5ppdevEixeLamyAhGj8 3MonMHHzUj4Q1l2r4C7DDN2mnJ4KqANj3wPKh2NhOkhpVyU0bHwhOT5sFkuGUL/uDW3p u3zA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14si7448524oov.24.2020.03.31.09.10.28; Tue, 31 Mar 2020 09:10:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731177AbgCaQJ0 (ORCPT + 99 others); Tue, 31 Mar 2020 12:09:26 -0400 Received: from mga01.intel.com ([192.55.52.88]:23356 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730562AbgCaQJT (ORCPT ); Tue, 31 Mar 2020 12:09:19 -0400 IronPort-SDR: Oqt7jqI4OYv0nI0hb0piT23/oUyZqITWnvwSMoblVP7/fV8y7cZdwReYvL4UMrUc/VxhlPgfb+ Z+VQE8VE6sRQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2020 09:08:58 -0700 IronPort-SDR: QSuPW6bkwG/dYUfgWTD/KCA25/nrY67YBweQXGuqLF58LNrzZlKCG2vttELzB6YwrT4VgAQRr9 PGXXQjI3aaiQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,328,1580803200"; d="scan'208";a="395549170" Received: from marshy.an.intel.com ([10.122.105.159]) by orsmga004.jf.intel.com with ESMTP; 31 Mar 2020 09:08:57 -0700 From: richard.gong@linux.intel.com To: mdf@kernel.org, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, dinguyen@kernel.org, richard.gong@linux.intel.com, Richard Gong Subject: [PATCHv1] firmware: fpga: replace the error codes with the standard ones Date: Tue, 31 Mar 2020 11:25:21 -0500 Message-Id: <1585671922-9754-1-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Gong The Intel service layer driver has defined error codes for the specific services, which started from FPGA configuration then RSU (Remote Status Update). Intel service layer driver should define the standard error codes rather than keep adding more error codes for the new services. The standard error codes will be used by all the clients of Intel service layer driver. Replace FPGA and RSU specific error codes with Intel service layer’s Common error codes. All changes need to be in one patch, otherwise it will break bisection. Richard Gong (1): firmware: fpga: replace the error codes with the standard ones drivers/firmware/stratix10-rsu.c | 10 +-- drivers/firmware/stratix10-svc.c | 62 ++++++------------- drivers/fpga/stratix10-soc.c | 25 +++----- include/linux/firmware/intel/stratix10-smc.h | 49 +++++++-------- .../linux/firmware/intel/stratix10-svc-client.h | 71 +++++++++------------- 5 files changed, 84 insertions(+), 133 deletions(-) -- 2.7.4