From patchwork Tue Oct 16 07:22:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manu Gautam X-Patchwork-Id: 10643169 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 17B35109C for ; Tue, 16 Oct 2018 07:22:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F15B629A98 for ; Tue, 16 Oct 2018 07:22:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF91C29A91; Tue, 16 Oct 2018 07:22:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E1CF29A8C for ; Tue, 16 Oct 2018 07:22:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727075AbeJPPLp (ORCPT ); Tue, 16 Oct 2018 11:11:45 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:38518 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726649AbeJPPLo (ORCPT ); Tue, 16 Oct 2018 11:11:44 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A5DEB60A34; Tue, 16 Oct 2018 07:22:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539674560; bh=qUx72voxU4tZTyKO/SenLyoz0HDLI6MekyS5fU6sb/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TgZ1wY8WKtroq1dVleheEn84Go+X1Q58vHx0atV5adU1iUi70tqDftXMUNqEWj7sc i9i2F20WaSU/UpwSXErYLrjtrDHXpCakhAVz7+PDngFoYxAMCQYw87yRNSPXOnBVGS NCGAvd3CniCu/wHyqxfHSGQTVPQhph2s+BPlHzjk= Received: from mgautam-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0D92E612F8; Tue, 16 Oct 2018 07:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539674560; bh=qUx72voxU4tZTyKO/SenLyoz0HDLI6MekyS5fU6sb/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TgZ1wY8WKtroq1dVleheEn84Go+X1Q58vHx0atV5adU1iUi70tqDftXMUNqEWj7sc i9i2F20WaSU/UpwSXErYLrjtrDHXpCakhAVz7+PDngFoYxAMCQYw87yRNSPXOnBVGS NCGAvd3CniCu/wHyqxfHSGQTVPQhph2s+BPlHzjk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0D92E612F8 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mgautam@codeaurora.org From: Manu Gautam To: Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, Manu Gautam , Vivek Gautam , Douglas Anderson , Evan Green , linux-kernel@vger.kernel.org (open list:GENERIC PHY FRAMEWORK) Subject: [PATCH v2 2/2] phy: qcom-qusb2: Fix HSTX_TRIM tuning with fused value for SDM845 Date: Tue, 16 Oct 2018 12:52:07 +0530 Message-Id: <20181016072209.1011-2-mgautam@codeaurora.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181016072209.1011-1-mgautam@codeaurora.org> References: <20181016072209.1011-1-mgautam@codeaurora.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Tune1 register on sdm845 is used to update HSTX_TRIM with fused setting. Enable same by specifying update_tune1_with_efuse flag for sdm845, otherwise driver ends up programming tune2 register. Fixes: ef17f6e212ca ("phy: qcom-qusb2: Add QUSB2 PHYs support for sdm845") Signed-off-by: Manu Gautam Reviewed-by: Douglas Anderson Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c index 9d6c88064158..69c92843eb3b 100644 --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c @@ -231,6 +231,7 @@ static const struct qusb2_phy_cfg sdm845_phy_cfg = { .mask_core_ready = CORE_READY_STATUS, .has_pll_override = true, .autoresume_en = BIT(0), + .update_tune1_with_efuse = true, }; static const char * const qusb2_phy_vreg_names[] = {