Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1020649ybl; Fri, 10 Jan 2020 10:37:46 -0800 (PST) X-Google-Smtp-Source: APXvYqw/hgw9qhPhLZ9VspCFl+wYGA7vFS8XirlVrTJJQC5zK1Zl1QX/AVAby76ks60JduHvBE0T X-Received: by 2002:a9d:d06:: with SMTP id 6mr3812300oti.176.1578681466633; Fri, 10 Jan 2020 10:37:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578681466; cv=none; d=google.com; s=arc-20160816; b=gklVSDoGfeCWS815ahColjAWe5ygQIBER/E64tm2oqfchJ4O3IYQcFHLS35TO79wRE 94u2+8Av9MJPGmadrvMtKUi3JAZXl0WkJsESLkuCb7+liai71Uf8NR8hWtTu9FvMTOhw VNy+Yenn4cPS6X/TnHi3Asi0Bss1nEL/xkBLfEIYzCvbBZaP85t6Ox+BGkXbPzYmmnYW IK9LPkcqrEVMqIvM7Q0+S33vFloCsiKlGZ9qgtEaD+sb9uVTEfrJXySxy6kI/etwajAV krsKKc69JwjebSbrTzH9c7QFEvNMuLu839WIYdNUbbcVcnRYD1udQJlKUj7Q3I4r0H+D GXjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=2Yc37HGhbVglWg9H9TpyhPlGXyZBP+fZVz5l0vOH44g=; b=mBtmwblCrc+OnKju/aK0I/Q4QQwoy2/K6oeLoMcUfWcgbh/+AZ/DSXF2R0u4NHIzdf /YSS3WSmzJeij6r5B7tq8E7V1GheOu0tQOkIKwiOEMCf011sndCiw4pTHmGIcCFb1TkK DRqxrsog62CrDE4so+cD8Cbnu7qESbTi0C7/eKR55Ix3vu8IyspIdauvqnQ8KSA+4IbW RA3b/jKrQHSlvSYq1b2hiytN69zVdefQY3mOlVYCYH7JbdLm65kNgm0BivHc9b880Qup P/J7QSDnhyZI5l82is/1Jb1QvA7+c8l8aj0UtyPVSccAJDGLA6T0TeFI2PYmnFa0D9cW Adcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SVsPQ5Uj; 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 10si1410577ois.76.2020.01.10.10.37.35; Fri, 10 Jan 2020 10:37:46 -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=SVsPQ5Uj; 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 S1728633AbgAJSgk (ORCPT + 99 others); Fri, 10 Jan 2020 13:36:40 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39051 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728400AbgAJSgk (ORCPT ); Fri, 10 Jan 2020 13:36:40 -0500 Received: by mail-wm1-f66.google.com with SMTP id 20so2998195wmj.4; Fri, 10 Jan 2020 10:36:39 -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; bh=2Yc37HGhbVglWg9H9TpyhPlGXyZBP+fZVz5l0vOH44g=; b=SVsPQ5UjMsyR76PLPc/tBgMUJDvso/g/fjRT+1oSH4L4pgZ1yt03xJ/sqNyB/ksxKG HlgKgswZHJWRqcwYP1hJGdI+waecOkAAayPF2BBkUlaR4yytijqlr/YPeV1q2zdgfR9n 0f/BzG0Mu9BpXl2f0fXBPy9Z88U+oTC6b8c2UkAijkVWZEsEKE/0i8sjg1lCgPD9O/Pp PFt5vhTxPFUfGnuQEvOF8vLIyGZUkLsIyn+aCctFSxCqa9CjLbHYWaa36EBS9UYLqDiP 8GOtTmnw6ta1oCc6B83qYRKB8Nj/b+JH8YhXcbFuERYx+N++ww6sHOLsg2PP21HuqEBQ G90w== 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; bh=2Yc37HGhbVglWg9H9TpyhPlGXyZBP+fZVz5l0vOH44g=; b=j/eoUZlEy88gaCuHkEBYzcb4RD062ILqiAkQQHT/t/cy9ZtoI5LPPOqgVzuUo0O/Az IS+UcgFRTj8L0MqI8mxUk3dmcqiZLXhJPCBKqEnpJ8mmjaANR4omhMp3rC0egXlXY7Ut Bcuod84ZaJbd2KGfEy6YTGBojpTSTwi00+QJ+7fy5LSfvqENNP+QGJtQt0en48HQHvOv bNdDSsCDAsmfvQhU5SYxHWuOjXAbV2oCvSKXKFlzrEd4FH2DnFhnO4eJAYWNmZDaYJsq D0qwp+9WQdV0QcrBMnXYylikzosVkPM9/3kME3UJ3UsS6kTfpylkyxe5kJVYQU/bZxex 7dsQ== X-Gm-Message-State: APjAAAX3JuAnCQ0wPfm0S783jBk8p7jEKDz5q03CKb7Fp7jb4AW8QsVi d929mjEdnX/aWGzKXXXWjAk= X-Received: by 2002:a1c:407:: with SMTP id 7mr5618354wme.29.1578681398505; Fri, 10 Jan 2020 10:36:38 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2020 10:36:37 -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, Bean Huo Subject: [PATCH v1 0/3] use UFS device indicated maximum LU number Date: Fri, 10 Jan 2020 19:36:03 +0100 Message-Id: <20200110183606.10102-1-huobean@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to Jedec standard UFS 3.0 and UFS 2.1 Spec, Maximum number of logical units supported by the UFS device is specified by parameter bMaxNumberLU in Geometry Descriptor. This series of patches is to delete macro definition UFS_UPIU_MAX_GENERAL_LUN, and switch to use indicated value in descriptor instead. Bean Huo (3): scsi: ufs: add max_lu_supported in struct ufs_dev_info scsi: ufs: initialize max_lu_supported while booting scsi: ufs: use UFS device indicated maximum LU number drivers/scsi/ufs/ufs-sysfs.c | 2 +- drivers/scsi/ufs/ufs.h | 14 +++++++--- drivers/scsi/ufs/ufshcd.c | 51 +++++++++++++++++++++++++++++++++--- 3 files changed, 60 insertions(+), 7 deletions(-) -- 2.17.1