Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4163910pxb; Sun, 24 Oct 2021 21:45:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwD1EGC7SbAoYlPVKiIw2xuL+x8BGmLSgtQ2jw00Ltzc1YSpElyLnS2q1F/RpUa/neK9KC X-Received: by 2002:a17:907:7e9d:: with SMTP id qb29mr19957906ejc.469.1635137136924; Sun, 24 Oct 2021 21:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635137136; cv=none; d=google.com; s=arc-20160816; b=xR0KFhi4A9z3IQ/JdSOp/TRVcBxsd6Zf4ZartDlq6z3aBwif1HUMO3+o8IArnt/2Gp 9/IakjLFQLU/U/9KDFXFD+VSgb0iHqG4oGEHKYwsJkuHTVPGo3qhzY1rESpQEt+Gt4BJ p7V/fmUmREq6MXN8rttuqShTUOsP0b6Tz0VknVLtd85SYXZkar2A4W2pM5a2LUEmdnqT EqKg5kc7sBpLM69p81ByV/xcFPY2wVB3cO+Ux2vNYkW0BopTheoPuQwCb055fmiXd0rd vcn0Dp1J34AejmJ6A9L5TWNQd4RoP1BSCDqBbgwzHfJP8RRzWjuENLSiEX8bK7C4veuB TTNw== 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=X7bAkQfz6aT4/715bzVhw0pglrEtN8FLQnyZrTVFNdU=; b=hKj7US1kXCmd8Fu+bbwE7cRB96S6x75voRgZsHz7GYCGhzty9+NcPzIa+Z35rDHnUM Ai6eN6xymg0ZWv0pT/DfY5n49+7gYB2tAin3mFNuMcJiaDS9scB8FdBEpWXcJD8HO5cQ b4rqXa2JhtVlVil05sLviaQc9ApWbkka+u231WrG4VD4NYhOGRX1ZCTvgmGZWUMlUUQe q+vae+EnUXa5OpAIZukEtMTWUiidFUniXTecR7fMPFaLrKztO3nzHhavW1mhtXyD7wXL 7ut2SlVfnwfOHRzZlgNNtaq5A8f/4xuChQqERw7e8DmSTh4rFUtWddzYxOfwXyTR4B/S E6pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=GsQUwD+k; 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 c19si32637924ede.586.2021.10.24.21.45.13; Sun, 24 Oct 2021 21:45:36 -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=GsQUwD+k; 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 S232131AbhJYEWp (ORCPT + 99 others); Mon, 25 Oct 2021 00:22:45 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:41381 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbhJYEWo (ORCPT ); Mon, 25 Oct 2021 00:22:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1635135623; x=1666671623; h=from:to:cc:subject:date:message-id:mime-version; bh=X7bAkQfz6aT4/715bzVhw0pglrEtN8FLQnyZrTVFNdU=; b=GsQUwD+ka644G4LLLLTj8ootb0+CBTsyG0rxaTXlv0wCUaAd3UP4ti5l wY02psWHtg17oqJnWBsklpJ3jDBnODtmwXx/pOXQM/nFtAmPTNQUhSjtg pyFH4rPq3+eCdFiVrG0uislI/eYXWxmdZuPt12BHGQkthjxuJSC/n06i5 I=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 24 Oct 2021 21:20:23 -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; 24 Oct 2021 21:20:22 -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; Sun, 24 Oct 2021 21:20:17 -0700 From: Sandeep Maheswaram To: Andy Gross , Bjorn Andersson , Kishon Vijay Abraham I , "Vinod Koul" , Greg Kroah-Hartman , Wesley Cheng , Stephen Boyd , Doug Anderson , Matthias Kaehlcke CC: , , , , , , Sandeep Maheswaram Subject: [PATCH v2] phy: qcom-snps: Correct the FSEL_MASK Date: Mon, 25 Oct 2021 09:49:35 +0530 Message-ID: <1635135575-5668-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: nasanex01a.na.qualcomm.com (10.52.223.231) 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_COMMON0 is reset which keeps PHY analog blocks ON during suspend. Fix this issue by correctly defining the FSEL_MASK. Fixes: 51e8114f80d0 (phy: qcom-snps: Add SNPS USB PHY driver for QCOM based SOCs) Signed-off-by: Sandeep Maheswaram --- v2: Corrected the register name COMMON1 > COMMMON0 in commit description. Added Fixes tag. Dropped copyright line. drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c | 2 +- 1 file changed, 1 insertion(+), 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..7e61202 100644 --- a/drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c +++ b/drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c @@ -33,7 +33,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