Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3143480pxb; Tue, 19 Jan 2021 15:12:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxm+f5MkCwBi2/kQ4LrGF9iw7PTVLlYpulugGo0Iy1NUdbtclWc2vMdiHm5D/Vt/i9/axjo X-Received: by 2002:aa7:d148:: with SMTP id r8mr5154362edo.127.1611097937725; Tue, 19 Jan 2021 15:12:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611097937; cv=none; d=google.com; s=arc-20160816; b=yMMSK5MCASj7LQ6i3YRGAgMssN1zYzc1pPs9595+3Be8GVE5QrnkdX9Cr1eRLK93VK abY/C/vW8JsMwK0I+GuPUZOleF82AIE+j71V8yQn3JBeYkdfUbNm5pvXKkC8yrB6/PxI W3j+bt13nfPYxNnQAEOs8DQ5hUtF+Q7WnPUXYVjgjyGoaqENKrb7bWPLkcs07jfzqfkp SUqyMgOEV2545MljSBdzhEZ79MfFFiCEr2Ikfdv30Fkhcw+WJ1WIHSwdnJb2BgsBkKgX L/pWYBYBENoUTf78cZb9rcs8Os/NWMHvtnQXovNK6RGpmgR2SwCib2Q7YGrWMnW0lU9U 6eCg== 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=OYqbWKM0QlExHsyXgAYY5N0Uqh5cX3F3BdaBarv6rzo=; b=ZbhbuVo1s3061WqAtx+qTFtXZookGdSAs6OADZvjPjrNASnzrJizZcc10VEQQ8HF6k a6+StMpw0NEoShqwoAls57CKWHYLpWmpE4wFTvkEPA7oTnWOMXNB9TJx43fxGYAk7UOI zn1ZOPJ3XBDpQHzimAbHM6vpO2ioOP8/Z76ZC3eL9Cr+yNd08j3FaBqQM2mcEIjb0PmW DnHLg01+U8S5ybi2Iht/s1rGnjSm3cAoAEb6CH9VTPWK3sad7ydmoL2mLUDrxykaMUyV x5p1MiNWGL1uWxWi9MiFu24+Fx/x4kPHW41RMZ2YAOVOp97AxsjUlmvmad0a3rPFu8+E bUxg== 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 v5si132604edc.346.2021.01.19.15.11.43; Tue, 19 Jan 2021 15:12:17 -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 S1728325AbhASXIe (ORCPT + 99 others); Tue, 19 Jan 2021 18:08:34 -0500 Received: from mga17.intel.com ([192.55.52.151]:24148 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395362AbhASORN (ORCPT ); Tue, 19 Jan 2021 09:17:13 -0500 IronPort-SDR: ixBU8Yf13GVe5pq91mK1rwGw2J6AaxviXIb9RS1IW5HHGnu8d8t+NbvAglR6gIBAnu6VeE7IAy VsIV4wJpzwcQ== X-IronPort-AV: E=McAfee;i="6000,8403,9868"; a="158704822" X-IronPort-AV: E=Sophos;i="5.79,359,1602572400"; d="scan'208";a="158704822" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2021 06:15:46 -0800 IronPort-SDR: kHn70fCHRz210oI0ff5AXSFSudSmV7LjJ71Y2RL6bvS1dboBfdCV4pAqCitKbcw9ObNvLjIwzN O+2IfuUfPskw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,359,1602572400"; d="scan'208";a="347189938" Received: from ahunter-desktop.fi.intel.com ([10.237.72.149]) by fmsmga007.fm.intel.com with ESMTP; 19 Jan 2021 06:15:44 -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 2/4] scsi: ufs: Add exception event definitions Date: Tue, 19 Jan 2021 16:15:40 +0200 Message-Id: <20210119141542.3808-3-adrian.hunter@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210119141542.3808-1-adrian.hunter@intel.com> References: <20210119141542.3808-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 --- 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 09c7cc8a678d..5d4a2740a159 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