Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp742479ybz; Wed, 22 Apr 2020 07:13:22 -0700 (PDT) X-Google-Smtp-Source: APiQypKqwvHzoWKZ7WTOZoDa78AtEhuAFbRgx4SKuTZ94Qpcr9tgpRMRwyydW6FbZEwzVQcgFHkn X-Received: by 2002:aa7:c5cf:: with SMTP id h15mr23894859eds.213.1587564802358; Wed, 22 Apr 2020 07:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587564802; cv=none; d=google.com; s=arc-20160816; b=eHGrCkW3IhdO4RXsglhQQ24i0QYyNYrgCydnamdfEEMiMVhyKON9TAttd3CowISA1G DwI1NrQd/S3m/pc8XEvcmOQZMzEoUdO9z3q91B424mXNx47vOuRx1SZ6CF3uHz9PlWIT YPPZsvOSQKxmF6HiqYvF1XuGiHGMwHwNctA7QGcTYfszbpusjAj9RfPq2iVbTSseOSCY 9FFoNRuVvVnQKe+XL8ewtXAX++cL+cezeFQ1MVpibPl99xGWlWVfLUOrEFgfJAzh6VRQ xg3Ffoj9aqTMMfAoa+eREdxanWAKdeErpL7OcO4be0IgaogC+UnqqT5dOhmvn3MpWX7k qC0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5seySNK4hDDxpkyp20i2oYy5PSF73LNYovBB3BodsdY=; b=1IU4jOaATP1w6GwDl8gkoSMe3MFe6LWsVqVffq8O1BAGPtbG2Del3eaUyCcdVzD7CN jJxMegQ6uL1OrMj00op8UQgdKPyJ5eFK1xE6k/Sm9NRoGI+OuVPpxp5mBiU+ZhFp70fl xIpsMRsVohw0Dxrqejb39fTbf/zT/6yj8TYb0JY1/KkFbanQEyuaY3XOAIDlF4u0Ivam 1rGoWfBnx8azExE/Ts5LazYZQkE5wYr51R528cvTprt3UbEMZgQVwgfa6EvSeOA8/LDb x1d/D1LvIs/G2j1QF0SS1d/8/H4lvtQ1Eoip1sFoJqAVucWHJowBwGI1aMX6VUT0L92v yRcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="E/0pd5ed"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si3167980edv.316.2020.04.22.07.12.50; Wed, 22 Apr 2020 07:13:22 -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=@gmail.com header.s=20161025 header.b="E/0pd5ed"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbgDVOIi (ORCPT + 99 others); Wed, 22 Apr 2020 10:08:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725810AbgDVOIh (ORCPT ); Wed, 22 Apr 2020 10:08:37 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BF8AC03C1A9; Wed, 22 Apr 2020 07:08:36 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id x18so2571158wrq.2; Wed, 22 Apr 2020 07:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5seySNK4hDDxpkyp20i2oYy5PSF73LNYovBB3BodsdY=; b=E/0pd5edymyvaj47xBUYZpOZ4bLjv2UW1STlse0uImx7/yQtKEdpnZUgRogcjvia+7 HSheHhSZNHyf6KktPA/breNZnh48Jk9SR1SGCUEfRSlAWDLXCIbOR0GNzje3mnFEMQI8 3IMFjoa10qcper65UGJIsf1+eD4NBDyMjoNVNvoG6oxXrE69qnH4AC2Ihu7W/qlId/hv h1aRY5t55tqecKYj5wC4wRLHHs+GxJu0R6g1vIhtCvvIm5rjPDwbqd09n7KbaAVmfbp2 wOhDHKo2SYs2LIyBne71hUh5xlaMvA/JyVgOAI9xlEamQIysIriPVWGwu9xp9aqxxXH/ akGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5seySNK4hDDxpkyp20i2oYy5PSF73LNYovBB3BodsdY=; b=LHO1FEerU9bVJD9ttSluoKazGyFymanO5kB68xoOSbqVmhBpjCCJABsxMXgB0GqdvE YDWQfH2Q0ckxCzflbJeDB661wCey3yE2437Sz8Qjoq2A2lpW2Z5cj2QMEvHre8t30wXa 4YbpHespM17rEko9C9Ij2hW2r1Gd8XQAwJau9T3uBp0k6qBF5H23mX/tEWaVmY2LmXpS m1KSn7oTqHaHEgnui+0ivFtI+QpK+ZQsQODK3V95pNGqSQTaMX5ofyl6rMQSN8mYJJ/v GTVQPkTHyiI32LfkOsbgkVet8/KuZC+sNSfgwemxBchOSCce4lPvnOtlKpgXbDKzESq/ OVRg== X-Gm-Message-State: AGi0PuZVUgcrtyDOKP2AVWsVSEmjeYNR090QBk+sLUGmlmYh9v/G46rX J2YAaaqz3xacwpKGutHtLSc= X-Received: by 2002:a05:6000:14c:: with SMTP id r12mr29022424wrx.62.1587564514700; Wed, 22 Apr 2020 07:08:34 -0700 (PDT) Received: from Ansuel-XPS.localdomain (host36-18-dynamic.45-213-r.retail.telecomitalia.it. [213.45.18.36]) by smtp.googlemail.com with ESMTPSA id a9sm7526790wmm.38.2020.04.22.07.08.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2020 07:08:33 -0700 (PDT) From: Ansuel Smith To: Ilia Lin Cc: Ansuel Smith , Andy Gross , Bjorn Andersson , Viresh Kumar , Nishanth Menon , Stephen Boyd , Rob Herring , "Rafael J. Wysocki" , Sricharan R , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] cpufreq: qcom: fix compatibility issue with old binding Date: Wed, 22 Apr 2020 16:08:26 +0200 Message-Id: <20200422140827.1726-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Binding has changed from operating-points-v2-kryo-cpu to operating-points-v2-qcom-cpu. Also check for old binding in driver probe. Fixes: a8811ec764f9 cpufreq: qcom: Add support for krait based socs Signed-off-by: Ansuel Smith --- drivers/cpufreq/qcom-cpufreq-nvmem.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/cpufreq/qcom-cpufreq-nvmem.c b/drivers/cpufreq/qcom-cpufreq-nvmem.c index a1b8238872a2..8a0411efc79a 100644 --- a/drivers/cpufreq/qcom-cpufreq-nvmem.c +++ b/drivers/cpufreq/qcom-cpufreq-nvmem.c @@ -278,6 +278,10 @@ static int qcom_cpufreq_probe(struct platform_device *pdev) return -ENOENT; ret = of_device_is_compatible(np, "operating-points-v2-qcom-cpu"); + if (!ret) + ret = of_device_is_compatible(np, + "operating-points-v2-kyro-cpu"); + if (!ret) { of_node_put(np); return -ENOENT; -- 2.25.1