From patchwork Sun May 21 20:38:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 684642 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 074BAC7EE2F for ; Sun, 21 May 2023 20:38:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230433AbjEUUil (ORCPT ); Sun, 21 May 2023 16:38:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbjEUUik (ORCPT ); Sun, 21 May 2023 16:38:40 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1125D2 for ; Sun, 21 May 2023 13:38:38 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f3b9755961so1263108e87.0 for ; Sun, 21 May 2023 13:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684701517; x=1687293517; 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=I68K3BB4iJfx3Xn7rbtjuQH5W+UC/hortCKGNEq34Zo=; b=pj01oD/DhA4/PgO4feLJ8t9ehDOMDF2InPTck84lY5WdhFPA8dFrZ/0ZwtlIAfDSjo mqftDUnLAWtwLc03DikoKEJwHtpN8uHlV3AG1YNFrFhjnNwnrGua0dC/WYiQ4BvLwp1X zriZ3ePEj7338L1BODdoIY0T/530dQGyrKpPfVLFy9Eco0CbF1oZiloeo2l8iG7qVURP Mmm0NPimncaMGDJhA32BYjTzQlw8TJxGhqLuSAZySBpn04KAnO0Ul2Uv0x34d8Ja5IzY I+zHK4sAEIMe7l6focLM82i9Zr7tc/gpUeyjWT9HzhcIqcoBofD/dRjnl8xK7D/CYoqv IlyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684701517; x=1687293517; 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=I68K3BB4iJfx3Xn7rbtjuQH5W+UC/hortCKGNEq34Zo=; b=k7cOpNd1vYY5vngRGI/g6khIx6GJ0C8q3LHoTMV1yHqAgcYtBl8eh33Q6UVHgo+bPN zhqvmtkQnbHKK6A5oTlWOf05T3O48EMTxob7E4YtO2LINh5zquN2pF97MO1VisfMrGB7 effyjEiY3fADYI9qLj5OYRGad76f+CIFn2+5lcX9KfOF/cuK+vVDZh/AouTyoa1WRETH ChMqplY/+mjSl75jvl1d5JzWmNR6klxNxaA0Fm7Lb8XhVnqoK+0s1Go3jdkhfirpXRlS OuUBKTj8xEPzSy5G9yleGcTWQNY7qC9ikIRqUJc3rrvqOUscs+IAHhRmoMwj3cROUavx v9tA== X-Gm-Message-State: AC+VfDx4wQPQ7OVePMyw29gtsQpgeVU02IUofP32Vq1C8Qepl8/LkMSd wv5fTqiRz25cq/vPcX2nr3R7Q6Ak73gaND3iwfc= X-Google-Smtp-Source: ACHHUZ5hmXRPSqTfhQ9vTSq3nxEv2YfyIpbFxNUWDGxjmKUkje/zdKG3uQ4BUNrsBSYS4rZq2NX4tQ== X-Received: by 2002:a05:6512:489:b0:4ec:9e40:e445 with SMTP id v9-20020a056512048900b004ec9e40e445mr2666873lfq.19.1684701517021; Sun, 21 May 2023 13:38:37 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id a15-20020a056512020f00b004f3886a63d1sm718894lfo.298.2023.05.21.13.38.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 May 2023 13:38:36 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski Cc: Philipp Zabel , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, Johan Hovold Subject: [PATCH v2 02/11] phy: qcom-qmp-ufs: populate offsets configuration Date: Sun, 21 May 2023 23:38:25 +0300 Message-Id: <20230521203834.22566-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230521203834.22566-1-dmitry.baryshkov@linaro.org> References: <20230521203834.22566-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Populate offsets configuration for the rest of UFS PHYs to make it possible to switch them to the new (single-node) bindings style. Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c index 8c877b668bb9..d99dc1043f74 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c @@ -833,6 +833,8 @@ static const struct qmp_ufs_offsets qmp_ufs_offsets_v6 = { static const struct qmp_phy_cfg msm8996_ufsphy_cfg = { .lanes = 1, + .offsets = &qmp_ufs_offsets, + .tbls = { .serdes = msm8996_ufsphy_serdes, .serdes_num = ARRAY_SIZE(msm8996_ufsphy_serdes), @@ -924,6 +926,8 @@ static const struct qmp_phy_cfg sc8280xp_ufsphy_cfg = { static const struct qmp_phy_cfg sdm845_ufsphy_cfg = { .lanes = 2, + .offsets = &qmp_ufs_offsets, + .tbls = { .serdes = sdm845_ufsphy_serdes, .serdes_num = ARRAY_SIZE(sdm845_ufsphy_serdes), @@ -1038,6 +1042,8 @@ static const struct qmp_phy_cfg sm8150_ufsphy_cfg = { static const struct qmp_phy_cfg sm8250_ufsphy_cfg = { .lanes = 2, + .offsets = &qmp_ufs_offsets, + .tbls = { .serdes = sm8150_ufsphy_serdes, .serdes_num = ARRAY_SIZE(sm8150_ufsphy_serdes), @@ -1070,6 +1076,8 @@ static const struct qmp_phy_cfg sm8250_ufsphy_cfg = { static const struct qmp_phy_cfg sm8350_ufsphy_cfg = { .lanes = 2, + .offsets = &qmp_ufs_offsets, + .tbls = { .serdes = sm8350_ufsphy_serdes, .serdes_num = ARRAY_SIZE(sm8350_ufsphy_serdes), @@ -1102,6 +1110,8 @@ static const struct qmp_phy_cfg sm8350_ufsphy_cfg = { static const struct qmp_phy_cfg sm8450_ufsphy_cfg = { .lanes = 2, + .offsets = &qmp_ufs_offsets, + .tbls = { .serdes = sm8350_ufsphy_serdes, .serdes_num = ARRAY_SIZE(sm8350_ufsphy_serdes),