From patchwork Tue Apr 26 01:45:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 12826404 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19C9FC433EF for ; Tue, 26 Apr 2022 01:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=730GLxwS6/RNIu/BQ+hMpJaL4xApN+Zvs+ZfY5leDA8=; b=kMsmLeJ7RGHBaa /2eitkIUvZsHAaRBnPNs2KhpxvlDG95xY86b6FaepJnUXLrOE9m0aZNDc0ra/98CqlTHsXX4NY//u c5ClVa+D3496xWu96fYoXSXKOi1jqFRV7OO8hvVXiGBcQ4IaTYuHMcHs4YP85G5DIuTKEGebMQcNP ug4z0U0HLzwAkc6FdgftqECiwB2j4syK9uHXeDT3hedTclsZMm3Ori3xyzVvCTvO1IanMa8joRoMv 8wdpdvubOCJXa6FAytIqjky4OpM+GI3b5I+1QwTuZuGY001AyAOBrfA8KyrGyoYUHXsUDYVjJm6b/ lU4qU7qO0IItv34O4ltQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1njAHA-00C71x-60; Tue, 26 Apr 2022 01:46:00 +0000 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1njAH6-00C717-Od for linux-rockchip@lists.infradead.org; Tue, 26 Apr 2022 01:45:58 +0000 Received: by mail-pg1-x536.google.com with SMTP id g3so14187052pgg.3 for ; Mon, 25 Apr 2022 18:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fs39rG0hSjZgIyHtZoCrNmwLvEpFlExf0UyCmWSPVJU=; b=EJ6EB8ibaSZ7fpoRT+N+rrv7FqwPDOGoqJWhG7TlJm2BZJfXXBSW+5+xKU/fNtZAcY D0dr7hKl7tUDVHhHdA4Hfub20Gq76UFcTova6j8bYKkmHOrgYLwXle7gcsP34ma9uhfo EpzKbBD7GU+1tF63uKQl3J+8PjBqDb3uDJW6I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fs39rG0hSjZgIyHtZoCrNmwLvEpFlExf0UyCmWSPVJU=; b=ryV7jeor04d7fAiHMPTvmWzzQ47WZoKH9Ightfwtf+GFX3YJQK/zHivPS65wImT6u/ RhbdwKXhV/G3RgX/p33k237d309Q9SbvvPfAuie3/VyaNy2wdrV9QELvWW5aaVzg+acI vHMIGDf/LMkAm2RT2KzBC8+/i6if2LCDy1kRgunxnMHgu+3BYxaAL5oL6Nk7Eg2SPIiP 8rc0xej3gw7mPF6DyXCHOIVV27Q8AKKkBkYCXVn13yd7pw4RENcmQCrWbr5NxsjJ6zi6 WU2v7oyo6cbK+gmhB9XTMzncjyJTGxGmciUClyEh9A5vxgprexH+tEP1qGSYyDIb4y/X hygQ== X-Gm-Message-State: AOAM530f2iuxM13h9PqKFWPdXp+CsvCwdtrMXkMd/TAnQp0VDyzyvqug /nt79NzLrJ3s8A8KBxmsdhOpsw== X-Google-Smtp-Source: ABdhPJwdR5XizZKoGXDfQ7ukYvyvVepyzL47uugvCgpFGVfG+bCqh1tu06W/3af5zp4pxeMahoOX/Q== X-Received: by 2002:a63:c1b:0:b0:39d:93f7:4b7b with SMTP id b27-20020a630c1b000000b0039d93f74b7bmr17628068pgl.595.1650937554798; Mon, 25 Apr 2022 18:45:54 -0700 (PDT) Received: from localhost ([2620:15c:202:201:84c6:2d6d:c16:1a1b]) by smtp.gmail.com with UTF8SMTPSA id n20-20020a634d54000000b0039d18bf7864sm10908937pgl.20.2022.04.25.18.45.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Apr 2022 18:45:54 -0700 (PDT) From: Brian Norris To: Heiko Stuebner , Arnd Bergmann Cc: Robin Murphy , linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Guenter Roeck , Brian Norris Subject: [PATCH v3 1/3] soc: rockchip: Clean up Kconfig whitespace Date: Mon, 25 Apr 2022 18:45:42 -0700 Message-Id: <20220426014545.628100-1-briannorris@chromium.org> X-Mailer: git-send-email 2.36.0.rc2.479.g8af0fa9b8e-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220425_184556_859065_05211B1C X-CRM114-Status: GOOD ( 12.20 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org There are spaces instead of tabs, and other inconsistent indentation. Signed-off-by: Brian Norris Reviewed-by: Guenter Roeck --- (no changes since v2) Changes in v2: * New patch drivers/soc/rockchip/Kconfig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/soc/rockchip/Kconfig b/drivers/soc/rockchip/Kconfig index 156ac0e0c8fe..aff2f7e95237 100644 --- a/drivers/soc/rockchip/Kconfig +++ b/drivers/soc/rockchip/Kconfig @@ -23,23 +23,23 @@ config ROCKCHIP_IODOMAIN voltage supplied by the regulators. config ROCKCHIP_PM_DOMAINS - bool "Rockchip generic power domain" - depends on PM - select PM_GENERIC_DOMAINS - help - Say y here to enable power domain support. - In order to meet high performance and low power requirements, a power - management unit is designed or saving power when RK3288 in low power - mode. The RK3288 PMU is dedicated for managing the power of the whole chip. + bool "Rockchip generic power domain" + depends on PM + select PM_GENERIC_DOMAINS + help + Say y here to enable power domain support. + In order to meet high performance and low power requirements, a power + management unit is designed or saving power when RK3288 in low power + mode. The RK3288 PMU is dedicated for managing the power of the whole chip. - If unsure, say N. + If unsure, say N. config ROCKCHIP_DTPM tristate "Rockchip DTPM hierarchy" depends on DTPM && m help - Describe the hierarchy for the Dynamic Thermal Power - Management tree on this platform. That will create all the - power capping capable devices. + Describe the hierarchy for the Dynamic Thermal Power Management tree + on this platform. That will create all the power capping capable + devices. endif From patchwork Tue Apr 26 01:45:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 12826403 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3833EC433F5 for ; Tue, 26 Apr 2022 01:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=E9a/N1KgpMmO0u8i6wZU9TpPgTzZ7T4wMKS3V89QPLA=; b=B4KmHBITiPPqy4 Itz6dbxinPGXY8UYu/Sq8hwaV1HbLbjYyT6q76sjFfgABEy8Sz9imwsx1RxVTFGVtzhCrz/hrRIz0 M7EZbAUrDiJgt3kUKkz5PgbOHOEO83iaU/fWsawN/sFcx+jHzUimiwxkhDOVbfMa0QQaSl0vANwkI bxlknCQrK60lyFUkBdsRG1Jh2lU3C6SMYm7yfaF6CjVpM8Y0V4bqyLtnbSTgKFJucB549FUcUUA7V pu4wWqqaYDku8rdSu27ke+AT5KtZmv1aJaLCVhYiAHUhGqJ4/nz/PnrWRsVHU033iWlMS6bbVOxC8 A20cMvUAehyHzOrONt5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1njAHC-00C72y-J8; Tue, 26 Apr 2022 01:46:02 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1njAH7-00C71L-SE for linux-rockchip@lists.infradead.org; Tue, 26 Apr 2022 01:45:59 +0000 Received: by mail-pf1-x429.google.com with SMTP id y38so785776pfa.6 for ; Mon, 25 Apr 2022 18:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3d3BRK+rsV0H1MEivwe2mn7frrdSPcB90v4KWuBBaQM=; b=ej1HcqsW5KLOqLNaCI4dLiEgQGM6O8Sfb90ZyxBBlRzwTORd8VmkMrjWYneM4Mc/X0 6BgPOZ3i7s2PP3A12OBzv+lLyJJGIhm+pJtczgpiXmD2gQA6tnidUruHBfeY9f0iM3aS S/exhv1wqe+HQQjOWOak11BEW/weBv32YC2ws= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3d3BRK+rsV0H1MEivwe2mn7frrdSPcB90v4KWuBBaQM=; b=mmULxbiMmq01Vm7FJxo4A0gHnt5jrH1FoNMYkfcSI538aKOrkn5LzIqkVCczrGIpJu WD54KZegW/r0J/4vk781mO/UZqc/fnGQEdkx2Q7UU+aG/Xgg424FZgQ/lZOXlEUY3KTK MSYm0A3H2qhw7LEFZwhMVWT2eO2B4daY56H1EDAfoc5zXV1u8ZuAi0q5vOaoHxuXFt9r mUXjQzyM9HMIucJssvm9/X5fU4hvhfL8fxBX3GvK9POgHBbTy8afaMhsxpEkhCkZj7Y0 GCDhUum3whXa+GpcTMdRe/VXDDIVLXLGLe3QoudRFIPcI/V+GlNmKDZEGWdcD7/ewLya xpqw== X-Gm-Message-State: AOAM532rgxVIUFS/gskbWBt6vJOSs/9ZUEfswK0b2PpW4H+dkQUDOXJo ijZebWSqSunW2NCFOFnHqtUJyTF6vANJZQ== X-Google-Smtp-Source: ABdhPJw/aUTO4Volur0lD5eMJniKHG/Naw8BdeIAI9Zc5hYF0pNjW/rmonH1Z7xjPgDTBUflvk6nlg== X-Received: by 2002:a05:6a00:138e:b0:50a:9503:44a7 with SMTP id t14-20020a056a00138e00b0050a950344a7mr22021953pfg.75.1650937556699; Mon, 25 Apr 2022 18:45:56 -0700 (PDT) Received: from localhost ([2620:15c:202:201:84c6:2d6d:c16:1a1b]) by smtp.gmail.com with UTF8SMTPSA id i11-20020a654d0b000000b0039d82c3e68csm11169010pgt.55.2022.04.25.18.45.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Apr 2022 18:45:56 -0700 (PDT) From: Brian Norris To: Heiko Stuebner , Arnd Bergmann Cc: Robin Murphy , linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Guenter Roeck , Brian Norris Subject: [PATCH v3 2/3] soc: rockchip: power-domain: Replace dsb() with smb() Date: Mon, 25 Apr 2022 18:45:43 -0700 Message-Id: <20220426014545.628100-2-briannorris@chromium.org> X-Mailer: git-send-email 2.36.0.rc2.479.g8af0fa9b8e-goog In-Reply-To: <20220426014545.628100-1-briannorris@chromium.org> References: <20220426014545.628100-1-briannorris@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220425_184557_947892_4E92CBF9 X-CRM114-Status: GOOD ( 13.56 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org It's unclear if these are really needed at all, but seemingly their purpose is only as a write barrier. Use the general macro instead of the ARM-specific one. This driver is partially marked for COMPILE_TEST'ing, but it doesn't build under non-ARM architectures. Fix this up before *really* enabling it for COMPILE_TEST. Signed-off-by: Brian Norris Reviewed-by: Guenter Roeck --- Changes in v3: * New in v3 drivers/soc/rockchip/pm_domains.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index 1b029e494274..cf16ff9b73b3 100644 --- a/drivers/soc/rockchip/pm_domains.c +++ b/drivers/soc/rockchip/pm_domains.c @@ -178,7 +178,7 @@ static int rockchip_pmu_set_idle_request(struct rockchip_pm_domain *pd, regmap_update_bits(pmu->regmap, pmu->info->req_offset, pd_info->req_mask, idle ? -1U : 0); - dsb(sy); + wmb(); /* Wait util idle_ack = 1 */ target_ack = idle ? pd_info->ack_mask : 0; @@ -285,7 +285,7 @@ static void rockchip_do_pmu_set_power_domain(struct rockchip_pm_domain *pd, regmap_update_bits(pmu->regmap, pmu->info->pwr_offset, pd->info->pwr_mask, on ? 0 : -1U); - dsb(sy); + wmb(); if (readx_poll_timeout_atomic(rockchip_pmu_domain_is_on, pd, is_on, is_on == on, 0, 10000)) { From patchwork Tue Apr 26 01:45:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 12826405 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38A76C433FE for ; Tue, 26 Apr 2022 01:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CfNcjpGg0LJv2Nl1fn/FpesIGB2LyumotvnoRm5zLmM=; b=RC0ctyw9YzikFX 7E0aVVZFPqBpK68TY3Sq/WxIzmqKtg9GRLKJkHsvtCnkeygKym0h8+X6GhFsI9foxHuEa3iWTorfd 7KP+CDy7m5raT95lpQaEDwZgTXWrcaJQ6WJSFCkekvTY/BI2ayCefyS7oUYywfp1QvpsxvVUhQuXO wzbx2SjIlz0A7o6BvjzRA/7BUkEHGwTy5bGmdvgS2HrXIER8uQfVLHMLI9371dvl4v4BNtEFhLf8g C4lDrDqTYCFdUBW9Z0AM6OPHLfwyKwBMFc3JEQNde2Ks8YkeNJWCdKp7RgTYBHVbZOyws4JnwNpt4 Cjcvgwm2Q7MmYBfLaXcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1njAHF-00C73u-6R; Tue, 26 Apr 2022 01:46:05 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1njAHA-00C71e-5e for linux-rockchip@lists.infradead.org; Tue, 26 Apr 2022 01:46:01 +0000 Received: by mail-pg1-x530.google.com with SMTP id 15so6453894pgf.4 for ; Mon, 25 Apr 2022 18:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xEcNsOmWiSoMZTJZ9nDIHZwHU/nM01fZp19mgcJHcnc=; b=ONlUfnCtqgajUOOJkNwU0AWXmkQNY0M6ASjQrMi7sBEcTY6YbOGE9cr9gSq9Rnynkz Lqzeh4bhQp6RVjA4EVSy3nblPtdnIEnjq0dpmRKb5y/xXqc42zOPX5y5hot4QWmXxdT6 sAS+g1sGOgn8Va5e0kzERx2NuZaFGV235DLok= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xEcNsOmWiSoMZTJZ9nDIHZwHU/nM01fZp19mgcJHcnc=; b=BhN91TWVQ9/ix3nW/XfY8l7jJCIgHqcVajHQQvaec26cc0z/NA3nrGH6oJT2jnHNMb cbajWFdHIm444WdHTuY/GuZepyuzmIAkuFMm/ueo1jQ6/tSegXu9BahpmVrMhgzH4wcg kOATstfv9Fss3SniULO4kwKH7Lqh/FGUHDoSA+woz30v6mMWvw9FTO4ztkzTBRH/067C VLgJNQtbHLAnT4SiDvVhbL3e32Tvxu/DjzQ7wC8HgufihkyJZ2cBodsoeb8J86z8T8QL tdq82IwKhGc+2ES10peJ8ASh8jc3zyQ5vJmBO5qfIEUoGYPTgoCdsjbabKdXt/UpHBkX j7WA== X-Gm-Message-State: AOAM533bTA+ose91G0dVXOt+EwoUE3um4U7puoZpkTtx22FzIN7YsBwF PucJ3ntQVjmmzhZCdbMrVOQFg90lHDw1QA== X-Google-Smtp-Source: ABdhPJwxk4NagGqjyQ1Zjt4Y7KAzZSTlHKc6kbk46QcFNRRhLXNdVkKJpLaKkEUeZMQ8aJNP/sLzpg== X-Received: by 2002:a63:a61:0:b0:39c:b654:b753 with SMTP id z33-20020a630a61000000b0039cb654b753mr17149715pgk.117.1650937558631; Mon, 25 Apr 2022 18:45:58 -0700 (PDT) Received: from localhost ([2620:15c:202:201:84c6:2d6d:c16:1a1b]) by smtp.gmail.com with UTF8SMTPSA id c7-20020a62f847000000b0050bb32e3b8dsm10251134pfm.179.2022.04.25.18.45.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Apr 2022 18:45:58 -0700 (PDT) From: Brian Norris To: Heiko Stuebner , Arnd Bergmann Cc: Robin Murphy , linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Guenter Roeck , Brian Norris Subject: [PATCH v3 3/3] soc: rockchip: Fix compile-testing SoC drivers Date: Mon, 25 Apr 2022 18:45:44 -0700 Message-Id: <20220425184503.v3.3.Id5f16dec920f620120c0a143a97a12e16d401760@changeid> X-Mailer: git-send-email 2.36.0.rc2.479.g8af0fa9b8e-goog In-Reply-To: <20220426014545.628100-1-briannorris@chromium.org> References: <20220426014545.628100-1-briannorris@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220425_184600_250483_D02520D7 X-CRM114-Status: GOOD ( 13.77 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Similar to commit 7f94b69ece51 ("ARM: ixp4xx: fix compile-testing soc drivers"). drivers/soc/rockchip/Kconfig makes plenty of provision for configuring drivers either for ARCH_ROCKCHIP or for COMPILE_TEST. But drivers/soc/Makefile pulls the rug out from under us, by refusing to build anything if we specified COMPILE_TEST but not ARCH_ROCKCHIP. Currently, I'm not aware of anything that breaks without this patch, but it certainly makes for confusing builds (CONFIG_ROCKCHIP_PM_DOMAINS=y, but we didn't actually compile the driver?) and leaves room for future error (I have pending patches that break confusingly with COMPILE_TEST=y even though their Kconfig dependencies seem correct [1]). Defer to drivers/soc/rockchip/{Makefile,Kconfig} to do the right thing. [1] e.g., https://lore.kernel.org/linux-rockchip/20220405184816.RFC.2.I2d73b403944f0b8b5871a77585b73f31ccc62999@changeid/ [RFC PATCH 2/2] PM / devfreq: rk3399_dmc: Block PMU during transitions Signed-off-by: Brian Norris Reviewed-by: Guenter Roeck --- Changes in v3: * Drop ARM||ARM64 dependency, now that bare dsb()s have been removed Changes in v2: * Depend on ARM||ARM64 drivers/soc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile index fd7717d597fc..4c91705a8bb3 100644 --- a/drivers/soc/Makefile +++ b/drivers/soc/Makefile @@ -23,7 +23,7 @@ obj-y += pxa/ obj-y += amlogic/ obj-y += qcom/ obj-y += renesas/ -obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/ +obj-y += rockchip/ obj-$(CONFIG_SOC_SAMSUNG) += samsung/ obj-$(CONFIG_SOC_SIFIVE) += sifive/ obj-y += sunxi/