From patchwork Thu Nov 24 04:58:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 83787 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp3009725qge; Wed, 23 Nov 2016 20:59:47 -0800 (PST) X-Received: by 10.98.208.70 with SMTP id p67mr514488pfg.15.1479963587575; Wed, 23 Nov 2016 20:59:47 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g68si37460780pfe.278.2016.11.23.20.59.47; Wed, 23 Nov 2016 20:59:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755253AbcKXE7q (ORCPT + 1 other); Wed, 23 Nov 2016 23:59:46 -0500 Received: from mail-pg0-f46.google.com ([74.125.83.46]:36233 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755157AbcKXE7q (ORCPT ); Wed, 23 Nov 2016 23:59:46 -0500 Received: by mail-pg0-f46.google.com with SMTP id f188so13937749pgc.3 for ; Wed, 23 Nov 2016 20:59:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=uqOVtTVpbBE+ynMgt/VqzjkUrBB43sos/ilQ1RSCOe4=; b=SUuyrjnkWyUP091fgylPX+hJepCJWGO7hlQD2OS6hF5bjYfyoBtH6F3bUnL+ZZEl6Q MYJOOZeyrsVoDfUdVioEI5rA7lRtgu5hwxqzVeHlSyanBLJKOktKJHnwDn1IeELrI5ki utuuXJNR7JXxjwuYUtOE935VfwghqX0dDyYoA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uqOVtTVpbBE+ynMgt/VqzjkUrBB43sos/ilQ1RSCOe4=; b=SHY53ZSD52TeHa3mWLsHn1xCHTnXqTwALrHzCBnm2/8meS0cMxv+Mg47IuPpquxPPX sqFLn5CyLXRz/v4NkLN44j0ZyODUjpv94O5sKkkQzNOoT8D2elAeCmU7onal3SqIoLHY M14XcUCrH31H/O13yhMWv65muPf6gqP0zgibVfibwU0ZKweu4QApeazDP+TdQVQjyEJ6 CEFeDGX3qevmZFw7L/opF1Rbimu0YsJsqAURZzsbKHcXj1Fmy2EYck4OGdXynbloCMN7 uF3xUJjXf0LKJ1IyTl2H2gLp2YCfS8g3J5B3aSmG1zynaXVRBNnnxjVRcos94PC2TSny V+7Q== X-Gm-Message-State: AKaTC03vBPteIHz7OrhbyNOiCP4oMmUq2m0zopOu3S6u3bbvKZgRTViM2H7DVDCvENgUFDFb X-Received: by 10.84.133.36 with SMTP id 33mr1300015plf.6.1479963556003; Wed, 23 Nov 2016 20:59:16 -0800 (PST) Received: from localhost.localdomain ([104.237.91.152]) by smtp.gmail.com with ESMTPSA id a66sm56285508pfa.64.2016.11.23.20.59.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 20:59:15 -0800 (PST) From: Zhangfei Gao To: Subhash Jadavani , "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Santosh Y , Zhangfei Gao Subject: [PATCH] ufs: Add missing UFS_MASK macro definition Date: Thu, 24 Nov 2016 12:58:51 +0800 Message-Id: <1479963531-6458-1-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Santosh Y Reported-by: Venkatraman S Reviewed-by: Vinayak Holikatti Signed-off-by: Santosh Y Signed-off-by: Zhangfei Gao --- Find the original patch from http://www.spinics.net/lists/linux-scsi/msg58634.html drivers/scsi/ufs/ufshci.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Subhash Jadavani diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h index 9599741..bbd8df9 100644 --- a/drivers/scsi/ufs/ufshci.h +++ b/drivers/scsi/ufs/ufshci.h @@ -83,6 +83,8 @@ enum { MASK_UIC_DME_TEST_MODE_SUPPORT = 0x04000000, }; +#define UFS_MASK(mask, offset) ((mask) << (offset)) + /* UFS Version 08h */ #define MINOR_VERSION_NUM_MASK UFS_MASK(0xFFFF, 0) #define MAJOR_VERSION_NUM_MASK UFS_MASK(0xFFFF, 16)