Received: by 10.223.185.116 with SMTP id b49csp343519wrg; Thu, 22 Feb 2018 23:05:00 -0800 (PST) X-Google-Smtp-Source: AH8x225sNs4IQ60wX+MBxpQxrmRXVFOSrYiGSodjMYJF/r6+oPjzKZ5SMByO1RvjZKI0Zg03ts79 X-Received: by 2002:a17:902:b686:: with SMTP id c6-v6mr762083pls.339.1519369499980; Thu, 22 Feb 2018 23:04:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519369499; cv=none; d=google.com; s=arc-20160816; b=rZUJjWY7nP469kLYsYJu0WvEyLOAymYnUze1jNRtbBpKfhUe7QPB4SO1qzBUohPBbU qO/0AIhOXPSpUSSPBX4eNQzJXXIPR2nguRGrrPgV3WLINz3gCUdH983u4kf7q14ekryK WHxpIvpXFb2Zn6IZEDUULLpjoi45K20bliw/pDMNN3sKGbFhRV1GfWfVBUOBkKdpQ+pu JvA3kw1jj0CaPeL36Hf4BK4I/tO9u14LxkmyqnykbV4hbmXg5i89ZFWBWxcIoQKfaovx NRrpdE9tlPeReJi4antFCUAbfymMgSL1iQH2GdXOofXIsO4EnpdLCQpDFqdnvxeYijX5 L3EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=quvLy14vSSAudCKJDsRZtoUAko7Wyh1ybKaq94I6Lq8=; b=MEXfvm9DbyB/pyLd/g9+5XEbW73SM+1+NU5K+gZhgxi+z9H5pyQJXaHQcrvB6nwsOJ olk0sX5J1vXWW6zNlWDfCNB9LpDpR7VUxEdhwdOeSWOFrHuuOlf9YL5/PSuAB4VNguDv jz4SV62F0TuAfh/ZC2SxwdzbPrrs7UkfsLhcpC5Ictq7gyZXGghqKTMz5W9fPUM23lLy vsrGGkd2HOISbSKLiIaOxIYGvBknMPPrhhU4NUEpZFgPRJUVxyEt+LYlwYhuEUa3oKoJ V3iR7OFqrBDC1IgYdzWZIt+m5Pc3/GXEpiV7ZLxJGQiFtPr/yXYDR0otAcpoCl+eBbWh Bplg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JH2O5eCW; dkim=pass header.i=@codeaurora.org header.s=default header.b=MImTFDww; 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 91-v6si1330606ply.413.2018.02.22.23.04.45; Thu, 22 Feb 2018 23:04:59 -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=@codeaurora.org header.s=default header.b=JH2O5eCW; dkim=pass header.i=@codeaurora.org header.s=default header.b=MImTFDww; 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 S1751532AbeBWHDz (ORCPT + 99 others); Fri, 23 Feb 2018 02:03:55 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:53374 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432AbeBWHDy (ORCPT ); Fri, 23 Feb 2018 02:03:54 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id AAB9B607C6; Fri, 23 Feb 2018 07:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519369433; bh=PwY1G770J6D46L3r12lDhapiV+ZwRj5F8AOK7nktWGQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=JH2O5eCWGZGuOHPHQZAnpPB6uQLhleMKEYfFYLMlcRymtSn3INxB09LI3G+BoCgLg yWiDe8JRBmVI9R0NDu0hxHY2naWMn+GMosMtR/VP2FLpC7/IJPglFCMQ1yiEghl4fC r848ciQfmL7ZTJbeCvyd8PBeqPGVHJs18E3f24Hs= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.206.25.125] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: asutoshd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 469CC606DC; Fri, 23 Feb 2018 07:03:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519369432; bh=PwY1G770J6D46L3r12lDhapiV+ZwRj5F8AOK7nktWGQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=MImTFDwwaoTqgsBm28r5VttToFQXC/GtNHXvZ9VBBHEHYb+g+6gPx1fdKSWL9Qd8f PgLPsy9mF05Cmr5F3TxFJeMeVM9ZIMO2nYAnI9XzNXPzrCu+Qcc/0pQyUrDE4JKQc8 0nHxPPpm/Ehf/6HnwEJU+p8Mx8nt5aEV+UQWH8to= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 469CC606DC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=asutoshd@codeaurora.org Subject: Re: [PATCH 1/9] scsi: ufs: Allowing power mode change To: Kyuho Choi Cc: subhashj@codeaurora.org, cang@codeaurora.org, vivek.gautam@codeaurora.org, rnayak@codeaurora.org, vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, Yaniv Gardi , open list References: <70df05c82a8624987c76b16c65143f00a111c94d.1519120988.git.asutoshd@codeaurora.org> From: "Asutosh Das (asd)" Message-ID: <13563e4e-1b4d-8791-12ec-8fcb752f3b96@codeaurora.org> Date: Fri, 23 Feb 2018 12:33:46 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/23/2018 10:40 AM, Kyuho Choi wrote: > Hi Asutosh, > > I've simple question in below. > > On 2/21/18, Asutosh Das wrote: >> From: Yaniv Gardi >> >> Due to M-PHY issues, moving from HS to any other mode or gear or >> even Hibern8 causes some un-predicted behavior of the device. >> This patch fixes this issues. >> >> Signed-off-by: Yaniv Gardi >> Signed-off-by: Subhash Jadavani >> Signed-off-by: Can Guo >> Signed-off-by: Asutosh Das >> --- >> drivers/scsi/ufs/ufshcd.c | 6 +++++- >> 1 file changed, 5 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c >> index 011c336..d74d529 100644 >> --- a/drivers/scsi/ufs/ufshcd.c >> +++ b/drivers/scsi/ufs/ufshcd.c >> @@ -4167,9 +4167,13 @@ static int ufshcd_link_startup(struct ufs_hba *hba) >> goto out; >> } while (ret && retries--); >> >> - if (ret) >> + if (ret) { >> /* failed to get the link up... retire */ >> goto out; >> + } else { >> + ufshcd_dme_set(hba, UIC_ARG_MIB(TX_LCC_ENABLE), 0); >> + ufshcd_dme_set(hba, UIC_ARG_MIB(TX_LCC_ENABLE), 1); >> + } >> > > Every ufs host has same issue and affected?. > >> if (link_startup_again) { >> link_startup_again = false; >> -- >> Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, >> Inc. >> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux >> Foundation Collaborative Project. >> >> Hi Choi Thanks for the review. No - I can't say if every host has the same issue. However, I get your point. It could be done with a quirk. I'll fix this in v2 after collating all the comments from the rest of the patches. -asd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project