Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1052281ybl; Sat, 18 Jan 2020 17:35:22 -0800 (PST) X-Google-Smtp-Source: APXvYqw6oIyJvGehasIObbeKe61SE/PshtAaHBLHUufhO7ceACbbDOB9u8fUgET65iQT/6roUPVr X-Received: by 2002:a9d:3e16:: with SMTP id a22mr12040870otd.259.1579397721991; Sat, 18 Jan 2020 17:35:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579397721; cv=none; d=google.com; s=arc-20160816; b=Ri56eEquWOKzk0tZ3IOoSxZGivOmveJjVyNIerwUmYGev6iJ0G0k1mpjdmKdKYsXk0 kMOQJJRR9VDdLJXPJbp0nK7ZYOYPwACr3bZMlFa2nWk75w8zLCVw0E+td/bDVrvIBXDd Yq1qQw3TFgs84dzd/5ygfUb7Zu1Klwp8ROiLiiv6kP2/B47g9Q4S+Zent0AZ8sPcLuOC vGsxA6y65SH6aJ7MAbw58bytEfzqdydFpzpHixlkRGdHwCC5oE/EdNOBUZbc3mX4jTd4 cKZwzBIz0kU2dMMRD5hbU8kvfgQ8xpxUQJuGnhxSgiaZW5J1/Om7/xzN1AmQ+SQQY+gk OdSw== 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=YOy40kYlSRJclesJG6H5aRLwvZhYiklMAWqruJZ0en4=; b=uPl9CUHZFgCYCxFR0zwlJBAkju2tzHY6sZRHEQLtGu8BsSTRaovT3fe6b4d1Ih1EAx PRbvt1bcEumNccTivZehnQ+tJt3JK5nAhwWnGn79gZprlxqBqeXW3E5InwTgRVLkjzlW hUAgyYwbThxqS9pxE2axwQzZWFqUjCsuOITunxQV0wMT98BUSNl64Ib3jS0WhiDEkamH 3Jbu/uavBn8cweEpcmrlaaPhDX2hPbLiHeZcdQELzeR/bGnlzIBxZH8HDyv3iaDYQ8mE asJ2T2UD8Er0JXeV4xXgG8MKbHe8LlFy0yJd2MbOoQ+4Sua81vVbnvoyEE/dG5ttoyX8 lhrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BwS97FSA; 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 u16si18936299otg.325.2020.01.18.17.35.09; Sat, 18 Jan 2020 17:35:21 -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=BwS97FSA; 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 S1728600AbgASBeT (ORCPT + 99 others); Sat, 18 Jan 2020 20:34:19 -0500 Received: from mail-vk1-f193.google.com ([209.85.221.193]:39519 "EHLO mail-vk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbgASBeS (ORCPT ); Sat, 18 Jan 2020 20:34:18 -0500 Received: by mail-vk1-f193.google.com with SMTP id t129so7683319vkg.6; Sat, 18 Jan 2020 17:34:17 -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=YOy40kYlSRJclesJG6H5aRLwvZhYiklMAWqruJZ0en4=; b=BwS97FSAKRnaHtKWH9takdEk63YQtw6ltsEzbj6h5508/c28yy8HGu8FjnziuzHRq4 WoH6KurFyqzS88HsDAGvnf9W6Gy7j8heab/32yfXcZFtIEBMLb3FfC9VhmbVzbaJwctK 9aBrcHXXa1GDYKybKgAXknUGIiqFYKgAl/gz1GHwkD4pFHlMZ6CrTkxFknECsaXb8YbC 2sEXNY/7Kiw7V84AyW53qe+IleZbwaC2T7bOJeGNzv0IFxyIk8JHRyj4BUG/T8L0N+LD vVVk42LJSQoXkqoE+8jBRYffNUEn+udihRwQ8ctZqAstBdWwgJV4HpdeGYTZQssUYPDQ Lcog== 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=YOy40kYlSRJclesJG6H5aRLwvZhYiklMAWqruJZ0en4=; b=jrHKQrfpopLDFI31jIVZU0+yEp2bq6C5OJFTogKoUWhqCUA8D3c8YBYwfpr3aMFQNq FOFQaz/SLJ5KVAefu2IxDliZtoM3qbR6n5INySboeYbMqKhwGNGyKr53LU8qsgYBC8Ft BHLDmYnGchjmmimyt/0Gu8l4A51GNYKo6fXRAh+oGLeF/ysoRLxSr0mIlA2cxD08r6e1 pl8xCRdrS26iTzwl2kiJz2WNa1Y0LEZcK7Se2XmxH9+2CsVz+UXxwzx6My2b0Q4uMSLa jsQ00q9W/3fgQBkXfR1p/hECxYVeZenPZeSxFLehPAIIkabLKplM8IX21JWw5QvguhJk pNmA== X-Gm-Message-State: APjAAAXMYY7lfMMEEI0qYocD8S4TEIF6hOoDvFtLoLdTBgeVcqnDf222 TfM8A4F6sjypTktBBaJ7mp4gn33k4SWxTbfU1X9EGpO/ X-Received: by 2002:a1f:252:: with SMTP id 79mr28685604vkc.96.1579397657185; Sat, 18 Jan 2020 17:34:17 -0800 (PST) MIME-Version: 1.0 References: <20200119001327.29155-1-huobean@gmail.com> <20200119001327.29155-2-huobean@gmail.com> In-Reply-To: From: Alim Akhtar Date: Sun, 19 Jan 2020 07:03:41 +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 7:00 AM Alim Akhtar wrote: > > 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 > Sorry for noise, its not signed-off, please have my Reviewed-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 -- Regards, Alim