Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp258084pxb; Mon, 8 Feb 2021 22:33:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJz14emPqpFi/X1ihIpJAr3E4fPucdzoxYRLYoIYZDA13IUekD1NbRzKFo1UqoH0tdIQK7pE X-Received: by 2002:a05:6402:206f:: with SMTP id bd15mr3019757edb.342.1612852399167; Mon, 08 Feb 2021 22:33:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612852399; cv=none; d=google.com; s=arc-20160816; b=fxDj8dTnUn/+4JcMQOZ6K9J3qDzxAmhCgkYh2mH8OcAsbH0n4SxW/66HZ8E9YrxOvv 1wLLQxeJ66X6TBSkMdkq1xiY/Srdd/1tQiV9L4yZ7ryOM7eXj8Fxtp/IMxH3DmAQ5TVl /UWRTK8v+zg7fk6pqadXzJvrpuqJaGFrowe4LRLmcrrhmVHcbPDvE6Q+kNl0oo+89pnH C7pZprGF+MOZKFNdVAV2vJauZTo5NRDsUljt4SYJu4N37KwmFe2LDxgeJ9gKAnx22F1o ybRlAEj0GbIYXhOmntSwJ9M4yIMDC1gQhBVyrKuphRW4XAtHM++lJJX/nzuCk1NsW92/ 7juw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:references:in-reply-to:message-id :date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=GxIWvD4eqr8YLRPOwff8k2cFsDX6Q4l9v6tkvGG6CaA=; b=u++uKACLaZ4nD0BRXpuePCcRF6q3v4zdyzBqxNLSdxGxecqBCCjydloBRVvSB6Chf5 ct39lB8g6baAuCXiFaskDJszxHu0qnHteb3jX7zs3vXVTDDa3goj9iRPY/k42bziXx18 EfTZlhYaMiqDctVj8R/xDB2AUG+lHIfbilF5stuBmaP5lTsD1jyi4FH/ungtbdMKWdLY mRcpf5wUHkvVqU7sM9swqLRMJq5FFPqUKQjcOh/gAhkhd/hRTTHbqILOIfwn4o+rsLbc w07/l3nluibq0cd+qsoXYMgqoHWnUdsi5Ub5sUSsnb1kiZZttikQbU4JhL8UXIg9uzOV xRMQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f23si12876118edw.418.2021.02.08.22.32.56; Mon, 08 Feb 2021 22:33:19 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230163AbhBIGcT (ORCPT + 99 others); Tue, 9 Feb 2021 01:32:19 -0500 Received: from mga07.intel.com ([134.134.136.100]:37175 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbhBIGZY (ORCPT ); Tue, 9 Feb 2021 01:25:24 -0500 IronPort-SDR: MBI6W8AgSej/AZ9ffwTCKcLo8BHMGPOrH90qRd5mHp6pJZc8aKMOAHnPgSC7G3YPeh1ZoCyi/Q 5D8rggeRENKQ== X-IronPort-AV: E=McAfee;i="6000,8403,9889"; a="245904366" X-IronPort-AV: E=Sophos;i="5.81,164,1610438400"; d="scan'208";a="245904366" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2021 22:24:44 -0800 IronPort-SDR: O4F4OmzKXgvycv2r781oHsiJhDKsT7SuUUYawavI1rK3amF72xk6JRrjpfUDSSgyDEZUL0JAb3 e0bzgfP6qvZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,164,1610438400"; d="scan'208";a="398681952" Received: from ahunter-desktop.fi.intel.com ([10.237.72.149]) by orsmga007.jf.intel.com with ESMTP; 08 Feb 2021 22:24:41 -0800 From: Adrian Hunter To: "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Alim Akhtar , Avri Altman , Bean Huo , Can Guo , Stanley Chu Subject: [PATCH V2 2/4] scsi: ufs: Add exception event definitions Date: Tue, 9 Feb 2021 08:24:35 +0200 Message-Id: <20210209062437.6954-3-adrian.hunter@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210209062437.6954-1-adrian.hunter@intel.com> References: <20210209062437.6954-1-adrian.hunter@intel.com> Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For readability and completeness, add exception event definitions. Signed-off-by: Adrian Hunter Reviewed-by: Bean Huo --- drivers/scsi/ufs/ufs.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index bf1897a72532..cb80b9670bfe 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -348,8 +348,14 @@ enum power_desc_param_offset { /* Exception event mask values */ enum { - MASK_EE_STATUS = 0xFFFF, - MASK_EE_URGENT_BKOPS = (1 << 2), + MASK_EE_STATUS = 0xFFFF, + MASK_EE_DYNCAP_EVENT = BIT(0), + MASK_EE_SYSPOOL_EVENT = BIT(1), + MASK_EE_URGENT_BKOPS = BIT(2), + MASK_EE_TOO_HIGH_TEMP = BIT(3), + MASK_EE_TOO_LOW_TEMP = BIT(4), + MASK_EE_WRITEBOOSTER_EVENT = BIT(5), + MASK_EE_PERFORMANCE_THROTTLING = BIT(6), }; /* Background operation status */ -- 2.17.1