Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6165075ybl; Mon, 23 Dec 2019 01:01:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyUq2DT7T7vSfk3vZQU14Uw8dJ7tIQHD5XBDQECDi56uZFDbNEKGbzq816zCYwK3TwAJIQP X-Received: by 2002:a05:6830:154c:: with SMTP id l12mr31421179otp.275.1577091703974; Mon, 23 Dec 2019 01:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577091703; cv=none; d=google.com; s=arc-20160816; b=vU8syFroyqcx8xUBML8wAgwSASBuEXz9CZDw1+ma3gd6jcMBIU4phq2vkr1m0y9jVk GRMCjAjXoxcRnmc46hKMKpdNvWAd6vlOruh91/a0/gTsys//GGW+VQPj7J0WYOrBOokS q4XMNbh2EogtjzsOyg0MNJeZPt2mSPZoFGA5Jui82FPp1T3Sy+VIQJIy4yCHgxEmdPI2 Ed06FjWllb1Q5Ixqahyxx3DevaqR+xx3kjK5POlNrB8q2OOyh8gEha+6XQUM7Sryn/7K PWc84ic/maiAL7ImCGpdhX8DRv2btMNDVJ4yH8Wdyuq7MC813Sj04J9U8QeV7s6s8z7h t3fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=LpD/XIXRR/PLw8GkamJbjUiErErlWN3nv/jfxUf1yzw=; b=kDtutzz22H8VeJd4QKxcJwEEJvmrQCLtYwjbJRyDuqSH5BDciUhdP/RGsw8L9YFhW0 ezPL1oGQ+26Ug5ji2fO5LqLO7aWITF7pJ7YobyKvzI+LK+X+rItEBsLmlfMRYNRASfcS i9bAn9JVOmNV0xQLj6vURv4eQMDuOt3XMXeSIWdWZofKegv5ebxrJvlJtJeed+5vg91I R1jRkfp4+1SdPAJlHnOHSKZI2UZXiPynmlbVheBZS2ANDYF+U1xGrzD0/IyYutBgsIgx qsw4KfhAkjR9lls6/vgfz8hhRugPUq1z4C13gsLfwL2pZLMIk2G7siI5RMKS7oNUcJtB HrQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="sVXt+/mi"; 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 u188si7076014oia.80.2019.12.23.01.01.31; Mon, 23 Dec 2019 01:01:43 -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="sVXt+/mi"; 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 S1726750AbfLWJAp (ORCPT + 99 others); Mon, 23 Dec 2019 04:00:45 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:32466 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfLWJAp (ORCPT ); Mon, 23 Dec 2019 04:00:45 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1577091645; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=LpD/XIXRR/PLw8GkamJbjUiErErlWN3nv/jfxUf1yzw=; b=sVXt+/miTxWiu9AngYlt0x1pPxHveikiWN8O3+8QFM5BwN7UsckFrnIaUIN+iNSNP3ZuGEjA RL9xbNZjWxzlv6qp/D9bN2ir31ArPT3OdGHz5kmo0M8ZMO0G62didE3g3AlUkHa2UJs7c6d/ /Gyodqg52EQucyGpGm6SwV7QTtM= X-Mailgun-Sending-Ip: 104.130.122.25 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 5e008233.7efbe1f80768-smtp-out-n01; Mon, 23 Dec 2019 09:00:35 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1C8E3C433A2; Mon, 23 Dec 2019 09:00:34 +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,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.206.24.214] (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: mgautam) by smtp.codeaurora.org (Postfix) with ESMTPSA id DBB02C43383; Mon, 23 Dec 2019 09:00:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DBB02C43383 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mgautam@codeaurora.org Subject: Re: [PATCH 3/4] phy: qcom-qmp: Add optional SW reset To: Vinod Koul , Can Guo Cc: Asutosh Das , Kishon Vijay Abraham I , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Andy Gross , Jeffrey Hugo , linux-kernel@vger.kernel.org References: <20191219150433.2785427-1-vkoul@kernel.org> <20191219150433.2785427-4-vkoul@kernel.org> <9ef99dcac59dbdc59c7e5eb1a8724ea2@codeaurora.org> <20191220042427.GE2536@vkoul-mobl> <20191220071015.GF2536@vkoul-mobl> <20191220075338.GG2536@vkoul-mobl> From: Manu Gautam Message-ID: Date: Mon, 23 Dec 2019 14:30:27 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191220075338.GG2536@vkoul-mobl> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/20/2019 1:23 PM, Vinod Koul wrote: > On 20-12-19, 15:41, Can Guo wrote: >> On 2019-12-20 15:10, Vinod Koul wrote: >>> On 20-12-19, 14:00, Can Guo wrote: >> Hi Vinod >> >> We are just removing the no_pcs_sw_reset for 8150, right? Why is it >> possibly impacting 845 or older paltforms? >> >> In future, we will no longer need no_pcs_sw_reset for any newer QCOM UFS >> PHY designs, as it is only for 845 and older platforms. >> >> I am sure QPHY_SW_RESET will be within PHY's address space since 8150. >> Otherwise, it will be a regression in UFS PHY design. We had a lot of >> discussion about this on 845 years ago, then design team decided to add >> it on later platforms, so I don't see a reason to remove it again. :) >> >> I am not sure about the other qmp phys, but so long as UFS PHY needs the >> reset, we need to keep it, as phy-qcom-qmp.c is a common driver. I am >> not sure if I get your point here. Please correct me I am wrong. > The argument here is that we are making this UFS specific and we do not > know if this will be true in future as QMP is a common phy, so adding a > separate flag helps to keep it independent and to be used in other > situations. > > Thanks We should just remove no_pcs_sw_reset and let existing code take care of PHY reset for UFS. QMP PHY reset for UFS was differently handled earlier compared to USB/PCie and relied on core for PHY reset. That is not the case with addition of PCS based sw_reset and this won't change in future. There is no need to have UFS specific flag in this driver. -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project