Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp858157pxb; Thu, 21 Oct 2021 10:47:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRMi4iOfkgUa/SVR5UJeUu6jrNfz9Ze6LbEO1D++XSCcOllSd7KhWPRbriPGKacBaiMkwx X-Received: by 2002:a17:90b:1049:: with SMTP id gq9mr8326826pjb.180.1634838476298; Thu, 21 Oct 2021 10:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634838476; cv=none; d=google.com; s=arc-20160816; b=Lk4IOOARCh+METGruqoGo/fduvRlGBWeTLN+XnKUVyAroKXNMuqyFV31vAYSRqz7oA BSxYr+1H9nC6JObcIRaihZbgOcXtjXH8IFXOgdc9aBKNWkCHIm9LN0S2ny6Uap5L1A8A Vlp7YVCY/VAEc0EhHp/ry3LnXs7hu8BVmJluP8ojSDgPje1wMgDTHQXe7n8di1+YcwsW k1jNwqjDUjgD/ZYtzx78LwHthFj5jWu1xwpYS19ioiqaqVjG5terVNV8RbWIgOQV8Gsg MiApRWR9MMQ10iBlhRGEP0pzDgFb6BV8pZEncxQksbaADHY4WDgxNlkHJRRHlNDkYjqV vP8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=E96bHNNRL0hYl0700KPh5DBcZ0hvpg6/HfgH4MgBijM=; b=ALSNs/1RHbh8QN40qx9MZSXVVP6OphqyqfEnIrX6XemJKJtS/DslhwqgARSQ9wgL/x KOoEANZC0j2XjuKjBODJNa2t+E/VxFS5SRuPsIOmoQqPDUT2MMYlrMmQNu3ZaBTqYuN1 5qsw2697M5Bze5rvNC4a5Hx/ifBksr+Z3zMe/RWoyV3+lqUhzlZTbu0Zh4MQ9ekAFQfC 10YXPNfopHEiQSJPuRn/ykGP0Cas13KuQypQsJ5rUFMieZ1lybv6K5nWq/VXSzudWEm3 dDWQS54lTTCvHu1SGr3U+NOTBwSmpIChEpIVSBW79seSaedkHKNV7BEWUh9C+gX2LJR9 lTvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Qzhf/5+P"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p11si8196720plw.196.2021.10.21.10.47.44; Thu, 21 Oct 2021 10:47:56 -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=@kernel.org header.s=k20201202 header.b="Qzhf/5+P"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232559AbhJURtF (ORCPT + 99 others); Thu, 21 Oct 2021 13:49:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:53928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232387AbhJURsw (ORCPT ); Thu, 21 Oct 2021 13:48:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 377D96139F; Thu, 21 Oct 2021 17:46:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634838396; bh=5yxyO+SbV4ZYkqAUmZBs+5tctJ2fRPEXvFU5ANq9jZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qzhf/5+Pld5SPs/JQcVt2xbCD+i/2WEBlxB3INFwDAqCoF42aXlcGmVOxJ7Ilim+n WrO5hmFMHl8iDrJQZA7qH/KalMweTcyLh8sMvy2ixC510EvyJLfhkQYDExImFpJOv/ rmyCLLDGjtZ7XW5dnJ95FC19BD4lPvxQ1BA+omWqhdtR0zpKRJizCWgnmCjdz4bBFw wqtWsFMRoJpShJLb03nmvU7MMMMoxYpWje4nLroDb8Iy9/ePA9EZMqcsLtdCWY2UwX JZFAOjKiNq+eXwlAhnKixH1quWEBjPsz81OdAaLXUiilOvEsl9SxOT8F7Kyg2OHeza 41u25IM9s7G+g== Date: Thu, 21 Oct 2021 23:16:31 +0530 From: Vinod Koul To: Stephen Boyd Cc: Andy Gross , Bjorn Andersson , Doug Anderson , Kishon Vijay Abraham I , Matthias Kaehlcke , Sandeep Maheswaram , Wesley Cheng , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com Subject: Re: [PATCH] phy: qcom-snps: Correct the FSEL_MASK Message-ID: References: <1634711785-25351-1-git-send-email-quic_c_sanm@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-10-21, 10:35, Stephen Boyd wrote: > Quoting Sandeep Maheswaram (2021-10-19 23:36:25) > > The FSEL_MASK which selects the refclock is defined incorrectly. > > It should be [4:6] not [5:7]. Due to this incorrect definition, the BIT(7) > > in USB2_PHY_USB_PHY_HS_PHY_CTRL_COMMON1 is reset which keeps PHY analog > > blocks ON during suspend. > > Fix this issue by correctly defining the FSEL_MASK. > > > > Signed-off-by: Sandeep Maheswaram > > Any Fixes tag? Yes pls add > > > --- > > drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c b/drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c > > index ae4bac0..28459a1 100644 > > --- a/drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c > > +++ b/drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c > > @@ -1,6 +1,7 @@ > > // SPDX-License-Identifier: GPL-2.0 > > /* > > * Copyright (c) 2020, The Linux Foundation. All rights reserved. > > + * Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. > > I never thought I'd see this again! :) Also, is it justified adding a new copyright for single code line change..? > > */ > > > > #include > > @@ -33,7 +34,7 @@ > > > > #define USB2_PHY_USB_PHY_HS_PHY_CTRL_COMMON0 (0x54) > > #define RETENABLEN BIT(3) > > -#define FSEL_MASK GENMASK(7, 5) > > +#define FSEL_MASK GENMASK(6, 4) > > #define FSEL_DEFAULT (0x3 << 4) > > > > #define USB2_PHY_USB_PHY_HS_PHY_CTRL_COMMON1 (0x58) -- ~Vinod