From patchwork Wed Jul 8 15:45:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 11651823 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 252C014E3 for ; Wed, 8 Jul 2020 15:46:25 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BA8B820720 for ; Wed, 8 Jul 2020 15:46:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="Nsrt/RHA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA8B820720 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=csie.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+4890+4520428+8129116@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id 8hRtYY4521763xTxMjPLHgjR; Wed, 08 Jul 2020 08:46:22 -0700 X-Received: from wens.tw (wens.tw [140.112.194.72]) by mx.groups.io with SMTP id smtpd.web10.13559.1594223180864735099 for ; Wed, 08 Jul 2020 08:46:21 -0700 X-Received: by wens.tw (Postfix, from userid 1000) id 09D4B5FC87; Wed, 8 Jul 2020 23:46:17 +0800 (CST) From: "Chen-Yu Tsai (Moxa)" To: nobuhiro1.iwamatsu@toshiba.co.jp, pavel@denx.de Cc: cip-dev@lists.cip-project.org, JohnsonCH.Chen@moxa.com Subject: [cip-dev] [PATCH 4.4.y-cip 00/23] PM / OPP v2 & cpufreq backports part 2 Date: Wed, 8 Jul 2020 23:45:31 +0800 Message-Id: <20200708154554.26450-1-wens@csie.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Delivered-To: mailing list cip-dev@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: 5AmGpT2hGHrpTOARzH9jA2eXx4520428AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1594223182; bh=S++VZ7bKlOCcE6ssWGohsKeBSbzIcMljHXW6CgyGjvQ=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=Nsrt/RHAI8xXXJ1fNmDvz8DVTGgD/a/nJj0kQIEzTMauJsGEnNswZEOF0iS170wMKI3 kqwM19O5XqabkzDfI+vO+arIWj3w4WMFhJu9iC3HlYl2mHwKoFqJ8uSXeVOWvsvsAQMyp 1yqIpva9vfVfFEoD96S5XSCu5vl+uHMNylQ= Hi everyone, This is part 2 of MOXA's PM / OPP / cpufreq backport series. The whole series aims to backport patches related to PM / OPPv2 and cpufreq which were included in the v4.4 kernel from TI's SDK. The end goal is to include cpufreq-ti and convert am33xx to using it and OPPv2. Part 2 here includes patches from the v4.6 cycle, as well as additional fixed found through Fixes tags: 9f8ea969d5cf PM / OPP: get/put regulators from OPP core 7d34d56ef334 PM / OPP: Disable OPPs that aren't supported by the regulator 655c9df96175 PM / OPP: Introduce dev_pm_opp_get_max_volt_latency() 2174344765f4 PM / OPP: Introduce dev_pm_opp_get_max_transition_latency() 50f8cfbd5897 PM / OPP: Parse clock-latency and voltage-tolerance for v1 bindings d54974c2513f PM / OPP: Manage device clk 6a0712f6f199 PM / OPP: Add dev_pm_opp_set_rate() 896d6a4c0f41 cpufreq: dt: Convert few pr_debug/err() calls to dev_dbg/err() 457e99e60a8f cpufreq: dt: Rename 'need_update' to 'opp_v1' 391d9aef8145 cpufreq: dt: OPP layers handles clock-latency for V1 bindings as well 050794aaebbb cpufreq: dt: Pass regulator name to the OPP core 6def6ea75e6d cpufreq: dt: Unsupported OPPs are already disabled 755b888ff098 cpufreq: dt: Reuse dev_pm_opp_get_max_transition_latency() 78c3ba5df96c cpufreq: dt: Use dev_pm_opp_set_rate() to switch frequency df2c8ec28e73 cpufreq: dt: No need to fetch voltage-tolerance dd02a3d92008 cpufreq: dt: No need to allocate resources anymore 78ecc56247f0 PM / OPP: Fix NULL pointer dereference crash when disabling OPPs 0c717d0f9cb4 PM / OPP: Initialize regulator pointer to an error value a5da64477ee7 PM / OPP: Fix incorrect comments 2c2709dc6921 PM / OPP: Rename structures for clarity b318556479cc cpufreq: dt: Drop stale comment 21f8a99ce61b PM / OPP: Remove useless check c5c2a97b3ac7 PM / OPP: Update voltage in case freq == old_freq Of these, b318556479cc cpufreq: dt: Drop stale comment was found while looking through git logs. 21f8a99ce61b PM / OPP: Remove useless check c5c2a97b3ac7 PM / OPP: Update voltage in case freq == old_freq were found by looking for commit hashes in Fixes tags. All other patches were included from TI's SDK. The patches apply cleanly on top of linux-4.4.y-cip. The last patch involved some backporting due to path and code changes between v4.6 and v4.18. Please have a look. Regards ChenYu Jon Hunter (1): PM / OPP: Fix NULL pointer dereference crash when disabling OPPs Viresh Kumar (21): PM / OPP: get/put regulators from OPP core PM / OPP: Disable OPPs that aren't supported by the regulator PM / OPP: Introduce dev_pm_opp_get_max_volt_latency() PM / OPP: Introduce dev_pm_opp_get_max_transition_latency() PM / OPP: Parse clock-latency and voltage-tolerance for v1 bindings PM / OPP: Manage device clk PM / OPP: Add dev_pm_opp_set_rate() cpufreq: dt: Convert few pr_debug/err() calls to dev_dbg/err() cpufreq: dt: Rename 'need_update' to 'opp_v1' cpufreq: dt: OPP layers handles clock-latency for V1 bindings as well cpufreq: dt: Pass regulator name to the OPP core cpufreq: dt: Unsupported OPPs are already disabled cpufreq: dt: Reuse dev_pm_opp_get_max_transition_latency() cpufreq: dt: Use dev_pm_opp_set_rate() to switch frequency cpufreq: dt: No need to fetch voltage-tolerance cpufreq: dt: No need to allocate resources anymore PM / OPP: Initialize regulator pointer to an error value PM / OPP: Fix incorrect comments PM / OPP: Rename structures for clarity cpufreq: dt: Drop stale comment PM / OPP: Remove useless check Waldemar Rymarkiewicz (1): PM / OPP: Update voltage in case freq == old_freq drivers/base/power/opp/core.c | 1066 +++++++++++++++++++++--------- drivers/base/power/opp/cpu.c | 22 +- drivers/base/power/opp/debugfs.c | 85 ++- drivers/base/power/opp/opp.h | 74 ++- drivers/cpufreq/cpufreq-dt.c | 303 +++------ include/linux/pm_opp.h | 27 + 6 files changed, 973 insertions(+), 604 deletions(-)