From patchwork Fri Nov 6 07:03:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 319605 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1261EC5517A for ; Fri, 6 Nov 2020 07:05:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B0AF322210 for ; Fri, 6 Nov 2020 07:05:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="x7tyrPda" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726320AbgKFHFT (ORCPT ); Fri, 6 Nov 2020 02:05:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbgKFHFT (ORCPT ); Fri, 6 Nov 2020 02:05:19 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A620C0613D4 for ; Thu, 5 Nov 2020 23:05:19 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id y7so447740pfq.11 for ; Thu, 05 Nov 2020 23:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X+vlFfwXaQyT67tNUyi81s2s5dR5xJEgy0PknD0rbz4=; b=x7tyrPdaqh682SqGflCsojgjTQx+BXzkcw1rNmmcDJ4f1/CcNFqWsU2TeslilqRYW6 zc5/q2J7DYA6GaZpIl9YJEuw5A+2BygaKtcNZGbiJXmhxkSHLYjjXBFUVrm/3kU2FfxF HOpl09BHz7pxQM1vSb758PMQEHgdQo7a0vFwzSK04ezcCvy5z2tN77zFwQKb0oCEVS7Z 5Wf5xaSLDOcwVEQi6x3vCm1v9HcJ36wHsCS7oCefyqpWqoytt13+6MJpeHbxPKWMFUZ8 7D71Y1LBl2lTl2Ui7t2WW7/HoEOYoPNzVDuHeqlnp7Y7cKSpCWRT/VBoOVOVT9t0JXT2 P84Q== 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=X+vlFfwXaQyT67tNUyi81s2s5dR5xJEgy0PknD0rbz4=; b=B3OwofM0saoq8YpK8iVSmTeMlVlIXmz5A6xs8F18sXkSHSkvYgi8XhcRguSFCxYFJB XRBg0jwrG9DMJ2T+ALDBc6psyCJ4DghEkiaImtPU/K3FEeXTNcMWqIg1irlsdcp1fjkM eEcxrMmrAARF48vIvMgAXNqUf4zYG8wbEZ7F6lKT6iC3+rum0/XDVUw52KTdEXsrBmwj sHtKq7MlHC7o0GeHa4V6Z6nhxysZUb54Z7N6zvaos2ERN1JJytMgtfC6ttARIJT8ntyg D94vZnZ5loQQwRZ92tdO0cDgcURX70+BM4rb6Ib3xb6sQHLShkKFqq6pP4iXe815PTvw K+Kg== X-Gm-Message-State: AOAM531luRGM9dMiXXvgkwXeiG+YiUgSzUewx5GWc0zB/h05JGIpehas OkRRDKeucu/2KusL3N4yVmDf+w== X-Google-Smtp-Source: ABdhPJwjHQpNsy+GXHXCwxvkwHWtDNd475+Vq8i4kMmtZzheVVRcd/hAft+93Mx61nTSrMPFd3mZ/Q== X-Received: by 2002:a17:90a:af89:: with SMTP id w9mr989921pjq.72.1604646318621; Thu, 05 Nov 2020 23:05:18 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id r3sm1023098pjl.23.2020.11.05.23.05.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2020 23:05:17 -0800 (PST) From: Viresh Kumar To: Alyssa Rosenzweig , Andy Gross , Bjorn Andersson , Chanwoo Choi , Daniel Vetter , David Airlie , Ilia Lin , Krzysztof Kozlowski , Kukjin Kim , Kyungmin Park , MyungJoo Ham , Nishanth Menon , Qiang Yu , "Rafael J. Wysocki" , Rob Herring , Stanimir Varbanov , Stephen Boyd , Steven Price , Tomeu Vizoso , Viresh Kumar , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , digetx@gmail.com, dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 0/7] opp: Allow dev_pm_opp_put_*() APIs to accept NULL opp_table Date: Fri, 6 Nov 2020 12:33:20 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hello, This patchset updates the dev_pm_opp_put_*() helpers to accept a NULL pointer for the OPP table, in order to allow the callers to drop the unnecessary checks they had to carry. All these must get merged upstream through the OPP tree as there is a hard dependency on the first patch here. Thanks. Viresh Kumar (7): opp: Allow dev_pm_opp_put_*() APIs to accept NULL opp_table cpufreq: dt: dev_pm_opp_put_regulators() accepts NULL argument cpufreq: qcom-cpufreq-nvmem: dev_pm_opp_put_*() accepts NULL argument devfreq: exynos: dev_pm_opp_put_*() accepts NULL argument drm/lima: dev_pm_opp_put_*() accepts NULL argument drm/panfrost: dev_pm_opp_put_*() accepts NULL argument media: venus: dev_pm_opp_put_*() accepts NULL argument drivers/cpufreq/cpufreq-dt.c | 6 ++---- drivers/cpufreq/qcom-cpufreq-nvmem.c | 15 ++++++--------- drivers/devfreq/exynos-bus.c | 12 ++++-------- drivers/gpu/drm/lima/lima_devfreq.c | 13 ++++--------- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 6 ++---- drivers/media/platform/qcom/venus/pm_helpers.c | 3 +-- drivers/opp/core.c | 18 ++++++++++++++++++ 7 files changed, 37 insertions(+), 36 deletions(-) Reviewed-by: Ilia Lin