Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2829188pxb; Mon, 19 Apr 2021 15:21:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOXnGeFqiu4ZmL7ZH+GC7JowbWuXEqnUpOOPw0VvOz0kI/tPy0RJolT5zGyljGCX6IQnql X-Received: by 2002:a63:1813:: with SMTP id y19mr11394362pgl.144.1618870864486; Mon, 19 Apr 2021 15:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618870864; cv=none; d=google.com; s=arc-20160816; b=TdfBSXuu5UDfZHertzkhJM3/v6/fTdcj9FsTZD+z33mfRAGpR5wT2TkwiAIR+Upn8j P0LNp93X22VXjfz1FHTFPOa0k6/Xf1Lkmr+iqlZSNvmVOQLuW5n6RHN/YUG58T+frfgs 0+asgQkzQ8VPvz96EeQ1GcnNtWKFuu3ues5Fs0/Y0PZiTy4FNhc/kVuEpkbNeLx5qeLd aR4M9Qf6ywOg4cLby3lJ8Iue4H13ySTTp1m2e3PdlxtELNB/N96XSMthu5Qm6ngNbi+W 9dCAYM5sWHmUzypNnYBWrEgT5AoBwoRtL+p141GZz9HKcUPkX7l6W5kihOa8U+o9DJTQ AwhQ== 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=k6+or8w0hlPS9BfUysHRQJyGyr8qp36gvpVWtvdr5/8=; b=KJEta+IDJRNYQdPr2lFE/ry6pSVtl4Tdp/jXBDBclSV883t5GXblHKdckFYF0tY4Ye +BlPXFDtME36LC3MYWZ56xtsbkO0pI+zrDmfiN0yzELoasvfcYjM26lGZjHCynKeCnhD QySt+hWrpKtD1sUBa5ByuXM19DYu+ptQa8Aedtly5DAc3DCroULW0xnnRWrMwFXTsnab T+wl4FVnS/tEAfn2dB8wEjrzASf6Eoqcp2+98C5n2bOZVBFtXWi/BkaCp+d0wrRrmgPV o6Gg3nz+pI8gsYxxpKfltP4pI6/e/+xxMdq9EKuCQDutcOjgL2R0Z+IX8oXOsseRKDpp xmoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VVBM4lXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si18254628ple.156.2021.04.19.15.20.52; Mon, 19 Apr 2021 15:21:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VVBM4lXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242372AbhDSUoa (ORCPT + 99 others); Mon, 19 Apr 2021 16:44:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:53768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242247AbhDSUoX (ORCPT ); Mon, 19 Apr 2021 16:44:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0797461369; Mon, 19 Apr 2021 20:43:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618865032; bh=fLGDTO4vZkaAfbFcATg/22G+9ZUgFi8xRlu4Z6L0ViQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VVBM4lXDR+8lWY5rD7s8abE43vkM0aZnihlDtZMYnUeVyhAsFHCmPW01XG59gsz0p E3hEzlSMuLOnfcMU9xXi20FiWXX1vuw1spliVnlhCPOaviPCQy6oi+1WMomnE2oJl5 SUYVtyucRrMYXsMdz2xnpD7Kkcybhk+EMkPfXm8Efangafqna4Cjlw7Cp2yOcZ8/a4 lG8XIUQ09GB0FfGH9rh+iU3t1zNBagJ4yTpOTJK5klnTmO0bsDF9VlGbUpxgDoKQVE iI7jLKAfSYDYZp8qTdtofcFEahWeZorS1vd6DCnrhzDhOVIsuh7MydLSfWGbxHVB1x tyA9PXeg4uf1w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Shawn Guo , Bjorn Andersson , Sasha Levin , linux-arm-msm@vger.kernel.org Subject: [PATCH AUTOSEL 5.11 06/23] soc: qcom: geni: shield geni_icc_get() for ACPI boot Date: Mon, 19 Apr 2021 16:43:25 -0400 Message-Id: <20210419204343.6134-6-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210419204343.6134-1-sashal@kernel.org> References: <20210419204343.6134-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shawn Guo [ Upstream commit 0c9fdcdba68208270ae85d39600ea97da1718344 ] Currently, GENI devices like i2c-qcom-geni fails to probe in ACPI boot, if interconnect support is enabled. That's because interconnect driver only supports DT right now. As interconnect is not necessarily required for basic function of GENI devices, let's shield geni_icc_get() call, and then all other ICC calls become nop due to NULL icc_path, so that GENI devices keep working for ACPI boot. Reviewed-by: Bjorn Andersson Signed-off-by: Shawn Guo Link: https://lore.kernel.org/r/20210114112928.11368-1-shawn.guo@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/soc/qcom/qcom-geni-se.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c index 1fd29f93ff6d..5bdfb1565c14 100644 --- a/drivers/soc/qcom/qcom-geni-se.c +++ b/drivers/soc/qcom/qcom-geni-se.c @@ -756,6 +756,9 @@ int geni_icc_get(struct geni_se *se, const char *icc_ddr) int i, err; const char *icc_names[] = {"qup-core", "qup-config", icc_ddr}; + if (has_acpi_companion(se->dev)) + return 0; + for (i = 0; i < ARRAY_SIZE(se->icc_paths); i++) { if (!icc_names[i]) continue; -- 2.30.2