From patchwork Fri Mar 24 00:17:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13186183 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 0D8C5C761AF for ; Fri, 24 Mar 2023 00:18:04 +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: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:In-Reply-To:References: List-Owner; bh=91bpQVEm755CI9qEt+Dl0CaEnGYHohA2BI52eAKb0bM=; b=mvdn2brmEJy94r fy1n1mEJWWIlzmKYhdrq4Uy2FhPa2XluhWYoRCbB7qZZJk9v83gI4qUbBXcFe4ncv3chs7IHRXDQy s07Ingy0Y8ALtrTn/36/GZ4jH3JJYbG5sScj2zJBWj4TqNm0XxtxrKVe7HEZmmcZEOjuJ9YiJx80b xGKrfAvYi+OsfBGSYYG2WpfGQ1s5SEYHGBEsFgfAFYYkpNpaT/sil+x03Ch1TXdMVMVlsKGUHqgzX LTeCHfaGK89H/p722ByHHrxgwsAvhaiDZPW1X0eGSa3mNp/7DaHToq1fvD0Wr4/hhaq6rw8F9rjqt mmS34rB0s5mFxFDHA1Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfV88-003EnQ-0d; Fri, 24 Mar 2023 00:18:04 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfV85-003Emp-26 for linux-phy@lists.infradead.org; Fri, 24 Mar 2023 00:18:02 +0000 Received: by mail-lf1-x12e.google.com with SMTP id t11so158114lfr.1 for ; Thu, 23 Mar 2023 17:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679617079; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=o5tZLMNjAh2M2jpyVusReltMpzTxxZzGAgNQbIiLgTM=; b=FFZPxz5nrSq4c6yaE3oxJJUJsy8sQVI+WVJUq04IdYqGEXvP+Rn2O9m8tYPcOML8nd 0wxxkJK2HVVGUj3kYimU1Xb61uBqQHWNdw/8fqMG19Eza6gL27NEe99LcZ2t8ZeUUcMK EgundMMpkoj4vJEkdoStfqAaTcyjeejFb1oevIaTcAlWmL/TWC7pEcLJnUbHjvLS1sfe PRm0Z79q8Prb6zYjACojlNV2kOCOMxt6X0ftG5PIZdXZYxPYdFchlbau2dD7JxonnOGk Dcfo8GZiwZvjB+e00Xz4V82ouLNhqID8R708SiS601u9yMmmyNY56K2b0bW8HYw0v+F5 3PVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679617079; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=o5tZLMNjAh2M2jpyVusReltMpzTxxZzGAgNQbIiLgTM=; b=8HuNEnfS7hAKgdYqs8evO6OgGeXb+OVem+UudHpA8qeSJpgkMuQb3L68Qj+VdkW7Y7 +yW8j/L6kQ5NU4TZ963J6At0HBa+ITb6OA3Rm91iDiW74Hew7K2+150x3f9rR99zMeOr 643qH70Z8RbMmfSjUgY+/DPdeDYrUtkJvKdMsRtPSGHHD4AsLzFhhl6AIKy96WgE49xN z/MUBnLLvgXTpL0xNF08H2m8xjuH/qmc+c0j/hV2hMvYPFIwsJ/BgCYFE9EkjqKeYC0m ND03UGgsDd6n/aAT0XrDxAVSvaPJ9ZbpsKspOHEapRqGbxRQWy/FlB4k34IYpK6KvoS7 Z+QQ== X-Gm-Message-State: AAQBX9eZmwqK3I8bPHdgLb9GF0PFZexACjM+l24KtXMFNggn9+b4Ayf9 kSWkDfENmoKr9rF0LQOMxcmn3Q== X-Google-Smtp-Source: AKy350YQ8y0gnCHLyne/IGVn1UwNuRGJfuLNzshH+91SiARkQWHfJqp5Hfu1EixYG6IkUB75e6fOVw== X-Received: by 2002:ac2:548b:0:b0:4dd:af71:a5c3 with SMTP id t11-20020ac2548b000000b004ddaf71a5c3mr124106lfk.58.1679617074214; Thu, 23 Mar 2023 17:17:54 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id i17-20020ac25231000000b004eafa77e435sm569147lfl.146.2023.03.23.17.17.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 17:17:53 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, Johan Hovold Subject: [PATCH 1/2] phy: qcom-qmp-pcie: drop sdm845_qhp_pcie_rx_tbl Date: Fri, 24 Mar 2023 03:17:51 +0300 Message-Id: <20230324001752.1768505-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230323_171801_739834_12FAFC8B X-CRM114-Status: UNSURE ( 6.96 ) X-CRM114-Notice: Please train this message. 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 The SDM845 QHP PHY doesn't have designated RX region. Corresponding RX table is empty, so we can drop it completely. Fixes: 94a407cc17a4 ("phy: qcom-qmp: create copies of QMP PHY driver") Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c index d671748bc097..d580f3d3e221 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c @@ -725,9 +725,6 @@ static const struct qmp_phy_init_tbl sdm845_qhp_pcie_tx_tbl[] = { QMP_PHY_INIT_CFG(PCIE_GEN3_QHP_L0_RSM_START, 0x01), }; -static const struct qmp_phy_init_tbl sdm845_qhp_pcie_rx_tbl[] = { -}; - static const struct qmp_phy_init_tbl sdm845_qhp_pcie_pcs_tbl[] = { QMP_PHY_INIT_CFG(PCIE_GEN3_QHP_PHY_POWER_STATE_CONFIG, 0x3f), QMP_PHY_INIT_CFG(PCIE_GEN3_QHP_PHY_PCS_TX_RX_CONFIG, 0x50), @@ -2079,8 +2076,6 @@ static const struct qmp_phy_cfg sdm845_qhp_pciephy_cfg = { .serdes_num = ARRAY_SIZE(sdm845_qhp_pcie_serdes_tbl), .tx = sdm845_qhp_pcie_tx_tbl, .tx_num = ARRAY_SIZE(sdm845_qhp_pcie_tx_tbl), - .rx = sdm845_qhp_pcie_rx_tbl, - .rx_num = ARRAY_SIZE(sdm845_qhp_pcie_rx_tbl), .pcs = sdm845_qhp_pcie_pcs_tbl, .pcs_num = ARRAY_SIZE(sdm845_qhp_pcie_pcs_tbl), }, From patchwork Fri Mar 24 00:17:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13186184 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 E43F5C7619A for ; Fri, 24 Mar 2023 00:18:06 +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=7GhtW2pvoS+Cp9jlZPAs3//0SA0eztbV32WHQG48ILk=; b=4Y8ucQsHjuIhX1 17+VLcRbX4GsIYsiVm5JPIt9caae3ik9DHuSj3+rJvLyOteE3qfgkBUnqxuf8s2FYbdF6YgqwTqoK sgWa49h/QS4oaw77MoYdMXmQt5OqR6r/P7gKfYq6hQIm/cgYYTLSgRVdkt73eodDbAkbdVLAia0m1 BKHVm2oNxDurzdCQ+qWxHjkVH8KCqCcQ/8FGV7NLCMMeDIeOmgtviI6OvpZckpp7SnlHickeXvd87 jQ3dKq3pJEJTPTwhrzBtl/XE1m+6Cnq9FCzbmySY5hTo24YaUZXVzBbAB/EPLOJ2LRJyYRa61UjC6 8gqkenYNc4Um+PQ5iLRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfV8A-003Enj-1j; Fri, 24 Mar 2023 00:18:06 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfV85-003Emq-2q for linux-phy@lists.infradead.org; Fri, 24 Mar 2023 00:18:03 +0000 Received: by mail-lf1-x131.google.com with SMTP id t11so158147lfr.1 for ; Thu, 23 Mar 2023 17:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679617080; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YXZmNUbirnPFl8q9p2tBnc2aY6ycoSjw1TdsaS3/lsw=; b=T1Tt6r+SaTosUqz5z3VgNeXtDbscpAc74aJN2MHovVEQkKKSgkAYsTLdOeD0+MYWrx AmQwMb5LZ9mRoYLO9yNKgQXkDaGIyqef12DFJgBlIWos3U54eVgJrVsa/5AzzG9NM2tM y26h8nPKwY55v0kZIPo4gFJs70Lvq3eVqwnDmBFXyFJC3pPhCiD+mOcTaWy4NpJVXLmV KtbS3RnC75KtOmCxCy69r09he6vyAesZ+cLkAODzrWrRi9ry3bLLggq9P8MLcUru4ERj eB7avTB6wQzs8tekSABNd3aE1fOIibrWgOpH0Jb+TpsS3YplbCoSUDvziKEL3YYPjsSW Svyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679617080; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YXZmNUbirnPFl8q9p2tBnc2aY6ycoSjw1TdsaS3/lsw=; b=AUWfZNqTNguP/yg3vXEIUlw4KasNPA35n5OixR61u3BPGf4Vp7KQ3aY3nLZ7us9s3B LaM3DxU9pgq8e4sOuTwcfTecKKAwHYuGBI43b+ZadYBqpUh8vTffwTwoyOx05IsSNG23 Uj98HINqTGrHVh/zoU2PnBLGOJidRx8gW0mdXAZ8cCYUN1uiXYX+a/ASrgsirfZzdlA4 xZ2o1dJGMG/v4eHyBcw2kCyrFJ6k4Hdq1lSPCTtQcwiw8ML5ujc39U/PPAhG9LpdBDDT NnQtC8GU7RFTG2HWQgfCmnd32utkUpEW3CS30Gu461IObxIeKQcEcVVLEsHauFvg3gmZ Ex1g== X-Gm-Message-State: AAQBX9cbCNEWAq0aUYHTLe6g5gErWenSSIlfZ7qU5AbYrTsdX2aG/V06 /r0SIZm0Eea+G7XbOVzg9TvPJg== X-Google-Smtp-Source: AKy350YSxRS1teUyJh9xtRbHVhHJuHsZ9juqstlxDXX88PN1mDWISCguYaJ4FEcS5Udj8lLqkYUK5Q== X-Received: by 2002:ac2:5318:0:b0:4ea:fa26:2378 with SMTP id c24-20020ac25318000000b004eafa262378mr176332lfh.23.1679617079950; Thu, 23 Mar 2023 17:17:59 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id i17-20020ac25231000000b004eafa77e435sm569147lfl.146.2023.03.23.17.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 17:17:59 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, Johan Hovold Subject: [PATCH 2/2] phy: qcom-qmp-pcie: sc8180x PCIe PHY has 2 lanes Date: Fri, 24 Mar 2023 03:17:52 +0300 Message-Id: <20230324001752.1768505-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230324001752.1768505-1-dmitry.baryshkov@linaro.org> References: <20230324001752.1768505-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-20230323_171801_918787_442BBEFE X-CRM114-Status: GOOD ( 10.07 ) 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 All PCIe PHYs on sc8180x platform have 2 lanes, so change the number of lanes to 2. Fixes: 94a407cc17a4 ("phy: qcom-qmp: create copies of QMP PHY driver") Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c index d580f3d3e221..c95bf7ec2abe 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c @@ -2193,7 +2193,7 @@ static const struct qmp_phy_cfg msm8998_pciephy_cfg = { }; static const struct qmp_phy_cfg sc8180x_pciephy_cfg = { - .lanes = 1, + .lanes = 2, .tbls = { .serdes = sc8180x_qmp_pcie_serdes_tbl,