From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753255AbdLUK5p (ORCPT ); Thu, 21 Dec 2017 05:57:45 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:43268 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753040AbdLUK5l (ORCPT ); Thu, 21 Dec 2017 05:57:41 -0500 X-Google-Smtp-Source: ACJfBov3rR9o4TG7AClebliYd6crsWoQ+ezNopktSl9+uMmhb9avqrYUAWrtOrOsO0Lm/utaE+1TLfZFoWwm373PCDo= MIME-Version: 1.0 In-Reply-To: References: <1513778960-10073-1-git-send-email-ulf.hansson@linaro.org> <1513778960-10073-3-git-send-email-ulf.hansson@linaro.org> From: Ulf Hansson Date: Thu, 21 Dec 2017 11:57:40 +0100 Message-ID: Subject: Re: [PATCH v2 2/3] phy: core: Drop unused runtime PM APIs To: Yoshihiro Shimoda Cc: Kishon Vijay Abraham I , "linux-kernel@vger.kernel.org" , "Rafael J . Wysocki" , "linux-pm@vger.kernel.org" , Geert Uytterhoeven , "linux-renesas-soc@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21 December 2017 at 11:33, Yoshihiro Shimoda wrote: > Hi Ulf-san, > >> -----Original Message----- >> From: Ulf Hansson, Sent: Wednesday, December 20, 2017 11:09 PM > >> diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h >> index b4298a1..050b620 100644 >> --- a/include/linux/phy/phy.h >> +++ b/include/linux/phy/phy.h >> @@ -17,7 +17,6 @@ >> #include >> #include >> #include >> -#include > > After I applied this patch, some ata and gpu drivers causes build error [1]. > So, we should fix the drivers at first... Huh, right, those drivers shouldn't be relying on the phy.h to include pm_runtime.h. The easiest way at this point is to just put back "#include " in phy.h, then we can deal with these problems separately. I do that in a re-spin soon. BTW, I would be great if you could test this on the Renesas SoC to make sure it still fixes the problems (at least half of them I mean). Thanks and kind regards Uffe > > Best regards, > Yoshihiro Shimoda > --- > [1] > drivers/ata/ahci_qoriq.c: In function 'ahci_qoriq_resume': > drivers/ata/ahci_qoriq.c:318:2: error: implicit declaration of function 'pm_runtime_disable' [-Werror=implicit-function-declaration] > pm_runtime_disable(dev); > ^ > drivers/ata/ahci_qoriq.c:319:2: error: implicit declaration of function 'pm_runtime_set_active' [-Werror=implicit-function-declaration] > pm_runtime_set_active(dev); > ^ > drivers/ata/ahci_qoriq.c:320:2: error: implicit declaration of function 'pm_runtime_enable' [-Werror=implicit-function-declaration] > pm_runtime_enable(dev); > ^ > drivers/ata/ahci.c: In function 'ahci_init_one': > drivers/ata/ahci.c:1761:2: error: implicit declaration of function 'pm_runtime_put_noidle' [-Werror=implicit-function-declaration] > pm_runtime_put_noidle(&pdev->dev); > ^ > drivers/ata/ahci.c: In function 'ahci_remove_one': > drivers/ata/ahci.c:1767:2: error: implicit declaration of function 'pm_runtime_get_noresume' [-Werror=implicit-function-declaration] > pm_runtime_get_noresume(&pdev->dev); > ^ > drivers/ata/libahci.c: In function 'ahci_rpm_get_port': > drivers/ata/libahci.c:239:9: error: implicit declaration of function 'pm_runtime_get_sync' [-Werror=implicit-function-declaration] > return pm_runtime_get_sync(ap->dev); > ^ > drivers/ata/libahci.c: In function 'ahci_rpm_put_port': > drivers/ata/libahci.c:251:2: error: implicit declaration of function 'pm_runtime_put' [-Werror=implicit-function-declaration] > pm_runtime_put(ap->dev); > ^ > drivers/ata/ahci_ceva.c: In function 'ceva_ahci_resume': > drivers/ata/ahci_ceva.c:326:2: error: implicit declaration of function 'pm_runtime_disable' [-Werror=implicit-function-declaration] > pm_runtime_disable(dev); > ^ > drivers/ata/ahci_ceva.c:327:2: error: implicit declaration of function 'pm_runtime_set_active' [-Werror=implicit-function-declaration] > pm_runtime_set_active(dev); > ^ > drivers/ata/ahci_ceva.c:328:2: error: implicit declaration of function 'pm_runtime_enable' [-Werror=implicit-function-declaration] > pm_runtime_enable(dev); > ^ > cc1: some warnings being treated as errors > make[2]: *** [drivers/ata/ahci_qoriq.o] Error 1 > make[2]: *** Waiting for unfinished jobs.... > cc1: some warnings being treated as errors > make[2]: *** [drivers/ata/ahci_ceva.o] Error 1 > cc1: some warnings being treated as errors > make[2]: *** [drivers/ata/ahci.o] Error 1 > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c: In function 'analogix_dp_get_modes': > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:949:3: error: implicit declaration of function 'pm_runtime_get_sync' [-Werror=implicit-function-declaration] > pm_runtime_get_sync(dp->dev); > ^ > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:951:3: error: implicit declaration of function 'pm_runtime_put' [-Werror=implicit-function-declaration] > pm_runtime_put(dp->dev); > ^ > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c: In function 'analogix_dp_bridge_disable': > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1120:2: error: implicit declaration of function 'pm_runtime_put_sync' [-Werror=implicit-function-declaration] > pm_runtime_put_sync(dp->dev); > ^ > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c: In function 'analogix_dp_bind': > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1387:2: error: implicit declaration of function 'pm_runtime_enable' [-Werror=implicit-function-declaration] > pm_runtime_enable(dev); > ^ > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1431:2: error: implicit declaration of function 'pm_runtime_disable' [-Werror=implicit-function-declaration] > pm_runtime_disable(dev); > ^ > drivers/gpu/drm/exynos/exynos_drm_dsi.c: In function 'exynos_dsi_enable': > drivers/gpu/drm/exynos/exynos_drm_dsi.c:1385:2: error: implicit declaration of function 'pm_runtime_get_sync' [-Werror=implicit-function-declaration] > pm_runtime_get_sync(dsi->dev); > ^ > drivers/gpu/drm/exynos/exynos_drm_dsi.c:1392:3: error: implicit declaration of function 'pm_runtime_put_sync' [-Werror=implicit-function-declaration] > pm_runtime_put_sync(dsi->dev); > ^ > drivers/gpu/drm/exynos/exynos_drm_dsi.c: In function 'exynos_dsi_probe': > drivers/gpu/drm/exynos/exynos_drm_dsi.c:1797:2: error: implicit declaration of function 'pm_runtime_enable' [-Werror=implicit-function-declaration] > pm_runtime_enable(dev); > ^ > drivers/gpu/drm/exynos/exynos_drm_dsi.c: In function 'exynos_dsi_remove': > drivers/gpu/drm/exynos/exynos_drm_dsi.c:1808:2: error: implicit declaration of function 'pm_runtime_disable' [-Werror=implicit-function-declaration] > pm_runtime_disable(&pdev->dev); > ^ > drivers/gpu/drm/rockchip/cdn-dp-core.c: In function 'cdn_dp_clk_enable': > drivers/gpu/drm/rockchip/cdn-dp-core.c:111:8: error: implicit declaration of function 'pm_runtime_get_sync' [-Werror=implicit-function-declaration] > ret = pm_runtime_get_sync(dp->dev); > ^ > drivers/gpu/drm/rockchip/cdn-dp-core.c:137:2: error: implicit declaration of function 'pm_runtime_put' [-Werror=implicit-function-declaration] > pm_runtime_put(dp->dev); > ^ > drivers/gpu/drm/rockchip/cdn-dp-core.c: In function 'cdn_dp_clk_disable': > drivers/gpu/drm/rockchip/cdn-dp-core.c:148:2: error: implicit declaration of function 'pm_runtime_put_sync' [-Werror=implicit-function-declaration] > pm_runtime_put_sync(dp->dev); > ^ > drivers/gpu/drm/rockchip/cdn-dp-core.c: In function 'cdn_dp_bind': > drivers/gpu/drm/rockchip/cdn-dp-core.c:1094:2: error: implicit declaration of function 'pm_runtime_enable' [-Werror=implicit-function-declaration] > pm_runtime_enable(dev); > ^ > drivers/gpu/drm/rockchip/cdn-dp-core.c: In function 'cdn_dp_unbind': > drivers/gpu/drm/rockchip/cdn-dp-core.c:1118:2: error: implicit declaration of function 'pm_runtime_disable' [-Werror=implicit-function-declaration] > pm_runtime_disable(dev); > ^ > cc1: some warnings being treated as errors > make[2]: *** [drivers/ata/libahci.o] Error 1 > make[1]: *** [drivers/ata] Error 2 > make[1]: *** Waiting for unfinished jobs.... > cc1: some warnings being treated as errors > make[5]: *** [drivers/gpu/drm/bridge/analogix/analogix_dp_core.o] Error 1 > make[4]: *** [drivers/gpu/drm/bridge/analogix] Error 2 > make[3]: *** [drivers/gpu/drm/bridge] Error 2 > make[3]: *** Waiting for unfinished jobs.... > cc1: some warnings being treated as errors > make[4]: *** [drivers/gpu/drm/exynos/exynos_drm_dsi.o] Error 1 > make[3]: *** [drivers/gpu/drm/exynos] Error 2 > cc1: some warnings being treated as errors > make[4]: *** [drivers/gpu/drm/rockchip/cdn-dp-core.o] Error 1 > make[3]: *** [drivers/gpu/drm/rockchip] Error 2 > make[2]: *** [drivers/gpu/drm] Error 2 > make[1]: *** [drivers/gpu] Error 2 > make: *** [drivers] Error 2 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f193.google.com ([209.85.223.193]:46347 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753033AbdLUK5l (ORCPT ); Thu, 21 Dec 2017 05:57:41 -0500 Received: by mail-io0-f193.google.com with SMTP id x129so20634033iod.13 for ; Thu, 21 Dec 2017 02:57:41 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <1513778960-10073-1-git-send-email-ulf.hansson@linaro.org> <1513778960-10073-3-git-send-email-ulf.hansson@linaro.org> From: Ulf Hansson Date: Thu, 21 Dec 2017 11:57:40 +0100 Message-ID: Subject: Re: [PATCH v2 2/3] phy: core: Drop unused runtime PM APIs To: Yoshihiro Shimoda Cc: Kishon Vijay Abraham I , "linux-kernel@vger.kernel.org" , "Rafael J . Wysocki" , "linux-pm@vger.kernel.org" , Geert Uytterhoeven , "linux-renesas-soc@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: On 21 December 2017 at 11:33, Yoshihiro Shimoda wrote: > Hi Ulf-san, > >> -----Original Message----- >> From: Ulf Hansson, Sent: Wednesday, December 20, 2017 11:09 PM > >> diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h >> index b4298a1..050b620 100644 >> --- a/include/linux/phy/phy.h >> +++ b/include/linux/phy/phy.h >> @@ -17,7 +17,6 @@ >> #include >> #include >> #include >> -#include > > After I applied this patch, some ata and gpu drivers causes build error [1]. > So, we should fix the drivers at first... Huh, right, those drivers shouldn't be relying on the phy.h to include pm_runtime.h. The easiest way at this point is to just put back "#include " in phy.h, then we can deal with these problems separately. I do that in a re-spin soon. BTW, I would be great if you could test this on the Renesas SoC to make sure it still fixes the problems (at least half of them I mean). Thanks and kind regards Uffe > > Best regards, > Yoshihiro Shimoda > --- > [1] > drivers/ata/ahci_qoriq.c: In function 'ahci_qoriq_resume': > drivers/ata/ahci_qoriq.c:318:2: error: implicit declaration of function 'pm_runtime_disable' [-Werror=implicit-function-declaration] > pm_runtime_disable(dev); > ^ > drivers/ata/ahci_qoriq.c:319:2: error: implicit declaration of function 'pm_runtime_set_active' [-Werror=implicit-function-declaration] > pm_runtime_set_active(dev); > ^ > drivers/ata/ahci_qoriq.c:320:2: error: implicit declaration of function 'pm_runtime_enable' [-Werror=implicit-function-declaration] > pm_runtime_enable(dev); > ^ > drivers/ata/ahci.c: In function 'ahci_init_one': > drivers/ata/ahci.c:1761:2: error: implicit declaration of function 'pm_runtime_put_noidle' [-Werror=implicit-function-declaration] > pm_runtime_put_noidle(&pdev->dev); > ^ > drivers/ata/ahci.c: In function 'ahci_remove_one': > drivers/ata/ahci.c:1767:2: error: implicit declaration of function 'pm_runtime_get_noresume' [-Werror=implicit-function-declaration] > pm_runtime_get_noresume(&pdev->dev); > ^ > drivers/ata/libahci.c: In function 'ahci_rpm_get_port': > drivers/ata/libahci.c:239:9: error: implicit declaration of function 'pm_runtime_get_sync' [-Werror=implicit-function-declaration] > return pm_runtime_get_sync(ap->dev); > ^ > drivers/ata/libahci.c: In function 'ahci_rpm_put_port': > drivers/ata/libahci.c:251:2: error: implicit declaration of function 'pm_runtime_put' [-Werror=implicit-function-declaration] > pm_runtime_put(ap->dev); > ^ > drivers/ata/ahci_ceva.c: In function 'ceva_ahci_resume': > drivers/ata/ahci_ceva.c:326:2: error: implicit declaration of function 'pm_runtime_disable' [-Werror=implicit-function-declaration] > pm_runtime_disable(dev); > ^ > drivers/ata/ahci_ceva.c:327:2: error: implicit declaration of function 'pm_runtime_set_active' [-Werror=implicit-function-declaration] > pm_runtime_set_active(dev); > ^ > drivers/ata/ahci_ceva.c:328:2: error: implicit declaration of function 'pm_runtime_enable' [-Werror=implicit-function-declaration] > pm_runtime_enable(dev); > ^ > cc1: some warnings being treated as errors > make[2]: *** [drivers/ata/ahci_qoriq.o] Error 1 > make[2]: *** Waiting for unfinished jobs.... > cc1: some warnings being treated as errors > make[2]: *** [drivers/ata/ahci_ceva.o] Error 1 > cc1: some warnings being treated as errors > make[2]: *** [drivers/ata/ahci.o] Error 1 > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c: In function 'analogix_dp_get_modes': > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:949:3: error: implicit declaration of function 'pm_runtime_get_sync' [-Werror=implicit-function-declaration] > pm_runtime_get_sync(dp->dev); > ^ > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:951:3: error: implicit declaration of function 'pm_runtime_put' [-Werror=implicit-function-declaration] > pm_runtime_put(dp->dev); > ^ > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c: In function 'analogix_dp_bridge_disable': > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1120:2: error: implicit declaration of function 'pm_runtime_put_sync' [-Werror=implicit-function-declaration] > pm_runtime_put_sync(dp->dev); > ^ > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c: In function 'analogix_dp_bind': > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1387:2: error: implicit declaration of function 'pm_runtime_enable' [-Werror=implicit-function-declaration] > pm_runtime_enable(dev); > ^ > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1431:2: error: implicit declaration of function 'pm_runtime_disable' [-Werror=implicit-function-declaration] > pm_runtime_disable(dev); > ^ > drivers/gpu/drm/exynos/exynos_drm_dsi.c: In function 'exynos_dsi_enable': > drivers/gpu/drm/exynos/exynos_drm_dsi.c:1385:2: error: implicit declaration of function 'pm_runtime_get_sync' [-Werror=implicit-function-declaration] > pm_runtime_get_sync(dsi->dev); > ^ > drivers/gpu/drm/exynos/exynos_drm_dsi.c:1392:3: error: implicit declaration of function 'pm_runtime_put_sync' [-Werror=implicit-function-declaration] > pm_runtime_put_sync(dsi->dev); > ^ > drivers/gpu/drm/exynos/exynos_drm_dsi.c: In function 'exynos_dsi_probe': > drivers/gpu/drm/exynos/exynos_drm_dsi.c:1797:2: error: implicit declaration of function 'pm_runtime_enable' [-Werror=implicit-function-declaration] > pm_runtime_enable(dev); > ^ > drivers/gpu/drm/exynos/exynos_drm_dsi.c: In function 'exynos_dsi_remove': > drivers/gpu/drm/exynos/exynos_drm_dsi.c:1808:2: error: implicit declaration of function 'pm_runtime_disable' [-Werror=implicit-function-declaration] > pm_runtime_disable(&pdev->dev); > ^ > drivers/gpu/drm/rockchip/cdn-dp-core.c: In function 'cdn_dp_clk_enable': > drivers/gpu/drm/rockchip/cdn-dp-core.c:111:8: error: implicit declaration of function 'pm_runtime_get_sync' [-Werror=implicit-function-declaration] > ret = pm_runtime_get_sync(dp->dev); > ^ > drivers/gpu/drm/rockchip/cdn-dp-core.c:137:2: error: implicit declaration of function 'pm_runtime_put' [-Werror=implicit-function-declaration] > pm_runtime_put(dp->dev); > ^ > drivers/gpu/drm/rockchip/cdn-dp-core.c: In function 'cdn_dp_clk_disable': > drivers/gpu/drm/rockchip/cdn-dp-core.c:148:2: error: implicit declaration of function 'pm_runtime_put_sync' [-Werror=implicit-function-declaration] > pm_runtime_put_sync(dp->dev); > ^ > drivers/gpu/drm/rockchip/cdn-dp-core.c: In function 'cdn_dp_bind': > drivers/gpu/drm/rockchip/cdn-dp-core.c:1094:2: error: implicit declaration of function 'pm_runtime_enable' [-Werror=implicit-function-declaration] > pm_runtime_enable(dev); > ^ > drivers/gpu/drm/rockchip/cdn-dp-core.c: In function 'cdn_dp_unbind': > drivers/gpu/drm/rockchip/cdn-dp-core.c:1118:2: error: implicit declaration of function 'pm_runtime_disable' [-Werror=implicit-function-declaration] > pm_runtime_disable(dev); > ^ > cc1: some warnings being treated as errors > make[2]: *** [drivers/ata/libahci.o] Error 1 > make[1]: *** [drivers/ata] Error 2 > make[1]: *** Waiting for unfinished jobs.... > cc1: some warnings being treated as errors > make[5]: *** [drivers/gpu/drm/bridge/analogix/analogix_dp_core.o] Error 1 > make[4]: *** [drivers/gpu/drm/bridge/analogix] Error 2 > make[3]: *** [drivers/gpu/drm/bridge] Error 2 > make[3]: *** Waiting for unfinished jobs.... > cc1: some warnings being treated as errors > make[4]: *** [drivers/gpu/drm/exynos/exynos_drm_dsi.o] Error 1 > make[3]: *** [drivers/gpu/drm/exynos] Error 2 > cc1: some warnings being treated as errors > make[4]: *** [drivers/gpu/drm/rockchip/cdn-dp-core.o] Error 1 > make[3]: *** [drivers/gpu/drm/rockchip] Error 2 > make[2]: *** [drivers/gpu/drm] Error 2 > make[1]: *** [drivers/gpu] Error 2 > make: *** [drivers] Error 2 >