Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1195494pxb; Tue, 19 Oct 2021 23:41:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeWyMhjAapTUNBkJiK/JyWevkAbIgWQEdbNZnLhJYtz7rxlIAWsEl60O8KHwGunJKceFOC X-Received: by 2002:a05:6402:5215:: with SMTP id s21mr60557625edd.113.1634712114943; Tue, 19 Oct 2021 23:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634712114; cv=none; d=google.com; s=arc-20160816; b=VSthxBRTlX74DoCjtgGa9RPtvQP8Z04ezn9kN8fEon7xmPgYy6h2bi7Iwz+dk0j+/X iU3jrCgK+lmsbibmGx0HXc9EkZi8ThPp2MjwyUlmEPjupE/jyvvkty8nWgiPZDhR8jmL YbBQrkJhU0KOlEwapjTkdx/YC4ZFrKQwfo0ldEoje1u2tC580dpXyiKkl70KzCEWnVAQ qKeRa+tVPNC4bOJWyqn9rXtHGLipuwHmA+mP8oECs/NyPgitONQBsB9Zk9SKtBPdB6Q/ KbbJWLKsYS3D/ABoIxAHkDaXQ4g4bPI/s9a0qjtrQfiEhLRryo8vsp8KYBSEXk908Enx n25w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=r15w9F6DRx510ziNvsmmm1g8c0esESPNSy71ZWfyaYs=; b=GdBoBqAJOL6joG/cEbAQt2MtUo6bb8eBwljU7m+pxtGjGfsGtBgawh1L7Gx4THIUUi 2cHAGjRpoSQd6duNZzmn29FQFUKV7khfhAoxLKlgau4tdl3LOb1GXwN6qPf33gN0C2VZ O6k6mDj/Xuxgy60aMtObWNf/lULsRxRso8FsVWNbIkNlGvpOvVZoZzEMgr3rh3ZnRzAg Nz+BrPsv+ckmEky0/1tMDP8OjU2L7cQwMl08qfpq1le1s8HzrGHAoHPKntFmZqvxBPor hWU5oX4l+3L3GSTKcADCwerkUKlK7h7AUgtsSRntVeHaZmyfvCPUbdEJ99dnx6Ofw23f A9BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=akbjyzzI; 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=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qw17si2359619ejc.123.2021.10.19.23.41.30; Tue, 19 Oct 2021 23:41:54 -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=@quicinc.com header.s=qcdkim header.b=akbjyzzI; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229822AbhJTGjr (ORCPT + 99 others); Wed, 20 Oct 2021 02:39:47 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:14992 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbhJTGjq (ORCPT ); Wed, 20 Oct 2021 02:39:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1634711853; x=1666247853; h=from:to:cc:subject:date:message-id:mime-version; bh=r15w9F6DRx510ziNvsmmm1g8c0esESPNSy71ZWfyaYs=; b=akbjyzzIC8XZpbodcGMcotNF9Vy8fV6sm94s7tgVbI0Bh4LnXWxzvpG8 6jIQZCyQxOavdf/FmIFTsAW0xeljySblFqVPSe56KfLXENL4B93UpwO9k kUffhrxNey51IZUP7bNMPfa/MxYvqnuGcMRYER/EzdH5hSr4SMuaT7fog M=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 19 Oct 2021 23:37:32 -0700 X-QCInternal: smtphost Received: from nalasex01a.na.qualcomm.com ([10.47.209.196]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2021 23:37:32 -0700 Received: from c-sanm-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.7; Tue, 19 Oct 2021 23:37:27 -0700 From: Sandeep Maheswaram To: Andy Gross , Bjorn Andersson , Kishon Vijay Abraham I , "Vinod Koul" , Wesley Cheng , Stephen Boyd , Doug Anderson , "Matthias Kaehlcke" CC: , , , , , Sandeep Maheswaram Subject: [PATCH] phy: qcom-snps: Correct the FSEL_MASK Date: Wed, 20 Oct 2021 12:06:25 +0530 Message-ID: <1634711785-25351-1-git-send-email-quic_c_sanm@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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. */ #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) -- 2.7.4