From patchwork Fri Jun 10 18:55:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12877922 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59AC5CCA47B for ; Fri, 10 Jun 2022 18:55:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mWR1tuhPFEiSM2V8xtABJaKtJeA+kY2bg1yBnSkgCXo=; b=MDnM3bjYvEeiWq HIZA0q9XTPkWfcBjbQwqFqwL/mAROp6l0APxAOhN+3gm3rMQi0nFK8g9o6IS2GSaO1aEg44DcootJ ejaW+AgjtO0UmIx+BYoiah3bhHYJLFxBJiOYi0t4floJjCdSqeOiv03HkXXeDe+dKPISPbxrkSVLI Dnd4guYBK5BNn0YVtSa4L4Wrk1/hT1nSKSfAEaACke1YCEbeYV11OiNmORUpfpdLMVGA3100WXHP+ eI5pzP/PdY3aqV0OaPNyTZlv6+rqSuoAEZnN4AcUSt0ID42N+sd3Ut1EJG2UMS1Cjdtbax6cGNkdd 9/KmC+eyMmUMWdtAIfuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzjnU-009S0K-O7; Fri, 10 Jun 2022 18:55:52 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzjnS-009Rxq-6p for linux-phy@lists.infradead.org; Fri, 10 Jun 2022 18:55:51 +0000 Received: by mail-lj1-x235.google.com with SMTP id d18so104969ljc.4 for ; Fri, 10 Jun 2022 11:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g2xdbCbqDzIncuP45i58XD17g/B6emE4ldK55IkqvnU=; b=HzfSCXgWRJfxYCIZZCARYTSb2XczWHRaBN33MxBNh+UyIwO4QaHTE0t22vI52miHYY pN/BaE8UlpdGYhIOrDRjo5yBSxWGZe8WbetqfcrZVsgesQI52CZyG6/J1hDvb6wGL68X xxUtGiQgdJjdE29NQXXQniypyGWaSs6mrUic7pEvupXl52fq3CzB/x2uCjOoW7tNmmEQ iEBxt1XlEQel85s7SKueE5t5zJC4aTw8nCPZJUj7LXS4h4VcgVCZ/f4dWXY1YHJulbdu H9jsVNn0DlFVP4IvktCow+l/n7wapL2I3F9qxkwV63/sFayPys4KxdsariUqMRf5GFAi E3Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g2xdbCbqDzIncuP45i58XD17g/B6emE4ldK55IkqvnU=; b=G5cE7NKbSWggOidgs9MfABdawt8ug7QSMm3Lx60C0JLwAa5XKurOZbri6mAuHts8NR wSaFbjg1lVlIXFg7nrtY7IgpsWg60TZBEa6bDJ/pGqqN8poJwEHKopM+g7IhITv4jJct Qpr1Lp1xNi/iKokS/LDSEC5VhMsThNpYiNzd86R6f9uKH3DdR2jk3x3tHVUy2yK0XEfa zVaUGmMhSRa8D9jfc75A2bFvgsUAdalSU830zn291Ad8xV1uAc7PLfx7uN4rad9Ki335 qtFqzDDzzE9ACXjOK/6qVmAIm4k3cdRQ5iWG20KWgWcnhcLTMCwDiei+/cL1dmLMgVID rpgA== X-Gm-Message-State: AOAM532ycAJx+svDnqhMmkDS1Kqw9o6LLcNODD9h4Am1Wtg9SCKM6fhy elI6LPqX1eirghdM/bVV/NdGZv+ZkhoM53Hf X-Google-Smtp-Source: ABdhPJzPKyEEKA9IXKYOpC3AalNHY6eqp5J+wftUS9vE+slOHtINp2E/Bu9ig+dXQvnCSC5tl3cfBQ== X-Received: by 2002:a2e:8803:0:b0:255:8be7:c03a with SMTP id x3-20020a2e8803000000b002558be7c03amr17533376ljh.487.1654887347060; Fri, 10 Jun 2022 11:55:47 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id i14-20020ac2522e000000b0047255d2118esm4816218lfl.189.2022.06.10.11.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 11:55:46 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Vinod Koul , Kishon Vijay Abraham I Cc: Philipp Zabel , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH 2/2] phy: qcom-qmp: fix PCIe PHY support Date: Fri, 10 Jun 2022 21:55:42 +0300 Message-Id: <20220610185542.3662484-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220610185542.3662484-1-dmitry.baryshkov@linaro.org> References: <20220610185542.3662484-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220610_115550_282275_AA423BC6 X-CRM114-Status: GOOD ( 11.09 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Replace init/exit ops with power_on/power_off which should be used for the PCIe PHYs to fix PHY initialization. Fixes: da07a06b905f ("phy: qcom-qmp-pcie: drop support for non-PCIe PHY types") Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c index bd9f71456e32..b2cd0cf965d8 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c @@ -2141,8 +2141,8 @@ static int phy_pipe_clk_register(struct qcom_qmp *qmp, struct device_node *np) } static const struct phy_ops qcom_qmp_phy_pcie_ops = { - .init = qcom_qmp_phy_pcie_enable, - .exit = qcom_qmp_phy_pcie_disable, + .power_on = qcom_qmp_phy_pcie_enable, + .power_off = qcom_qmp_phy_pcie_disable, .set_mode = qcom_qmp_phy_pcie_set_mode, .owner = THIS_MODULE, };