From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752087AbdFUGmt (ORCPT ); Wed, 21 Jun 2017 02:42:49 -0400 Received: from mail-dm3nam03on0077.outbound.protection.outlook.com ([104.47.41.77]:56832 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751149AbdFUGmp (ORCPT ); Wed, 21 Jun 2017 02:42:45 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: Peter Chen To: , , , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , Peter Chen Subject: [PATCH v16 0/7] power: add power sequence library Date: Wed, 21 Jun 2017 14:42:01 +0800 Message-ID: <1498027328-25078-1-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131425009626188252;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(979002)(6009001)(336005)(39410400002)(39850400002)(39380400002)(39400400002)(39840400002)(39860400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(377424004)(9170700003)(50466002)(5003940100001)(8936002)(50986999)(2201001)(498600001)(2906002)(356003)(36756003)(105606002)(106466001)(81166006)(8676002)(33646002)(7406005)(189998001)(7416002)(966005)(48376002)(77096006)(47776003)(38730400002)(6666003)(2171002)(5660300001)(86362001)(39060400002)(305945005)(6306002)(54906002)(8656002)(53936002)(50226002)(4326008)(104016004)(85426001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR0301MB0628;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD040;1:zVgejeV0oaUrdflqYDsH9588HIdRMj98pbK8XJlmpuVbrEv1kzDEv12vGTLhi3P1tT5SdSZxUoMcLrEF2KZzkf/WS/qiBAHlWSDpGt2NeAmlQfd1kcJ0bOzBXgnse7LCw3avvV8tpVofqlOnEriY/s6DBY0R+rDJ51P/dv4Vigp5+0CZGcgUcBKsezhRN0dEqf3HEb9mdIvLyB8NgMXe4lnoxhWmt951353rTdZ+Huw0BjksXDh/ho8KNQVV3ghgTawBGn+UDdFAyfJVWOS8DCWEa4ohPUf8oRsArnlbh51doAGDneRUDJyihe0UqUzI2uBDlN3lR8cWtasUn7iJNnKwRYcyJZI+oZIycOK9o6Ol3z7z0E2RmzyHPqr0bfMcGGWA3Mdq3UYiDIv9yctBbS/wG3CpVdGrweUwGqAP+RLhQ+JD+a8yFEBACPXWIcjtBbc2ximuCBYlFSLkGKp30NT/vUmtPdvH3TYZy9mQ4NSVT4soSgrThFKWrho19RQAbj8p7HQ0g9f9uxtFyi6pB886rPJO9e65LKmDSXpO3DhMHKv3WGU3xt+U83bRAlsPusi3+BjwmNhVfJ0J64HgwUlMx7FWmpA4k1ESeM/IoSgKZM3RcXFvDVhJ6uHWGNCUwIyUk/NV5IX6lNTfcrCpjsRhaA7czRAKpqTjueBC52mE4cco/H2wER3drzgvS0IZeQmPjiCPYhm2QAoad6V+43REuQvWFpC0YZdZJ9OGZD0= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2d138bb1-20c4-49ce-fed4-08d4b870b7c2 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BN1PR0301MB0628; X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0628;3:8gWY4sxDdX0C3gTkNwKy/YTaXSRuPJbjPHkkU94qfSw7/EdmTPC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J5ha2QMxx85Z94kw2yvPBFJR3SBdt+xYD2s8RNDlqkAOYJ2Fe6Zoj/qQvDjWsAUtcA4YwEQNa8pu+qCCb07nhrNfUEvQF1FPjH8A+ao/5Cu/LVyZkBqHQCgQgivEx9RSG04WsBPj7Yv4uvYA9SI6H93v7P/JMInvA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6096035)(20161123565025)(20161123563025)(20161123561025)(20161123556025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN1PR0301MB0628;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN1PR0301MB0628; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1PR0301MB0628;4:jj3ypu/BQGBmb1d4r+eMifJwLyx8WCLFTWqVWQmV?= =?us-ascii?Q?E/bVK40Tqp/cjIeqekREWv5uhOqtzyORBbV9zr0Me7hx0aufNdaS8TRNuP8E?= =?us-ascii?Q?DMKf7oRPzCjqytRb4YjAamTIaSLFOzMA3Oy9lVEdDjcpfBAS6D9fRff0uJIx?= =?us-ascii?Q?3zLSP/An91cClgHrD/lYHaZ7WTlXFGwrspJLQ4ZExUe1a3yO93ReAz0NZE75?= =?us-ascii?Q?NAJ9fV5CUQLnpKBXrrOQt3EEmlF3fMSGwHm+xKKeQzxt4vBziIktUWrGMP+d?= =?us-ascii?Q?uOjg7x/Oh9OehxoqkHhfy6e0JIktDQgdQ8j2h9k+SAKznz178s73ppgbGiwf?= =?us-ascii?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29V2CrJEOrOKutw?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0345CFD558 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1PR0301MB0628;23:Pus4Scpy4lGoGloLjUkga2zz8tHy+28N+05olB+?= =?us-ascii?Q?RwOVpvGmdqKsdnFuaKQmQXhr70XAR2Qdb2jFeJb0TZKQ++jDLomY5tkMpXz7?= =?us-ascii?Q?io73HkJoaSsaGphsi1HqxMAZ/5jgYBRVQ0ds0BMP5S0L05EEsffPpVaB0i6u?= =?us-ascii?Q?xEJqXXtlNyzPOoHGxxniR74h8PWqbnBitiWcG/OiuNVW4ldb3qHaQJa2rtko?= =?us-ascii?Q?USAbodR2R3Ogr/11yZqPUuV3V/Sixi6w0vyiXOra8UBRDTsI+ehVNhXklc0J?= =?us-ascii?Q?sYEOS8fCPjUb1CUdl9S4xgpGnegCoo2cumzQTTq8RpsNL+YjcmNjFXuGHhIL?= =?us-ascii?Q?O/PHK1NzR5D89aizJaZiOo2A+9JYDg14QdghnxvhlXsXf6GJE+qOk6+t6oGl?= =?us-ascii?Q?Fa/FlZ++WplfYQSYFlwd+5W1QJzfIekfJLxG8Jw4PQQchocH9YFugQjyKaV0?= =?us-ascii?Q?bclrG+oEhOAR3VPmXS09g81NgSq53kntiX5xd/f/mfBKopzKy01PwZSuEhow?= =?us-ascii?Q?qXmUM8RAm29cyMgMRdaDmfPWyiOXRs5JHk7WVqOo33IzobK5m05rhZANFU0I?= =?us-ascii?Q?Nzjrd7t/ZWoQcK59fh+vjKC3dhOa92B7sV6iQTzewMNvrNBdD/BUP72w0cul?= =?us-ascii?Q?QoYSIaEoCv/yVQIbpjrFKgkvKZuBd0OpcnxqncpligxjetQmxap/k60tAq6I?= =?us-ascii?Q?tTsPIiLIKy6mUOIwp8fwssFSoebp8kuct/RXo8f80h7NJl2B2j7vgyxY9PrL?= =?us-ascii?Q?uodpgCYY7zGC/I1oTiB4zzlmfu715Uc8kiApqoD2rTn7ejap2x91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Cq7dIi4TSvQuimF0UnkqDTLddQOj2nM77iNIiKaQqUcpxj4QV7c83O9yj0rmsTuVqhvWE9u4vgRa1M4yDUngT20nhvXRdLwAUw7cCL4uhpfb3QFuSNg7lYVIzMi2NcBhe2GLX+AjERy1go1V+M922GMWE5FMg0TUQQVjmnYeuxWk3ibYJqM9T1ZvyHTEICx1JiFazLrIJNsrmNwHnwsZV1eTWM0J6nFCw8Ma/dOm2mgdAz0ilgsZtdUPbzTszqQpVdMDdeBHr3sK009ZJjX8FP5Qz80aOWYJbxlAeCvwwPTXP/F2QsUSYCDw7IQuY/Px7bu0ciZ0MczSkt0HjE= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2017 06:42:42.1508 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0628 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a follow-up for my last power sequence framework patch set [1]. According to Rob Herring and Ulf Hansson's comments[2]. The kinds of power sequence instances will be added at postcore_initcall, the match criteria is compatible string first, if the compatible string is not matched between dts and library, it will try to use generic power sequence. The host driver just needs to call of_pwrseq_on/of_pwrseq_off if only one power sequence instance is needed, for more power sequences are used, using of_pwrseq_on_list/of_pwrseq_off_list instead (eg, USB hub driver). In future, if there are special power sequence requirements, the special power sequence library can be created. This patch set is tested on i.mx6 sabresx evk using a dts change, I use two hot-plug devices to simulate this use case, the related binding change is updated at patch [1/6], The udoo board changes were tested using my last power sequence patch set.[3] Except for hard-wired MMC and USB devices, I find the USB ULPI PHY also need to power on itself before it can be found by ULPI bus. @Rafael, USB Maintainer has already acked the USB related changes, would you consider queueing it at v4.13-rc1, sereval guys are waiting for this series. Thanks. Changes for v16: - Change match way between pwrseq instance and device. Currently, it maintains a global table for compatible string and corresponding pwrseq library allocation function. The match is occurred when host controller tries to carry out power on device, if it is matched, it will allocate pwrseq instance for this device. [Patch 2/7] - Add related compatible string maintained at pwrseq_match_table_list. [Patch 1/7] Changes for v15: - Change pwrseq list name at USB hub structure (pwrseq_on_list->pwrseq_list). [Patch 4/7] - Add USB Maintainer's Ack [Patch 4/7] Changes for v14: - Rebase for v4.12-rc1 - Delete some USB sysdev patches which has already merged Changes for v13: - Add more design descriptions at design doc and fix one build error introduced by v12 wrongly [Patch 2/12] - Add the last three dts patches which were forgotten at last series - Move the comment for usb_create_shared_hcd to correct place [Patch 3/12] - Add sysdev for shared hcd too for xhci-plat.c [Patch 6/12] Rafael, if the first two power sequence patches are ok for you, would you consider accept these first, the other USB patches can go through USB tree at v4.12-rc1? Changes for v12: - Add design doc and more comments at generic power sequence source file [Patch 2/9] - Introduce four Arnd Bergmann patches and one my ehci related patches, these patches are used to get property DT/firmware information at USB code, and these information are needed for power sequence operation at USB. With these five patches, my chipidea hack patch in previous patch set can be removed. [Patch 3-7/9] - Add -ENOENT judgement to avoid USB error if no power sequence library is chosen [9/9] Changes for v11: - Fix warning: (USB) selects POWER_SEQUENCE which has unmet direct dependencies (OF) - Delete redundant copyright statement. - Change pr_warn to pr_debug at wrseq_find_available_instance - Refine kerneldoc - %s/ENONET/ENOENT - Allocate pwrseq list node before than carry out power sequence on - Add mutex_lock/mutex_lock for pwrseq node browse at pwrseq_find_available_instance - Add pwrseq_suspend/resume for API both single instance and list - Add .pwrseq_suspend/resume for pwrseq_generic.c - Add pwrseq_suspend_list and pwrseq_resume_list for USB hub suspend and resume routine Changes for v10: - Improve the kernel-doc for power sequence core, including exported APIs and main structure. [Patch 2/8] - Change Kconfig, and let the user choose power sequence. [Patch 2/8] - Delete EXPORT_SYMBOL and change related APIs as local, these APIs do not be intended to export currently. [Patch 2/8] - Selete POWER_SEQUENCE at USB core's Kconfig. [Patch 4/8] Changes for v9: - Add Vaibhav Hiremath's reviewed-by [Patch 4/8] - Rebase to v4.9-rc1 Changes for v8: - Allocate one extra pwrseq instance if pwrseq_get has succeed, it can avoid preallocate instances problem which the number of instance is decided at compile time, thanks for Heiko Stuebner's suggestion [Patch 2/8] - Delete pwrseq_compatible_sample.c which is the demo purpose to show compatible match method. [Patch 2/8] - Add Maciej S. Szmigiero's tested-by. [Patch 7/8] Changes for v7: - Create kinds of power sequence instance at postcore_initcall, and match the instance with node using compatible string, the beneit of this is the host driver doesn't need to consider which pwrseq instance needs to be used, and pwrseq core will match it, however, it eats some memories if less power sequence instances are used. [Patch 2/8] - Add pwrseq_compatible_sample.c to test match pwrseq using device_id. [Patch 2/8] - Fix the comments Vaibhav Hiremath adds for error path for clock and do not use device_node for parameters at pwrseq_on. [Patch 2/8] - Simplify the caller to use power sequence, follows Alan's commnets [Patch 4/8] - Tested three pwrseq instances together using both specific compatible string and generic libraries. Changes for v6: - Add Matthias Kaehlcke's Reviewed-by and Tested-by. (patch [2/6]) - Change chipidea core of_node assignment for coming user. (patch [5/6]) - Applies Joshua Clayton's three dts changes for two boards, the USB device's reg has only #address-cells, but without #size-cells. Changes for v5: - Delete pwrseq_register/pwrseq_unregister, which is useless currently - Fix the linker error when the pwrseq user is compiled as module Changes for v4: - Create the patch on next-20160722 - Fix the of_node is not NULL after chipidea driver is unbinded [Patch 5/6] - Using more friendly wait method for reset gpio [Patch 2/6] - Support multiple input clocks [Patch 2/6] - Add Rob Herring's ack for DT changes - Add Joshua Clayton's Tested-by Changes for v3: - Delete "power-sequence" property at binding-doc, and change related code at both library and user code. - Change binding-doc example node name with Rob's comments - of_get_named_gpio_flags only gets the gpio, but without setting gpio flags, add additional code request gpio with proper gpio flags - Add Philipp Zabel's Ack and MAINTAINER's entry Changes for v2: - Delete "pwrseq" prefix and clock-names for properties at dt binding - Should use structure not but its pointer for kzalloc - Since chipidea core has no of_node, let core's of_node equals glue layer's at core's probe [1] http://www.spinics.net/lists/linux-usb/msg142755.html [2] http://www.spinics.net/lists/linux-usb/msg143106.html [3] http://www.spinics.net/lists/linux-usb/msg142815.html [4] http://www.spinics.net/lists/linux-usb/msg152375.html Joshua Clayton (2): ARM: dts: imx6qdl: Enable usb node children with ARM: dts: imx6q-evi: Fix onboard hub reset line Peter Chen (5): binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library power: add power sequence library binding-doc: usb: usb-device: add optional properties for power sequence usb: core: add power sequence handling for USB devices ARM: dts: imx6qdl-udoo.dtsi: fix onboard USB HUB property .../bindings/power/pwrseq/pwrseq-generic.txt | 53 ++++ .../devicetree/bindings/usb/usb-device.txt | 10 +- Documentation/power/power-sequence/design.rst | 54 ++++ MAINTAINERS | 9 + arch/arm/boot/dts/imx6q-evi.dts | 25 +- arch/arm/boot/dts/imx6qdl-udoo.dtsi | 26 +- arch/arm/boot/dts/imx6qdl.dtsi | 6 + drivers/power/Kconfig | 1 + drivers/power/Makefile | 1 + drivers/power/pwrseq/Kconfig | 20 ++ drivers/power/pwrseq/Makefile | 2 + drivers/power/pwrseq/core.c | 293 +++++++++++++++++++++ drivers/power/pwrseq/pwrseq_generic.c | 210 +++++++++++++++ drivers/usb/Kconfig | 1 + drivers/usb/core/hub.c | 49 +++- drivers/usb/core/hub.h | 1 + include/linux/power/pwrseq.h | 84 ++++++ 17 files changed, 808 insertions(+), 37 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/pwrseq/pwrseq-generic.txt create mode 100644 Documentation/power/power-sequence/design.rst create mode 100644 drivers/power/pwrseq/Kconfig create mode 100644 drivers/power/pwrseq/Makefile create mode 100644 drivers/power/pwrseq/core.c create mode 100644 drivers/power/pwrseq/pwrseq_generic.c create mode 100644 include/linux/power/pwrseq.h -- 2.7.4