From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754523AbaEHMuv (ORCPT ); Thu, 8 May 2014 08:50:51 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:23619 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754482AbaEHMus (ORCPT ); Thu, 8 May 2014 08:50:48 -0400 X-AuditID: cbfec7f4-b7fb36d000006ff7-02-536b7da63f72 Message-id: <536B7DA4.5060008@samsung.com> Date: Thu, 08 May 2014 14:50:44 +0200 From: Tomasz Figa Organization: Samsung R&D Institute Poland User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-version: 1.0 To: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Russell King - ARM Linux , Kukjin Kim , Kumar Gala , Mark Rutland , Pawel Moll , Rob Herring , Bartlomiej Zolnierkiewicz , Stephen Warren , Stephen Boyd , Lorenzo Pieralisi , Ulf Hansson , Marek Szyprowski , Kevin Hilman , Philipp Zabel , Tomasz Figa Subject: Re: [PATCH v4 0/3] Generic Device Tree based power domain look-up References: <1399553109-6487-1-git-send-email-t.figa@samsung.com> In-reply-to: <1399553109-6487-1-git-send-email-t.figa@samsung.com> Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Ra0hTYRjHeXeuG62OS+1lSdKgIlFLyXiJiC4fPEhkoF0osJYONTeVHZUM LM1L5jYVspKlTlmGrNnaNNKpDbepeEErl5K30MKWKH2YlVpGzn3x24//hf8DD42J+nAxnZqe JVOmS+USUoAP/utzhT3PS4s7vFpwAJmrTQTSOYcJVLHYQKBCvYlEmvqPJPrpaAJIW9XFQ5Yv YwQatdaQyKNxAlQ98paHJkeFaPGPm0LNzmkKNY6/56HpgR4SVT5pxtHrumGAKho0PFTc5aTQ ypAKRwvdJTgyWP8C1Nd86SRkjXVGwBYVqkl2tFzDY9u10xSr7/zOYy2GByQ7NdZJsrZaI8W2 PLvLlrcaADunLwJs04vfFOux7GHNtRfOb78iOJ4kk6fmyJSHTlwXpLhXy/DMD0G3zHYdmQ+c gWWAT0PmCLROVRE+DoTvZkykl0VMI4CfbfwyINhgD4C1pROY1xAyIXCopmKzgDP74EJP62aB ZPZDT/7cJu/YyBjvjeNeDmAuw5kCB+Hr+sGVhzObuj8TBB+5bIR3AGM0FJyfvM/zGjuZGFin qcJ9V5yCOtUSVQZoms+choauMK+MMaHQVvyY9HEwbDEuYZXAT7tlQrslpt0SqweYAQTIshMz uRvJiohwTqrgstOTwxMzFBbge/5yG9D3HrMDhgaSbUL31ZQ4ESHN4XIVdgBpTOIvdOWmxYmE SdLc2zJlxjVltlzG2QGP5ovzgapZt3vXCNCvqdQHz8Wrz35bi4qUdHQcTZXcCd1rl0fXuhiz eHBwXGpVD6sHouazPmEmP7eYw4K7a14GBceHSb46nBP9jfTFmwbHm45SlbBk3P/HckzbfGFs lWw29kz/WkKwuTdP/Ms+9/SVdn22PSzW1T4FIhPWpdFpnl4JzqVII0IwJSf9Dw2fXKPaAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sent with wrong Rafael's address, please ignore this thread. Just resent with correct address. Sorry for the noise. Best regards, Tomasz On 08.05.2014 14:45, Tomasz Figa wrote: > Up till now there was no single generic method to bind devices to their > power domains using Device Tree. Each platform has been doing this using > its own way, example of which are Exynos power domain bindings [1] and > look-up code [2]. > > This series is intended to change this and provide generic DT bindings for > power domain specification and generic code performing look-up of power > domains and binding them to devices. > > First two patches are the most important part of this series, as they > introduce $subject. Patch 3 converts mach-exynos to use the new generic > method. Further patches are adding one more user of the new code, > mach-s3c64xx, with first 3 patches (4-6) required to clean-up its power > domain driver a bit and last 3 patches (9-11) adding display support for > Mini6410 board, including a node for display controller (FIMD) which is > a power domain consumer. > > The design of DT bindings and provider code is heavily inspired by > implementation of clock providers in Common Clock Framework, while > the code binding devices to power domains by my Exynos power domain > implementation (now removed by this series ;)). > > Successfully tested on Exynos4210-based Trats and Exynos4412-based Trats2 > boards using MFC, > > [1] Documentation/devicetree/bindings/arm/exynos/power_domain.txt > [2] arch/arm/mach-exynos/pm_domains.c > > Changes since v3: > (http://thread.gmane.org/gmane.linux.power-management.general/44571) > - rebased onto current Rafael's linux-pm bleeding-edge branch (0a112bf), > - renamed "power-domain" property to "power-domains" to facilitate further > extension to support multiple power domains per device in future. > > Changes since v2: > (http://thread.gmane.org/gmane.linux.kernel/1658926) > - rebased onto current Rafael's linux-pm bleeding-edge branch, > - dropped patches for s3c64xx for now. I will send them in separate series, > - do not call pm_genpd_dev_need_restore(true) in genpd_bind_domain(), > - fixed various stylistic issues reported in review comments. > > Changes since v1 (RFC): > [https://lkml.org/lkml/2014/1/11/141] > - rebased onto current Rafael's linux-pm bleeding-edge branch, > - reordered the patches a bit (to have the generic ones first), > - dropped renaming of S3C64xx power domains (as suggested by Mark Brown), > - added support for deferred probing (as suggested by Stephen Boyd), > - fixed several minor issues pointed by Stephen Boyd, > - replaced notifiers with direct hooks in driver core to make power domain > support independent from specific bus type and allow error handling. > > Tomasz Figa (3): > base: power: Add generic OF-based power domain look-up > drivercore: Bind/unbind power domain on probe/remove > ARM: exynos: Move to generic power domain bindings > > .../bindings/arm/exynos/power_domain.txt | 12 +- > .../devicetree/bindings/power/power_domain.txt | 51 ++++ > arch/arm/mach-exynos/pm_domains.c | 81 +----- > drivers/base/dd.c | 9 +- > drivers/base/power/domain.c | 283 +++++++++++++++++++++ > include/linux/pm_domain.h | 46 ++++ > kernel/power/Kconfig | 4 + > 7 files changed, 398 insertions(+), 88 deletions(-) > create mode 100644 Documentation/devicetree/bindings/power/power_domain.txt >