Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4271580ybl; Mon, 13 Jan 2020 10:44:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxTuXlkC/pbT/QLxWegHp/7RCx8lOBkBEh1o8mlb/dXvzHcctw9NeUBmULzvlJ2wqGfana6 X-Received: by 2002:aca:f5c1:: with SMTP id t184mr14185670oih.23.1578941095965; Mon, 13 Jan 2020 10:44:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578941095; cv=none; d=google.com; s=arc-20160816; b=MPw45UiPMTFf3Y7LoIxM3iyv4vt0gKrf0kUhmeDhYpX+qE1k+3mksOcvc+fuPhiRZY 4MAvYq/BAlrcl2yzAhshKD1iuqiZ0M+JYztwCHRb1zCZDjEhoiiUGTU+urIFs4rfzJEw V1USJECR8Ix6DzWDzgamo/dFJmOHq+err+xq7vic3gRu/mJkRyJGUkRsJ/EuYH7DYpx9 j40rv2T+eFeJ5yXCiY6MYAliWQQLsIAi+pqFGwLrSk+YUIsKEs/PrVueorjCJ4/JZ6XP LXi+lO6pKLtqr3ELUjP96eMqPTU0MWyh0owzcQZt6qg+QXrI83HjpGiXKsplUt6lf5Sr avvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=n++fX84s76rSeZguThu1VU/fYy13LRbB/w5RZWTUErQ=; b=vgskzFUaPpCCtdJeSMG1xOLBRPIk0FhsvMGQ7dd0vJjiOJ+f5DXgPffOaQzIPzzaU9 +EJL9NV3qD9jEiKFyAgRzD+xHBemjleYj8aUlksZ+GFE7Fl1Loe72iRpjb5EaMIa4u4f u+bFDUdwwfBkm8SwoL+UnI0VmIfF9UpK8wwLNiegzw3GWWryM4bo98k8aMgC1qqeeUPI Nwfvp1XD8ovoRykCuPgyP+u2+NOpZbGGLBiSRCLUlFjlzqON6eDvHKkM/tw1ej/RaN2Q 2IVZT2jpZ1mJlbjLkFX4dBNLpryx3koeNyiztjXwnHSAHuvNFi8T6l4X8WHxg3xmed4+ WhUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=dRQxNzgo; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2si6899870oti.303.2020.01.13.10.44.44; Mon, 13 Jan 2020 10:44:55 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=dRQxNzgo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728808AbgAMSnr (ORCPT + 99 others); Mon, 13 Jan 2020 13:43:47 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:45032 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727726AbgAMSnp (ORCPT ); Mon, 13 Jan 2020 13:43:45 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1578941024; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=n++fX84s76rSeZguThu1VU/fYy13LRbB/w5RZWTUErQ=; b=dRQxNzgovuVLrk9Fa6O9mMLlVvE8/Mv3yAIFXUlZSrb47xVTryOCIsxValgMnoftlKbo2qEy igyEZ+OwRoxmYthSqcZH1eZhkOFA9DB8e8/HikEflBk8tX5A/3kOKAA1l5PW+V0b7ZnIob1k jPbdZpfTjp/x19Jk9iVaXzJdISw= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e1cba5d.7f6eb1a466c0-smtp-out-n01; Mon, 13 Jan 2020 18:43:41 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id EB415C447A6; Mon, 13 Jan 2020 18:43:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: asutoshd) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1868EC43383; Mon, 13 Jan 2020 18:43:40 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 13 Jan 2020 10:43:40 -0800 From: asutoshd@codeaurora.org To: Bean Huo Cc: 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, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi-owner@vger.kernel.org Subject: Re: [PATCH 1/3] scsi: ufs: add max_lu_supported in struct ufs_dev_info In-Reply-To: <20200110183606.10102-2-huobean@gmail.com> References: <20200110183606.10102-1-huobean@gmail.com> <20200110183606.10102-2-huobean@gmail.com> Message-ID: <268bea279e84715f2a3d39ab1edb406d@codeaurora.org> X-Sender: asutoshd@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-01-10 10:36, Bean Huo wrote: > 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 Looks good to me. Reviewed-by: Asutosh Das