Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1050014ybl; Sat, 18 Jan 2020 17:31:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzUe3GifyKlp489m9n3bnykps2ZT/2nyaJfjljmtswug1BHaVxg73rF8CQfbf0g9eZk4cef X-Received: by 2002:aca:c551:: with SMTP id v78mr8692421oif.161.1579397512719; Sat, 18 Jan 2020 17:31:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579397512; cv=none; d=google.com; s=arc-20160816; b=QlS7YBXnUKqZ40zSqMyaTm8Dmm8mipvO6rIP+wChsmzDF3FLRgNueZGE3/dXmkTMF9 EON3HT1XSt1Z73yLUzVQ4JPA5XKLX/Vk7mSLxh1Gwv7OXsRlvIEkDFF//QRK0nC8knq2 GbQ0oQSp9fMNl6yNQffdHYihqYp9ysmbyB+uM0YV3X9wCJZSwTKrTcpUCorqmRowwi3U 4A+Zby5JqF0hPcBkGSB6uvrJCdjKbrcjNSz/72ty0gX2xgIUw+m3qjEp9jWjdLNWTpY9 bv3uBEyTvGEm9n9C8udmsngjPJp8xL+sr7ZOzLJ5ruF8HpEE5PMOmXYf+hgCr8hKy0hy AVaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EKad1adTTU4LVcn/Blwx2NeGsTOd9VlC38Ni39+5y5g=; b=gfuVGG6u+MCK+aUhciuho5+eJppiTT9uPqT1c6mV04EZtKeoa1aIsZGeEvGfuB7Uox iyzVWKVRP9rnjDvkZmrnnN+sd25y6Z+JkDH2O6I3yo3ceXb8S0N0fE88/JvSjI9OqNbP YyF0gH73SwzMLCCCAdfWUPThwkPjg7dD0CO8x1T65YBZOrBcV1sRvaZ9A70FPScDuFQa OCmVLQPCcxC9y55++I9wMbEg+Oau5UrVlU8oLK3EuDCG01G8zDDFg1/78z0WAQTS1PhU QgvbID+oywpMYBEZ1yeM6yo7keYOlZfXOD4Coiuagw1noHhlY+APf4Y/h70S5A74VGJo w56w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VoYQA00n; 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 q6si18241478oth.26.2020.01.18.17.31.40; Sat, 18 Jan 2020 17:31:52 -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=VoYQA00n; 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 S1727162AbgASBar (ORCPT + 99 others); Sat, 18 Jan 2020 20:30:47 -0500 Received: from mail-vk1-f194.google.com ([209.85.221.194]:33696 "EHLO mail-vk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbgASBaq (ORCPT ); Sat, 18 Jan 2020 20:30:46 -0500 Received: by mail-vk1-f194.google.com with SMTP id i78so7679139vke.0; Sat, 18 Jan 2020 17:30:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EKad1adTTU4LVcn/Blwx2NeGsTOd9VlC38Ni39+5y5g=; b=VoYQA00nMU6iafBZElAvTk7u4kdsK3nkqBTFpeEWQA3G0CRzU/Fo50Z4s44+xQw/6Q bY/vtKy/ThWinD+crPf2g8zipZ0I28j7P6189VxAFaRa5u73KaLT4tH0BHMpyUyemwXb bEkt6Cg1U9pCEmKNlMBZnZBY8dbsOL3Zmy0FehfE95esgmk9D044ZZKDZkXUDqWaEWlo qzS1AbEj2dr2QHxIT8h4Xqh39mN1FHjomVH0/FXGythuoaD779OpoF8xEVSJcI7rioe8 6t+nWL+PgJMyOYxH0crI51qUNQBgj/an3VQZBmnSQ3VdwTapy7bjc11L4gx15YXMU365 F4og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EKad1adTTU4LVcn/Blwx2NeGsTOd9VlC38Ni39+5y5g=; b=EfcgHK4m2r1iX9pt34ekiA3BAsEe+lLxWpiX/5Kfmqq04GgXouRv2NqyxICA/cdxco tMGaixQ+cHp5WfzmCSfjHW4Med15kRQXfAqkGYBF4lOITeDuzsVTqsq4QrPqZHDQ7eIr eMsBpixGv5Rr0MErrsAXBHdELhJEDZwWsli+7oM5D8GMMTyc9N/ut/U9lkuEfD9Z2tPw AqITqjj/v8Yphqg4CFotSXz+ULsCgRx5O6ZNSZ3S2pXhXdJKftuF+lcQ/UU3N8/iUrS0 T1DYjk6ZJeNTyIvOQf9MlIeGCDGmDq9mMg7+JW+J3RrD3L+SOelgA5rpNKiQEeMBz7hJ KLYg== X-Gm-Message-State: APjAAAWJ8iSPaNvmWFNxyF6nsS/+JDZx6IatlFmgPzJ732K9nmv4LOA+ U277YzHdwiwhl7S94WAt+BeclWJlg2CXheLeKCM= X-Received: by 2002:a1f:4541:: with SMTP id s62mr13717538vka.59.1579397445597; Sat, 18 Jan 2020 17:30:45 -0800 (PST) MIME-Version: 1.0 References: <20200119001327.29155-1-huobean@gmail.com> <20200119001327.29155-2-huobean@gmail.com> In-Reply-To: <20200119001327.29155-2-huobean@gmail.com> From: Alim Akhtar Date: Sun, 19 Jan 2020 07:00:09 +0530 Message-ID: Subject: Re: [PATCH v3 1/8] scsi: ufs: Fix ufshcd_probe_hba() reture value in case ufshcd_scsi_add_wlus() fails To: Bean Huo Cc: Alim Akhtar , Avri Altman , asutoshd@codeaurora.org, "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , "Bean Huo (beanhuo)" , Bart Van Assche , Tomas Winkler , Can Guo , linux-scsi@vger.kernel.org, open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bean On Sun, Jan 19, 2020 at 5:44 AM Bean Huo wrote: > > From: Bean Huo > > A non-zero error value likely being returned by ufshcd_scsi_add_wlus() > in case of failure of adding the WLs, but ufshcd_probe_hba() doesn't > use this value, and doesn't report this failure to upper caller. > This patch is to fix this issue. > > Fixes: 2a8fa600445c ("ufs: manually add well known logical units") > Reviewed-by: Asutosh Das > Signed-off-by: Bean Huo > --- Signed-off-by: Alim Akhtar > drivers/scsi/ufs/ufshcd.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > index bea036ab189a..9a9085a7bcc5 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -7032,7 +7032,8 @@ static int ufshcd_probe_hba(struct ufs_hba *hba) > ufshcd_init_icc_levels(hba); > > /* Add required well known logical units to scsi mid layer */ > - if (ufshcd_scsi_add_wlus(hba)) > + ret = ufshcd_scsi_add_wlus(hba); > + if (ret) > goto out; > > /* Initialize devfreq after UFS device is detected */ > -- > 2.17.1 > -- Regards, Alim