From patchwork Thu Aug 20 07:56:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 248005 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp1135907ils; Thu, 20 Aug 2020 00:56:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwexeMy5DqLW1CgpgmEEB5VyD4N/5yl5eIGv7RUFaGxjRc7b+Fo88nBV7A01VcIIUQLlPZg X-Received: by 2002:a17:906:c310:: with SMTP id s16mr2097590ejz.466.1597910209878; Thu, 20 Aug 2020 00:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597910209; cv=none; d=google.com; s=arc-20160816; b=dk+7GTwLU8M6ILYT5ujTXR+NkT+TbcGWstuBuwOMFXAM70d+y22XVMi2mLlU4MxYAj asIYAjkGDIOyUobuQD7egUcnKs7tW2Wb2zSva7FPswJahVRLnpXc6p77oQbm/SoGYPJS K92qgAlser2TYcFasU/CUOZ348ajoK/VeQrkwWBD6qnfjHktFwPl4U1NPZ2JbTnO9jZJ HZOKQ09QgUCPgaXbiZS6O2hcBCP0oZBd1qjGoX7n8x/CVC62HoMWD25P2o3JExkGL2TE 7q6jVauwyp0Kqur8IacxE07ruJrRrIN9/l0SAFIfcAri5R9lgSUY8G3VkrMPCVjQ1KZU mwoA== 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=F2MDOdd0OoGgs6vybFQeYltao1MwvNlpVYOoAb0GyvA=; b=kLc1KtqyZEF+FQnz/jHpQnnyQWXoplpVR+wzZZdlIbNbDCX7Iu+qRIkKGRYWq8iX/M /e6N+OWtfUNB2LzQVjL8C9rACdPIdXeReR5rK8W7prp2L2fi1f2oNY3XfnsRTxaxY1Eg G4JJYorti1qMkTeQiV082o3QTb7icavRJqDmYyGDK8YCPG/bffA9llDRt/PbfkVaZY+l tKxCcB8PmGONZpd4Oy5F6n7fYFISWyRVmtsc2pykdKnHRD/vlBmiUxPGbcKPt0HxByZC tTiJ3nu432AKQlTlvDqHUPlDuoUTU2Uj3r8ghiJ6kmS2Q5ds7kavupv/3LDEvpUfAT05 Cz/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GffYcyO/"; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bj23si807183ejb.94.2020.08.20.00.56.49; Thu, 20 Aug 2020 00:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-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=@linaro.org header.s=google header.b="GffYcyO/"; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726905AbgHTH4s (ORCPT + 10 others); Thu, 20 Aug 2020 03:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbgHTH4l (ORCPT ); Thu, 20 Aug 2020 03:56:41 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC046C061383 for ; Thu, 20 Aug 2020 00:56:40 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id v15so746510pgh.6 for ; Thu, 20 Aug 2020 00:56:40 -0700 (PDT) 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=F2MDOdd0OoGgs6vybFQeYltao1MwvNlpVYOoAb0GyvA=; b=GffYcyO/OAQ/1rdq8V28TDq9AIAg37ScewFaIl2hjHMeSYZQi+As5RX8GwIjRa8MzV 34vz0u+AX9Fw0mNdO4kryIvMgWAShDuvBg5c4r4MFzT7iE7w92D/11ZkHT+iq3GHe3Jp KLkPKEuje6/33Kz+NPZDrWx7wtem5Ei/zHFRLICpXDF/LyELxK3OiCaaRM1zCP9rqFQc EVO0Hn32/NIVd0AWRSHwkE9ZPnNY8VVIXErTHsu0CSK3GFGeXwyhAeQ7qDEdFqhKZapi hrhSq2UML2xWrsewgbA1gIyMaai6mHw7LInNMdsbdRWH4rkRIcnmjBK4tWsxO2YHU1J2 9FZg== 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=F2MDOdd0OoGgs6vybFQeYltao1MwvNlpVYOoAb0GyvA=; b=ASxMfUHOzuqe2lKuK0KvZRoXbyXm+T46Wp2u3sJErKvhB0EvSWPgoKg0JrxxJA5sXE gkLU2uXHMNRI9lA9qkvKkMF3xDZ2Kk60ZM8cWm6tBTuLblScvKmmjc5bDil3RKArh2zy B4rIKNvfno5NZXTj2ob8e+vYn+TgEpOJYaPAX6WpUjFa1KxX3eLgbAb7K4grBg900R98 j1vJfN1XTen7aVGnzHAH/xOE0Y3jmuVkt1E7ZbMhI+oH9FQJQDuMolGMtVlg3a1hUHln 8119mo1P+5Y7X9KNPZH68cjf3WH4hZAxyiHQxrOnthNDIUgzwYYk+K4MtdZMs9YvCt7A 8aVg== X-Gm-Message-State: AOAM532YfZiliiXnKYJOeevnB/T9def14BEf/9o6uhTEy7gzERZN7XLR 6knB6eir9FDca75xqUuZUh58ZcKeSttVWA== X-Received: by 2002:a62:6186:: with SMTP id v128mr1349832pfb.211.1597910200301; Thu, 20 Aug 2020 00:56:40 -0700 (PDT) Received: from localhost ([122.172.43.13]) by smtp.gmail.com with ESMTPSA id q18sm1706490pfn.106.2020.08.20.00.56.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Aug 2020 00:56:39 -0700 (PDT) From: Viresh Kumar To: rnayak@codeaurora.org, Nishanth Menon , Stephen Boyd , Viresh Kumar Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , sibis@codeaurora.org, sbhanu@codeaurora.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 0/4] opp: general cleanups Date: Thu, 20 Aug 2020 13:26:30 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi, Here is another version of the cleanups I sent earlier. Rajendra: Please see if these work fine now. V3: - Dropped v2 1/4 as it is already merged. - New patch 4/4 added. - Reordered the first two patches here (Stephen) - disable regulator only if present Viresh Kumar (4): opp: Rename regulator_enabled and use it as status of all resources opp: Track device's resources configuration status opp: Split out _opp_set_rate_zero() opp: Remove _dev_pm_opp_find_and_remove_table() wrapper drivers/opp/core.c | 103 +++++++++++++++++++++------------------------ drivers/opp/cpu.c | 2 +- drivers/opp/of.c | 2 +- drivers/opp/opp.h | 5 +-- 4 files changed, 52 insertions(+), 60 deletions(-) -- 2.25.0.rc1.19.g042ed3e048af Tested-by: Rajendra Nayak