Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1020659ybl; Fri, 10 Jan 2020 10:37:47 -0800 (PST) X-Google-Smtp-Source: APXvYqyHRgJC6BV9HdINIVK3Owro17JzYAA7zljPoWgiWNqXLqvnrg9iebdcbewdEnDEZ2QWaalD X-Received: by 2002:aca:490e:: with SMTP id w14mr3278120oia.67.1578681467295; Fri, 10 Jan 2020 10:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578681467; cv=none; d=google.com; s=arc-20160816; b=eZhAG97Dqhwht+gcdug4ccfl6Lgv9Y/EAGJuJZlaNgMQKytQ1cCI5F9TMvsGhFdBFC amDFL0uLedw9PVCqUcl+yHugVTHm0lF1tOH6nLYx9Wc2xiOS3so2dp7gkNlKjp+GcQww 0P7M+8kq9VlIJzjJew8XGZZAEaX5MCbkF4QUnTMYpC1KwtxBckKDJlYns3TWv1ZAtQkc 2r4Zxs9teiI/RcK20ghVp93fduylFFhDoCvCK4dHzoO+pR+bfNBrm4VdwfSinwjupxEJ e7Rif2I2eWIyiHRDqK+ftNS8WRuNHUgAFZAknQ6+1V1bk+fwAVbSJKKvloWoMfUrtlmx 8GlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=pdOwgb77hw5W7/fMrT3rXjdCdL0Strxze8eiojAXtTg=; b=J4Vv5COGQgIup8XUt/zJo/zCDpPjKjpiGUuec5Jm3J0hx0QxZFFak/8Y1o28emFNcZ IMjmjvytMgKM8mwvAYK+BkYWoXuZHPeMlL4T/pFsGi18uPi/+gODNLjTZ8swmHJKXLr1 gK53AXnHMCqvzxkt63byPy+jwd3KWSbvbVsPnqhh2jdoHYXSJY60KrApsQdh+nnhcEKH Cp6NGkTXCuLGFcr9oCrEpf4rh9vBDb/3Tda+YOMysFrqQ+q0+LcEVizhkCFOQp1dJtjC HHCMfOO6TCgR4Ut9kpv3HNPDRy+8dBGC6BvrdfE0f0RDMoNepefFnuzzmcJQ8olACgQw Gcmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fhEaXCE9; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si1785871otn.117.2020.01.10.10.37.36; Fri, 10 Jan 2020 10:37:47 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fhEaXCE9; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728668AbgAJSgn (ORCPT + 99 others); Fri, 10 Jan 2020 13:36:43 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34440 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728496AbgAJSgl (ORCPT ); Fri, 10 Jan 2020 13:36:41 -0500 Received: by mail-wr1-f68.google.com with SMTP id t2so2777865wrr.1; Fri, 10 Jan 2020 10:36:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pdOwgb77hw5W7/fMrT3rXjdCdL0Strxze8eiojAXtTg=; b=fhEaXCE9ZImAaW0znUttr7EmxkKXyMJ8aAa6ctKxbgzIrBIi+Y/o8N8+RbXam6/HXZ Cw0KxpCHBgvU49O8HPlteulKyy6AXoibYu+wXLtuJEIncQmX7622CLdZtAw0UCl/3iHS 9nilkbMvefeUlkb7ZhZLIgIKBhzhDnG+7SqFYrEMxDbtg5csU7XuV2mofg2JHyT+0cFI X/d4kDaExpQEst2ZdmG0kxpEYJ/x7AS5ZLGxnsoE1uK4jNIlEDqZBAVh443uZCisRIEG TLqw0M07L5rQ6T6XGO4JRpjJ8ZwTwtIBEVm6ag8ENdg2A7HaY7nO/h16JLSjmaLyESjw ffHw== 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=pdOwgb77hw5W7/fMrT3rXjdCdL0Strxze8eiojAXtTg=; b=bNaKr+T74I5fYzaXIDS7GuyGkUqM3CVHA1I1C/Gd9GtlLVUrAX4gV2yolvwiAREEkp cuvm5PUxSHFNVGR7j1+55c1nIMCAl1fHuEny4yxYprkkS//K19zdl88duePR7vOhD94q +Kmu+i4TVbcW6me0rwjY2U5m6iZ+M+9sJK6R+g8xgE3wt3b9URUjzM2Cq8pTZ4YnEqhM BIoNj3KuMe/lZMniTmiVxZnWJpjxv92hkJle/ckaK9U0rIyobKXuc0FaTWb5Z5/fmbDz Gu2ecsGgU/vEc08BOkpzt7eZSBu8ggPqXcA6LN9wMikVajmgnjfVawx/Q97W+HifoSLb TVOw== X-Gm-Message-State: APjAAAUJlXgfHFvlwZiSpo8j+fa9F/SiurNA2O5SQ5mhodZ3kacD6s3V b6WlgIEzTeWaR34mckwMcIY= X-Received: by 2002:a5d:494f:: with SMTP id r15mr5038525wrs.143.1578681399816; Fri, 10 Jan 2020 10:36:39 -0800 (PST) Received: from localhost.localdomain (ip5f5bee3c.dynamic.kabel-deutschland.de. [95.91.238.60]) by smtp.gmail.com with ESMTPSA id x11sm3182825wre.68.2020.01.10.10.36.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2020 10:36:39 -0800 (PST) From: Bean Huo To: alim.akhtar@samsung.com, avri.altman@wdc.com, pedrom.sousa@synopsys.com, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, bvanassche@acm.org, tomas.winkler@intel.com, cang@codeaurora.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] scsi: ufs: add max_lu_supported in struct ufs_dev_info Date: Fri, 10 Jan 2020 19:36:04 +0100 Message-Id: <20200110183606.10102-2-huobean@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200110183606.10102-1-huobean@gmail.com> References: <20200110183606.10102-1-huobean@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bean Huo Add one new parameter max_lu_supported in struct ufs_dev_info, which will be used to express exactly how many general LUs being supported by UFS device. Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index c89f21698629..5ca7ea4f223e 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -530,6 +530,8 @@ struct ufs_dev_info { bool f_power_on_wp_en; /* Keeps information if any of the LU is power on write protected */ bool is_lu_power_on_wp; + /* Maximum number of general LU supported by the UFS device */ + u8 max_lu_supported; }; #define MAX_MODEL_LEN 16 -- 2.17.1