From patchwork Sat Dec 10 20:03:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 32092 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1478188wrr; Sat, 10 Dec 2022 12:12:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf6q9tCUHRFmoaCGKJui1d0C1IwRtokk41nU5IeLNW61gFr7ArTDSra2Mhh6sxN5w2bLIMRf X-Received: by 2002:a17:906:4a56:b0:7c1:4a3:10b6 with SMTP id a22-20020a1709064a5600b007c104a310b6mr8928127ejv.53.1670703158121; Sat, 10 Dec 2022 12:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670703158; cv=none; d=google.com; s=arc-20160816; b=FVvEGkd8moDPWf02KqVxh4oYAOjsPtofsxH+8/wi3Z4fxWSyk7DHhCJ91N2OrPqbQZ A/UoDnjiHRKzkmHOMPrIQioT4WLOdS3YLN2nqbvuZcxbq2VM4lvgw7wGm/M6pTEZ321J aCgMujlkvL3+8+Q+XqMiEysP9XtolDezFT5z7WZSuCbQi2Lm9CIsAqBkpW8AZUjycOxr YScXCXgPRHhaXmvnGjYaLu0n8Yu13zWiLWSDGoTtxWHYHs7hBs1kvyUSYBXfcJHYq95m zUleVC18OxbUE55CSwGysWuBN6XoOuHbgOBSJWAfkemYBWgp6FJdgCkIOkqc6e2RAExG 5baQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xDt+cVjkMFpQCr4WbA0njzIJ8/m0OvNyfOzyjmNYhSc=; b=c467ClikTAqBy5nXSpBva0f9o9QcDoTXUNZNiPOXWMHBQBoWSnDMYGGdhAyEx95LPs ncFstQKXe8Kfpijqa3WvQ/MHYhnn3I8bzWH0nfyrGrKP9xsyvv8YhSlQNXgNv/uSaxcf Spbz2aIJSyVWGXxahsL23JzWV0EKrECVuueaMI8T3J1T7bU4D6KBd/rEahdWLQGH/5g8 X0PtagBRaC0G5U2FuJnLc9BBxBpNqRjn8DPKX+uqxIuocax0DliXErHnYB+5fw9saqF4 EmvDbkHaaEixF84vvyG/LcBDqbGaBwibigfLmd/+9D2QXlOerzEMHUhV0BWUDeZ09Ybm t9jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cbdwYWpT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne12-20020a1709077b8c00b007c10ac7fe46si3095722ejc.19.2022.12.10.12.12.15; Sat, 10 Dec 2022 12:12:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cbdwYWpT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229934AbiLJUEU (ORCPT + 99 others); Sat, 10 Dec 2022 15:04:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbiLJUEJ (ORCPT ); Sat, 10 Dec 2022 15:04:09 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D72A213F7E for ; Sat, 10 Dec 2022 12:04:08 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id p8so12219151lfu.11 for ; Sat, 10 Dec 2022 12:04:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=xDt+cVjkMFpQCr4WbA0njzIJ8/m0OvNyfOzyjmNYhSc=; b=cbdwYWpTVw/hWlTtSfZCil7N39WfC6Re7YQhOq8oVz4Wgsdfk1RJ+g/mY+MmANfWFM q4tzxHGHwDwr14gOPiMZ871Upc/blWpRVMZtOLHEpeo2h7lbqkl2tUwZepD/OB06f5dV k7cB8jMOMdh5pqEqmplIEYVWKCqTCUHTrOKfa2wwxIbvTKUO5R8TAhGf2shaMiG0wOZg OvybJUYi7HcIZUOE+qA0VVr+VwFf5Up49lY+4QyfSy/sWOet7OmynllwyYwtgSoUg3zx 6xubhTJmuQ7+Pj5OIrM0ar9FBGTMzBPLQtk31sp1HChXFvrM1qRl9pr2QaqXTmry9fuh fc+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=xDt+cVjkMFpQCr4WbA0njzIJ8/m0OvNyfOzyjmNYhSc=; b=ZTWc8BmGMV1rMmdevawuTFEqJ3d4FG2AD+3iSDMD3sFWRFW88Y9c8AnNcQWhwBEuBs bPDmOq6ZcTah20ey64eBkYCfX1kDg85GIDNRg4a7TqYzvAKK5AytkDHM+K/3Yu5kCzHS N1rsJa2k7aRYmYD2Xwv20V/K9CH5IV+l/n754uho257XQBLC80H3ACsfRWapzq2Gvima mqk6nTw+6OWVID2d5RmEzO0V3AowVxs/f9TV/uWrYY+usO3RaOwY5vsyDvtQV68KwkP2 gF4AJ7D5gWYDJ4you9un/ytUeF7BorwPr2e9Eo3EqqOQ86Gw5oCnatzucMx8DrR2T0KE hJ/Q== X-Gm-Message-State: ANoB5pkbz5ZmSYQK/aj9ezYWbYhCSmjbLvNYGv+BUpCyfDzi0Hxervik 9a+IWT6bqqKxo8a7XL1tGu37TA== X-Received: by 2002:ac2:5a1d:0:b0:4a7:9e45:4cd0 with SMTP id q29-20020ac25a1d000000b004a79e454cd0mr2801113lfn.13.1670702647248; Sat, 10 Dec 2022 12:04:07 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id h28-20020ac2597c000000b004b4f1ea713csm839628lfp.73.2022.12.10.12.04.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Dec 2022 12:04:06 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Georgi Djakov , Yassine Oudjana , Dmitry Baryshkov , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] interconnect: qcom: msm8996: Provide UFS clocks to A2NoC Date: Sat, 10 Dec 2022 21:03:50 +0100 Message-Id: <20221210200353.418391-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221210200353.418391-1-konrad.dybcio@linaro.org> References: <20221210200353.418391-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751859234661966189?= X-GMAIL-MSGID: =?utf-8?q?1751859234661966189?= On eMMC devices the bootloader has no business enabling UFS clocks. That results in a platform hang and hard reboot when trying to vote on paths including MASTER_UFS and since sync_state guarantees that it's done at boot time, this effectively prevents such devices from booting. Fix that. Fixes: 7add937f5222 ("interconnect: qcom: Add MSM8996 interconnect provider driver") Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- drivers/interconnect/qcom/msm8996.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/interconnect/qcom/msm8996.c b/drivers/interconnect/qcom/msm8996.c index c2903ae3b3bc..7ddb1f23fb2a 100644 --- a/drivers/interconnect/qcom/msm8996.c +++ b/drivers/interconnect/qcom/msm8996.c @@ -33,6 +33,13 @@ static const char * const bus_a0noc_clocks[] = { "aggre0_noc_mpu_cfg" }; +static const char * const bus_a2noc_clocks[] = { + "bus", + "bus_a", + "aggre2_ufs_axi", + "ufs_axi" +}; + static const u16 mas_a0noc_common_links[] = { MSM8996_SLAVE_A0NOC_SNOC }; @@ -1859,6 +1866,8 @@ static const struct qcom_icc_desc msm8996_a2noc = { .type = QCOM_ICC_NOC, .nodes = a2noc_nodes, .num_nodes = ARRAY_SIZE(a2noc_nodes), + .clocks = bus_a2noc_clocks, + .num_clocks = ARRAY_SIZE(bus_a2noc_clocks), .regmap_cfg = &msm8996_a2noc_regmap_config };