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: 11886257 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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 429A3C388F2 for ; Fri, 6 Nov 2020 07:07:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B423620825 for ; Fri, 6 Nov 2020 07:07:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nj3flv9r"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="x7tyrPda" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B423620825 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=tOY3bBTabWu85NDajFkJ8cA3bRE97rh/dsxhIqS4KIU=; b=nj3flv9rqGfXB2wv1eyZ5MlnDH LEfTcml0HCS2L1obu8yS1Sn40gJ2Tu3rxpDYqMSXHjO3Sbson3HEi4gU020sMnfAwlRIS/LvTFgQW b2YGcTXyQfvFP4cuPZhb9wVQEwMRGYOkhPA4sh02DiMWk2jf41tsmdQi5ADsGmCrjYk67Zr+U8eSp M+lLpJ3bXpYNlgb/4+n95B3BLgLZWZCfK5+jbGaGDa5ugybF0qrxCXG9+Twbxh5czbPVcB8MKjnXp +5ZCNfv2EUQGhJiOxJDj3YQkcJe9HAupPsG7jXBnKbSbDr+xiB2WuhPFKAIGVZYt0eWiKefmD8jN9 otjOT4VA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kavoL-0001Bm-TU; Fri, 06 Nov 2020 07:05:25 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kavoI-0001A3-EL for linux-arm-kernel@lists.infradead.org; Fri, 06 Nov 2020 07:05:23 +0000 Received: by mail-pg1-x541.google.com with SMTP id g12so224312pgm.8 for ; Thu, 05 Nov 2020 23:05:20 -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=a7heqloXW/ZmHxEeRSc3BsW+qqZlYcD7/9NU2rqj7lBBnjQB5AaeNFUedmC80ALJ/D TRMAM5Rk5bSzPpxxtX/yLYuWqDh9M/Hv5BhjiiJ6x8OCar1QAseHHb5QFqHNpeBGTR3s i9FAta2m+vkUEdDWbvFtsqMILALmxvB34DVKF7dsrPhyRyE7c38JItqbd5P1lkGht+9e LGCa6QpV0wwv02NXC5aZvJ8p1uBTS0ynFAc1pP9gOy9BR7SEbjbUtllJG3D0guyKqYe5 pSEJY9OZXlDANkRI7d0t5v1kOMdu11Kj2bPxQyfP4bQiK4QUQ8nZXwDGEuPr8JTJx++/ NVmA== X-Gm-Message-State: AOAM5327HRvRlsmOmw8KO/iBkszvCGSELUnzpfIqwCh0O2H9Yseubgvp w4+kL41849Aj4zUdD5TI9Tb74w== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_020522_587104_4822B405 X-CRM114-Status: GOOD ( 14.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, Vincent Guittot , lima@lists.freedesktop.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, digetx@gmail.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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