Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2682941ybk; Mon, 18 May 2020 05:32:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/HSmw+1Pf4cyBgCnEydf77fCezgXl20ZY2gWvwmMRmKUAnjbaKMpZYqZMV05/6rvjffyD X-Received: by 2002:a05:6402:203a:: with SMTP id ay26mr4048744edb.205.1589805131245; Mon, 18 May 2020 05:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589805131; cv=none; d=google.com; s=arc-20160816; b=mhBI0bWofQ1RZ6rvZ0pnTQNk7WibQbXzG1gH6SM245RXXvSZyuf8Yn4gKoDnguQWK5 F9otw2A1n987T8fBunfZe+vWqndoKyuy+jLmBZlZQJu6E02Zg2cmE1JkqFTy18YUUNGU i2KE00izcEiROnTUeohl3fPMP9jyj93b4KeDJn89XTo859+SAEBgQCHyu5abxIEqc5+U +lGAPheOeCgsEg6doDAXk365XjDK8zD87XM3I9tE4kRD8fcQRLr1uZUBY+I3D6krIRTa ivxcR8Lp2tKYjYYwuSGlQy0jp37fAJBYEvfdOSaKpYJs4NAXMGzZocVf4Owz7awvKgvi kzDQ== 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:dkim-signature; bh=Cc2QsaFW8ZZmz0AJhXL7MMRK4fot/Bb5Y6em3UaqVZ4=; b=AXMZ4DvDmEAabNaN5pwo76LZDIWr8diBrGBt0NsZVfE7rsb+tHkj0LTutGmb+ylsGD rD1hjYplyRvnjIwIUUQ3fNl/gCtI4C2yoZ/dvPKyQuie4Z157dEJr4zv6q3I70Z2bjrY eDCiGLFMl0nHszqD2QDdHN/Yllrehslg6R80A8m536SlLILLKaXYTgryuuqndic6huGG oitRINXbl4rUGh2yZYKc5cpZq49/JguA3/HktqhJ8WeuToQQSL9qNvUq7hTA2udNxPm2 RaSXYMFs6yg97ShqwyLIuUpHgXHttGSxTQ99ghiYiKn+sPlOGaP0m+n+iOe1VFqBTJcT /cFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=y0r0iTQ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t7si1221965edt.393.2020.05.18.05.31.48; Mon, 18 May 2020 05:32:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=y0r0iTQ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727122AbgERM3V (ORCPT + 99 others); Mon, 18 May 2020 08:29:21 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45518 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbgERM3U (ORCPT ); Mon, 18 May 2020 08:29:20 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 04ICTHob006645; Mon, 18 May 2020 07:29:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1589804957; bh=Cc2QsaFW8ZZmz0AJhXL7MMRK4fot/Bb5Y6em3UaqVZ4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=y0r0iTQ1qHl3z4w9XR0RvLYlubNn3J+QZSxhBwMb/3bUT5CqiqmKECmPk5RB6lPCl eHVkpNRBgP/ILW045AeDpSKK/zFJJ0a8jAUHeFLPhzHfOwDIc6HHcluWwpGdN6w2jS Jmw1+JeXvlPxdVf4kCStyjgWV0LKPWkn7OXYqHWE= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 04ICTHXh005732 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 18 May 2020 07:29:17 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 18 May 2020 07:29:17 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 18 May 2020 07:29:17 -0500 Received: from [192.168.2.14] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 04ICTEuT114526; Mon, 18 May 2020 07:29:15 -0500 Subject: Re: [PATCH] phy: cadence: sierra: Fix for USB3 U1/U2 state To: Sanket Parmar , CC: , , , , , , References: <1589804053-14302-1-git-send-email-sparmar@cadence.com> From: Roger Quadros Message-ID: <9c5b4f54-18bc-97d6-6baf-68f007303b17@ti.com> Date: Mon, 18 May 2020 15:29:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1589804053-14302-1-git-send-email-sparmar@cadence.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/05/2020 15:14, Sanket Parmar wrote: > Updated values of USB3 related Sierra PHY registers. > This change fixes USB3 device disconnect issue observed > while enternig U1/U2 state. > > Signed-off-by: Sanket Parmar Reviewed-by: Roger Quadros > --- > drivers/phy/cadence/phy-cadence-sierra.c | 27 ++++++++++++++------------- > 1 file changed, 14 insertions(+), 13 deletions(-) > > diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c > index a5c08e5..faed652 100644 > --- a/drivers/phy/cadence/phy-cadence-sierra.c > +++ b/drivers/phy/cadence/phy-cadence-sierra.c > @@ -685,10 +685,10 @@ static struct cdns_reg_pairs cdns_usb_cmn_regs_ext_ssc[] = { > static struct cdns_reg_pairs cdns_usb_ln_regs_ext_ssc[] = { > {0xFE0A, SIERRA_DET_STANDEC_A_PREG}, > {0x000F, SIERRA_DET_STANDEC_B_PREG}, > - {0x00A5, SIERRA_DET_STANDEC_C_PREG}, > + {0x55A5, SIERRA_DET_STANDEC_C_PREG}, > {0x69ad, SIERRA_DET_STANDEC_D_PREG}, > {0x0241, SIERRA_DET_STANDEC_E_PREG}, > - {0x0010, SIERRA_PSM_LANECAL_DLY_A1_RESETS_PREG}, > + {0x0110, SIERRA_PSM_LANECAL_DLY_A1_RESETS_PREG}, > {0x0014, SIERRA_PSM_A0IN_TMR_PREG}, > {0xCF00, SIERRA_PSM_DIAG_PREG}, > {0x001F, SIERRA_PSC_TX_A0_PREG}, > @@ -696,7 +696,7 @@ static struct cdns_reg_pairs cdns_usb_ln_regs_ext_ssc[] = { > {0x0003, SIERRA_PSC_TX_A2_PREG}, > {0x0003, SIERRA_PSC_TX_A3_PREG}, > {0x0FFF, SIERRA_PSC_RX_A0_PREG}, > - {0x0619, SIERRA_PSC_RX_A1_PREG}, > + {0x0003, SIERRA_PSC_RX_A1_PREG}, > {0x0003, SIERRA_PSC_RX_A2_PREG}, > {0x0001, SIERRA_PSC_RX_A3_PREG}, > {0x0001, SIERRA_PLLCTRL_SUBRATE_PREG}, > @@ -705,19 +705,19 @@ static struct cdns_reg_pairs cdns_usb_ln_regs_ext_ssc[] = { > {0x00CA, SIERRA_CLKPATH_BIASTRIM_PREG}, > {0x2512, SIERRA_DFE_BIASTRIM_PREG}, > {0x0000, SIERRA_DRVCTRL_ATTEN_PREG}, > - {0x873E, SIERRA_CLKPATHCTRL_TMR_PREG}, > - {0x03CF, SIERRA_RX_CREQ_FLTR_A_MODE1_PREG}, > - {0x01CE, SIERRA_RX_CREQ_FLTR_A_MODE0_PREG}, > + {0x823E, SIERRA_CLKPATHCTRL_TMR_PREG}, > + {0x078F, SIERRA_RX_CREQ_FLTR_A_MODE1_PREG}, > + {0x078F, SIERRA_RX_CREQ_FLTR_A_MODE0_PREG}, > {0x7B3C, SIERRA_CREQ_CCLKDET_MODE01_PREG}, > - {0x033F, SIERRA_RX_CTLE_MAINTENANCE_PREG}, > + {0x023C, SIERRA_RX_CTLE_MAINTENANCE_PREG}, > {0x3232, SIERRA_CREQ_FSMCLK_SEL_PREG}, > {0x0000, SIERRA_CREQ_EQ_CTRL_PREG}, > - {0x8000, SIERRA_CREQ_SPARE_PREG}, > + {0x0000, SIERRA_CREQ_SPARE_PREG}, > {0xCC44, SIERRA_CREQ_EQ_OPEN_EYE_THRESH_PREG}, > - {0x8453, SIERRA_CTLELUT_CTRL_PREG}, > - {0x4110, SIERRA_DFE_ECMP_RATESEL_PREG}, > - {0x4110, SIERRA_DFE_SMP_RATESEL_PREG}, > - {0x0002, SIERRA_DEQ_PHALIGN_CTRL}, > + {0x8452, SIERRA_CTLELUT_CTRL_PREG}, > + {0x4121, SIERRA_DFE_ECMP_RATESEL_PREG}, > + {0x4121, SIERRA_DFE_SMP_RATESEL_PREG}, > + {0x0003, SIERRA_DEQ_PHALIGN_CTRL}, > {0x3200, SIERRA_DEQ_CONCUR_CTRL1_PREG}, > {0x5064, SIERRA_DEQ_CONCUR_CTRL2_PREG}, > {0x0030, SIERRA_DEQ_EPIPWR_CTRL2_PREG}, > @@ -725,7 +725,7 @@ static struct cdns_reg_pairs cdns_usb_ln_regs_ext_ssc[] = { > {0x5A5A, SIERRA_DEQ_ERRCMP_CTRL_PREG}, > {0x02F5, SIERRA_DEQ_OFFSET_CTRL_PREG}, > {0x02F5, SIERRA_DEQ_GAIN_CTRL_PREG}, > - {0x9A8A, SIERRA_DEQ_VGATUNE_CTRL_PREG}, > + {0x9999, SIERRA_DEQ_VGATUNE_CTRL_PREG}, > {0x0014, SIERRA_DEQ_GLUT0}, > {0x0014, SIERRA_DEQ_GLUT1}, > {0x0014, SIERRA_DEQ_GLUT2}, > @@ -772,6 +772,7 @@ static struct cdns_reg_pairs cdns_usb_ln_regs_ext_ssc[] = { > {0x000F, SIERRA_LFPSFILT_NS_PREG}, > {0x0009, SIERRA_LFPSFILT_RD_PREG}, > {0x0001, SIERRA_LFPSFILT_MP_PREG}, > + {0x6013, SIERRA_SIGDET_SUPPORT_PREG}, > {0x8013, SIERRA_SDFILT_H2L_A_PREG}, > {0x8009, SIERRA_SDFILT_L2H_PREG}, > {0x0024, SIERRA_RXBUFFER_CTLECTRL_PREG}, > -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki