From patchwork Wed Apr 22 20:12:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 11504463 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F10AF1392 for ; Wed, 22 Apr 2020 20:12:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D8F2521582 for ; Wed, 22 Apr 2020 20:12:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="u1hPBAcy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726081AbgDVUMZ (ORCPT ); Wed, 22 Apr 2020 16:12:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbgDVUMY (ORCPT ); Wed, 22 Apr 2020 16:12:24 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34BBCC03C1A9; Wed, 22 Apr 2020 13:12:23 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id a2so2885384ejx.5; Wed, 22 Apr 2020 13:12:23 -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=KXxHIljFmLh8soPuXzemAjRAO1AtwvjZf5J7ToWtf8U=; b=u1hPBAcyimOPDcc2gD5ogfk1Ot74MUK5tYKviAVgA6IkyMxKKCCEMDVGkxkdEgfdc4 XM6G1lMg52sPDHfSR7z23W74gApPXHMukxAYl5kis+8QHlS0x/fEsX/8t1om9BQwD0SF zBONh7CDl7pC0lDbGxX0+r6Mx5BRBSCcpN5t3El8CZzFJVP5/BkQwG78YlGOE1IMqwoB 2QzLn6MIaY2guVhELsH5xU78iVVK6knNYDVrbw8Hxsa6ahrEYz4fBv+AaGtT8tCEkK/D oNth3+4/Wgo5jZ5hl0TYgD8WWpcfRle8/2Qo8di9i1wol8eczleLtryqxxNH68uWAmTq UbJg== 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=KXxHIljFmLh8soPuXzemAjRAO1AtwvjZf5J7ToWtf8U=; b=laf8d6tNL8bur27vnOipydfDLZ80L7POLYaBBM//EaxjmxAQ0Fop/zwy7i6haMF1fI MdorALb1SQIMTioVRav1fDOQ1wowmZcR7N7XOUjCBcp5R+UKJ0Lr8lWeBgL1JESFT2PG WW5l95TTaPWQ0OwW8GYZZ3ZWhpUu/AfFmN7fSCTMNTWSt5Z2Tb7bfzfaWRXQ3vKCO5cZ pG2aVCXjXjrdV3gtFWZCeeFjRMSPs6j5cfl4ilQtyUfHj0OW5wodLHXQ9EErILZ6W3JP KApIPxrAox04zqlLW8L8R3zJxDjYoJGovV2gAIc1SB5s+FaJoOMycPGYZzTuRlbBaU2h HK6A== X-Gm-Message-State: AGi0PuYpPP9gnN0bI28LgbQcCsYK5ZFLAxVZ6dLbE1pLu00yZA4shlaq lpbM8zE+PtVQNghHDNRHB8c= X-Google-Smtp-Source: APiQypLbfBgCcNY33E1Ne4qeN757gm6FckRRpoa0bnDaomgSbHDVMvWzDe6WgrndkPNb/HjvmjqE/w== X-Received: by 2002:a17:907:b11:: with SMTP id h17mr55555ejl.371.1587586341762; Wed, 22 Apr 2020 13:12:21 -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 q1sm8789ejf.42.2020.04.22.13.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2020 13:12:20 -0700 (PDT) From: Ansuel Smith To: Viresh Kumar Cc: Ansuel Smith , Andy Gross , Bjorn Andersson , Ilia Lin , Nishanth Menon , Stephen Boyd , Rob Herring , "Rafael J. Wysocki" , Sricharan R , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] cpufreq: qcom: fix compatibility issue with old binding Date: Wed, 22 Apr 2020 22:12:15 +0200 Message-Id: <20200422201216.10593-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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..9e9279162b5b 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-kryo-cpu"); + if (!ret) { of_node_put(np); return -ENOENT; From patchwork Wed Apr 22 20:12:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 11504467 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8A8411575 for ; Wed, 22 Apr 2020 20:12:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 73DE12074B for ; Wed, 22 Apr 2020 20:12:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YHrSmiNb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726544AbgDVUM1 (ORCPT ); Wed, 22 Apr 2020 16:12:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbgDVUM1 (ORCPT ); Wed, 22 Apr 2020 16:12:27 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B909C03C1A9; Wed, 22 Apr 2020 13:12:25 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id p16so2525125edm.10; Wed, 22 Apr 2020 13:12:25 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=6zad4RF+05Jwm8qNSsZR+cshHP+59d5C+IsAi9ivYdg=; b=YHrSmiNbUSrudYTj8V0jg6aMALMslByD6eV6qHd4bG1jS3BRn2Zuu/3f5RRKT3tUVQ P2iBdhGVH7X8QeNZ38IjkPRFTJHHngloK7n5kznqDHhWp/nhR35rtEjKAWWIm3n2D0ay Khnu6t6Uh45kTuOG4/4GyeG0t5+lwx+amL2Cp9bJm5yFWY3NckhkyWvtsdWaucnWOmSB /Pm/WXmEVxFgg8++m9R0sUnebDTs8UHFYe5Cj4rBY5ndpEVuZ2sdHcHkJbdqBaVU5e6N yVCPSemRTb0aN2qdI1AGT4Kne5IP9Y94zs3+pjkPS4vEm6dv/wMD9KCSIRp6nVTc7Xzp 0Ktw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=6zad4RF+05Jwm8qNSsZR+cshHP+59d5C+IsAi9ivYdg=; b=uR0tbJqqaMk9rY5NRiYRHZ9+GwisPKgFR+twuHlmkOqUl1kJLxhJ6Opr3Epeil60f/ nGTjBGmeDKETDqnsNfxFdlHQwfoXWLD3+9yQapM7HXXC92Tpo5fHrTqkVav/8o+7bm4l UKFyKWgMcqm1fpFcbznZJhmkZZEJbJAKDJSx8nt71CDW6elnCNwK99Gs9Vhe7WPqyb4v F/WyzSyG/i9vVcKf04fazbajLgSC8NI8dSQgwMfFVTYqT0zYspfknEb1HQpt6KupE3Fb guwy5N/EyFNK0n91NkvInz3qRjKkAqe/aU4yw6q2QvHRe7659SnEuHo17fSp6J6mjDUz 4gpw== X-Gm-Message-State: AGi0PuaMlvKA27qgB5MZn39lkEoTYmBCzcCpP4VTBxqesWnRA6BKU7Xv z+ChcDY0IC16ZH648eIeI3Y= X-Google-Smtp-Source: APiQypJ3zy1QxOAJO73zSL3bxLgBBrJrU6Y7TMlbnC5fxwRxv/5wEH80ZSpMgjqfdlGKAOIyxY1DoA== X-Received: by 2002:a50:cd4e:: with SMTP id d14mr253838edj.223.1587586344059; Wed, 22 Apr 2020 13:12:24 -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 q1sm8789ejf.42.2020.04.22.13.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2020 13:12:23 -0700 (PDT) From: Ansuel Smith To: Viresh Kumar Cc: Ansuel Smith , Andy Gross , Bjorn Andersson , Ilia Lin , Nishanth Menon , Stephen Boyd , Rob Herring , "Rafael J. Wysocki" , Sricharan R , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: opp: Fix wrong binding in qcom-nvmem-cpufreq Date: Wed, 22 Apr 2020 22:12:16 +0200 Message-Id: <20200422201216.10593-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200422201216.10593-1-ansuelsmth@gmail.com> References: <20200422201216.10593-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Update binding to new generic name "operating-points-v2-qcom-cpu" Fixes: a8811ec764f9 ("cpufreq: qcom: Add support for krait based socs") Signed-off-by: Ansuel Smith --- Documentation/devicetree/bindings/opp/qcom-nvmem-cpufreq.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/opp/qcom-nvmem-cpufreq.txt b/Documentation/devicetree/bindings/opp/qcom-nvmem-cpufreq.txt index 64f07417ecfb..537e1774f589 100644 --- a/Documentation/devicetree/bindings/opp/qcom-nvmem-cpufreq.txt +++ b/Documentation/devicetree/bindings/opp/qcom-nvmem-cpufreq.txt @@ -19,7 +19,7 @@ In 'cpu' nodes: In 'operating-points-v2' table: - compatible: Should be - - 'operating-points-v2-kryo-cpu' for apq8096, msm8996, msm8974, + - 'operating-points-v2-qcom-cpu' for apq8096, msm8996, msm8974, apq8064, ipq8064, msm8960 and ipq8074. Optional properties: