From patchwork Mon Sep 28 04:50:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muneendra Kumar X-Patchwork-Id: 287310 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=-11.9 required=3.0 tests=BAYES_00, DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,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 30BE3C2D0A8 for ; Mon, 28 Sep 2020 11:44:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D46472100A for ; Mon, 28 Sep 2020 11:44:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="hDTBfIK1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726614AbgI1Log (ORCPT ); Mon, 28 Sep 2020 07:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbgI1Log (ORCPT ); Mon, 28 Sep 2020 07:44:36 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38184C061755 for ; Mon, 28 Sep 2020 04:44:36 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id fa1so511867pjb.0 for ; Mon, 28 Sep 2020 04:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PVhyCb1ClUd2x29vbOG/lyaoO7ChYmggcP68w7jtmQI=; b=hDTBfIK18kmNtE/Ab62r7Um8pxxg5HXv3hbzCIAc0hjl6MJNSfmdvTvHeReaAIe0tf f03wjGualp13pfdd90ZEoZQsge+EVD5WNOxvR87F49NAOgiREJolYh8aRBEDfoDT/+te aGTZg/X/NGHAPzkDwbtIJGMYDed6LZx+DfQfY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PVhyCb1ClUd2x29vbOG/lyaoO7ChYmggcP68w7jtmQI=; b=teem1Vk87UgvvCDGUhcFnSzaKUwJPyUdFIFwj99iTErbuxAdTYfSRSXcepkJwRSKP2 FlYIDqxp2lNNVg5pojkiUIz/lTj1aC8fQe99ogHHEA9QCRPpLopUnOblA8aulrSrmj8y m5HNBEYw+OyIwfzgM7+8E1k9iCm7M2YUGnBSF+t13UejW5VeyvgElv/amnatvnmu/vJH OEo2Jpra9Tekqw7Gljk+PZtfI5tRw3xy0jqhrX/SGs3sWsxPRHyk492qeEnPRfIb3yDB mMb2d8nYoKy7njAk1VBydIshvPLy48DBTo8bvm5LDMXdIVFPEtd0K6MOIl9HfISWVIWn 3m8w== X-Gm-Message-State: AOAM533Jyo2Di48kfmUSxseEkER2ZbjMdoxzhLc3+FlGE1Qfttwu3iJi VBBSTh71wcS2fM5wFSmhHczcRZFRoLR0FCkPj9fThSsxPC0prkw1/fZu+3CbaZH/G4+ICtkI0x4 F7R6ynCGupkh6fbFcZH0yBkFuPumsH4fVuDlGJH6K0kCtts1SlMAxeENhv+b9lxkENHozKdXikP ywUoSrwisX X-Google-Smtp-Source: ABdhPJz5Yfrveov23+k8vnpG9EEyxlrlJfQrOXghCTyqUfIZm1O5TDQMBfNzj6az4Z7dsGpNM1YD0g== X-Received: by 2002:a17:90a:fc1:: with SMTP id 59mr1047039pjz.156.1601293475393; Mon, 28 Sep 2020 04:44:35 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w19sm1468866pfq.60.2020.09.28.04.44.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2020 04:44:34 -0700 (PDT) From: Muneendra To: linux-scsi@vger.kernel.org, hare@suse.de Cc: jsmart2021@gmail.com, emilne@redhat.com, mkumar@redhat.com, Muneendra Subject: [PATCH v2 2/8] scsi: Added a new error code in scsi.h Date: Mon, 28 Sep 2020 10:20:51 +0530 Message-Id: <1601268657-940-3-git-send-email-muneendra.kumar@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1601268657-940-1-git-send-email-muneendra.kumar@broadcom.com> References: <1601268657-940-1-git-send-email-muneendra.kumar@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Added a new error code DID_TRANSPORT_MARGINAL to handle marginal errors in scsi.h Signed-off-by: Muneendra --- v2: New patch --- include/scsi/scsi.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h index 5339baadc082..5b287ad8b727 100644 --- a/include/scsi/scsi.h +++ b/include/scsi/scsi.h @@ -159,6 +159,7 @@ static inline int scsi_is_wlun(u64 lun) * paths might yield different results */ #define DID_ALLOC_FAILURE 0x12 /* Space allocation on the device failed */ #define DID_MEDIUM_ERROR 0x13 /* Medium error */ +#define DID_TRANSPORT_MARGINAL 0x14 /* Transport marginal errors */ #define DRIVER_OK 0x00 /* Driver status */ /*