Received: by 10.223.185.116 with SMTP id b49csp255902wrg; Thu, 22 Feb 2018 21:11:22 -0800 (PST) X-Google-Smtp-Source: AH8x224VluHDLFqD3k3367qoA4i0vP5J4txWROcH4GX2FXfETEl0TcwTqUSKd7gCUaA+IZUks9FU X-Received: by 10.98.199.9 with SMTP id w9mr489505pfg.97.1519362682558; Thu, 22 Feb 2018 21:11:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519362682; cv=none; d=google.com; s=arc-20160816; b=REd8kPm6YWad+RfdDCnjdjq24G2NXJoeNkRUpP5X2UxDPEgEaD94lfPv5Tuq5GOfyP B91QSwp3wOGUlxFCRmmycoTG+riCYyDA2IblA6J9FhHf44ZT4r2lK7BkWTOO5t2ind+h 3T1ztEBdiAjGQs7GgKIgu/KSTviHSICcKYKb/V8y7gdeHiA39XUxOqp9MUpcaw2bWIXO Y7mxJZnGcRLin1O1qX4gQV8KkIkcqlP4z0O+rsvr3sWE3ig77JEx79doo8vzgibd2lJl TsiaqQd45IODGA2PKpjhmr+G8ZCBYZzffgOI6BqEWpc7vKsrzvpg3tc1ChspxTi4tq6/ wLVQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=AHz7glnuo+5OhiEAkn+8oklXYYExV3ak7PGCvhHPxT0=; b=FBrwR1IiAW/c9m8E+j00x8pizjP3Pfc6x1NmPeBfMV1Mn7n32FpMy/QCQK+fbYIL7Y KXk0OMbS14Jvd3jDwu2CQRqXQvgUugf568UbVCPOq/gPRcp69fPPddpye6VLFKqXnnKx ZWu9HsOnT5O+O0qI8E3isNqFYyZOqfsoUgzjlaVfFxyrrVOSEAx1eexsDI0cOlVnG+Mt d0Mq6BtrhvMshGM7Ms/5zXn3rJi1hZ2ePV1gZ+cXuKQ1FOylcF37iC5ZspwHNIeIhKGV WoH5OIGTOgzJmhtxZmDEoNqKO3FhQNEX0AtbT26m8VMK+OSS7tS9TkQ+OoEQd7ZYTxa4 I61A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W45NzeUx; 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 t14si1202716pfi.382.2018.02.22.21.11.06; Thu, 22 Feb 2018 21:11:22 -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=W45NzeUx; 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 S1750949AbeBWFKZ (ORCPT + 99 others); Fri, 23 Feb 2018 00:10:25 -0500 Received: from mail-ua0-f193.google.com ([209.85.217.193]:34561 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750784AbeBWFKX (ORCPT ); Fri, 23 Feb 2018 00:10:23 -0500 Received: by mail-ua0-f193.google.com with SMTP id m43so4914439uah.1; Thu, 22 Feb 2018 21:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=AHz7glnuo+5OhiEAkn+8oklXYYExV3ak7PGCvhHPxT0=; b=W45NzeUxEdmwQkQ8cXU1hByidPQLyCbJ2SkbngMXtNyMCrTvOOcSSLNb9FHFzotKkB PhjQCA+rbDaVw8PBfgxoxP+/ltK5qouW2H0zTKvKsUVCqPwLxkNq1s2VKU6EXyjWzhIO GrjAEItRakv7nDCUEvh+dlnfrtLyhb0hz5ArSflG5fnhZZZp/aYNxTAvSxM0p6mm5JsH 3DZMv5LFOK+NH1iIBFbDITCEz1/lLk5euOhgCLVCxHXx/3FIiptdKAlVCDTjGqtrPXd+ TQacWU6y4aON2ABe1r4n+70SgAxsrSnJwzN8k+O3KulKA7d/VxT1korDInXpdulBYXZg GoUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=AHz7glnuo+5OhiEAkn+8oklXYYExV3ak7PGCvhHPxT0=; b=g9UDN+Xs/Ffycoc8NWhLmZMQFjb7bvjn+f363fa9PxOCjHMMVdkjVtCcHnYZrODbhR sP+DXN9V6SLyp377I72XxQw2UR3nI5urbguudt5x083v2IqZFEJbb6sGdfGArNKEB/QZ kJflKawuCoDy2V/Hop1kAqZgC0kT/seW9RxtCigIFtSvxWaUzHJ0XhoMdHWvhB0R4jmb TpB7KkT2LOY0btjTx6TxfEYKFD8JLwW1mc7uGvpNOdSUwQOWqNH7jKmXRJzSo+vxkoEC DXompV956KMsSikqq7PVd0sqB2iV8VS6wqunHUS3CnurU9vFJxmkU6Gizw9Nc04ZQA2/ RiqQ== X-Gm-Message-State: APf1xPA3D/Y9kYoZhQj2o6GzddlEL4ffwqs4rP4rFQmNQT2B6ETHhK2e 0znjWua/m1bXCssiN2vCIQPBwAcr2Kz8nr/UJg== X-Received: by 10.159.35.71 with SMTP id 65mr315232uae.130.1519362622828; Thu, 22 Feb 2018 21:10:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.81.172 with HTTP; Thu, 22 Feb 2018 21:10:22 -0800 (PST) In-Reply-To: <70df05c82a8624987c76b16c65143f00a111c94d.1519120988.git.asutoshd@codeaurora.org> References: <70df05c82a8624987c76b16c65143f00a111c94d.1519120988.git.asutoshd@codeaurora.org> From: Kyuho Choi Date: Fri, 23 Feb 2018 14:10:22 +0900 Message-ID: Subject: Re: [PATCH 1/9] scsi: ufs: Allowing power mode change To: Asutosh Das 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 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 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. > >