Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964965AbdGTJgd (ORCPT ); Thu, 20 Jul 2017 05:36:33 -0400 Received: from mail-cys01nam02on0056.outbound.protection.outlook.com ([104.47.37.56]:62912 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964940AbdGTJgW (ORCPT ); Thu, 20 Jul 2017 05:36:22 -0400 Authentication-Results: spf=softfail (sender IP is 192.88.158.2) smtp.mailfrom=gmail.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=gmail.com; Date: Thu, 20 Jul 2017 17:35:34 +0800 From: Peter Chen To: "Rafael J. Wysocki" CC: "Rafael J. Wysocki" , Peter Chen , Mark Rutland , Ulf Hansson , Heiko Stuebner , Stephen Boyd , , Linux Kernel Mailing List , Gary Bisson , Fabio Estevam , Joshua Clayton , Arnd Bergmann , Dmitry Eremin-Solenikov , Vaibhav Hiremath , Krzysztof Kozlowski , , Alan Stern , "devicetree@vger.kernel.org" , , Pawel Moll , Linux PM , Sascha Hauer , , Rob Herring , "linux-arm-kernel@lists.infradead.org" , , , Greg Kroah-Hartman , "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" , Sebastian Reichel , Mark Brown , , Shawn Guo , Subject: Re: [PATCH v16 2/7] power: add power sequence library Message-ID: <20170720093534.GA12449@b29397-desktop> References: <1498027328-25078-1-git-send-email-peter.chen@nxp.com> <20170719025559.GC26218@b29397-desktop> <4318803.QsccSH3mIv@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <4318803.QsccSH3mIv@aspire.rjw.lan> User-Agent: Mutt/1.5.24 (2015-08-30) X-EOPAttributedMessage: 0 X-Matching-Connectors: 131450169787834050;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39840400002)(39860400002)(39400400002)(39850400002)(39410400002)(39380400002)(39450400003)(2980300002)(24454002)(189002)(199003)(377454003)(51914003)(9170700003)(81442002)(73972006)(23726003)(5890100001)(1076002)(87572001)(33656002)(50466002)(76176999)(6666003)(50986999)(54356999)(4326008)(626005)(106466001)(105596002)(189998001)(82202002)(86362001)(104016004)(97756001)(77096006)(76482006)(73392002)(33716001)(46406003)(53546010)(7416002)(39060400002)(6246003)(8676002)(229853002)(5660300001)(38730400002)(110136004)(55016002)(7406005)(93886004)(47776003)(4001350100001)(81166006)(2950100002)(356003)(54906002)(83506001)(8656003)(8936002)(83322999)(6260500002)(9686003)(6916009)(305945005)(69596002)(2906002)(498600001)(53936002)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0301MB2116;H:az84smr01.freescale.net;FPR:;SPF:SoftFail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD054;1:IsjoKyNKOyu6T1IzbXl5jjK4WHEpVAhTiEw4NGXrewTl01DD9wtkAiX9T/G6ehSVzHYKkE7SqLSD3C4jK7i6rlyNjwwtxdwNcYCM/k6WYoFoAlvAknI4cCrD47UU3VjVGo0KZ7ihhgV+9ZpU+PKKVIlFaa5zQ94VGwTbuHAUmRxuN+KOPSi4tpANFDtVOGHp7ivVkv449dkIWHjxrnvkea6jbC6nGj/wDxqGIeQaCzgpyQJvuS+YYRzQnBJjFUXix9JyMhXugsapitUEBks7Q3Ft+E7qfamsgxxgdjshAe7XToujWSV3MZ2OV3XARGlJqfILX95vZ1D3/dbEd/P4SlGIqSF0/PhrvaPfQWug7GyVWFwWMpI6yXw9DwryC6nLmOSnaDb8YPUafr5+++lxx+gs01Q+rzBu3XdlqpKYTV1MWXmo10vjQyVvlGwx6XIzAbFsgINhsvmxmmX7D8SkQ2SaSHNChwxqpEGfK6ZNDtSiTErATO5lnpj4lHvAcLd/MKClYlptwAQziJLrXWEyLqNiwTejvvGcOIGTKOnujwgFBMtaMDA/l/4aHB0RTFwi62Bla5y2MeEtmGs26yL+RxwL4ydgBAEllKlw/H+xVJZHPmGo6E2XQGronxcWLk+ZBOg/0y3DfaCfIW2LbiQ7d26FVzQkcMf2xv856poDlq2n7GGxAtkWdE/Cc3GG2qdV0iENNJtLh0iHGMOGaluOs4L4Edcv+61w7XVTtBei5Xtx7jqvpX9NXCZ95FPHx72WKAKOKtFwpQ8yAR+yB/ALWpSLoJPJhMdX/U3eaz7BYXj17+xhdT2yrbSfQ21qcZwScfjL+eotCaP6Y5Vhquwhf4cYGmekiU7hInhCvMZj6i9ctUEuPVv8JJUncf3d8eF++O3pLHO91WBsJ/8Q3pjbQOfod+ZSmfJsS9agFb4PMKRdkEM5nhpKssg8IhhuoTFL X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 91e3c84c-6d56-4786-fd64-08d4cf52c652 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BLUPR0301MB2116; X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB2116;3:PngXguCJ5LpqrJ16tFdbI2vhKnxC1MQqaDawUkEnTtFr9Hlp0NK4x9Z62fAlsq+WU+C0nDuED2tfFiZoG4VPTnHyFhDk3CQX2LSihWTuWJTJ2WSn+MgMcL9FuNi7497IuH01IqgZuvZjn8vbftkbXb3n5vS34cDMm6iLvBKW3sRrJm6HwISHMggiCeADP1W8mEH12j78+gmYidirFME7dDmcxwGQ2pr4mIrZl3IDOHenGarLLM/dorc6UpcLRIIUPtJFdj5z3EJUC8MypWnYOiIGDgeCT5OadwgCGZFpPoPK+om0dr8RYou3GOXtAMjp3M/3v3Uhs0PDwmjC5VZRQ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HH0i7U235OkbYuIRocVQP7LNX4dji/sB90/P/iY6zg1zSwalJb/5oPfQQtLknE5fQlSn8bSkGwN1or+7S6RESLwmGhj7AcSRPWIxh5FHDrrrzs5TYHKo+mi4xLyf83jgaInNsqVLEgAC3reFfYjxOZG4BBlYOyFMSGowjsZg== X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(48057245064654)(148574349560750)(167848164394848)(148744244958124)(158140799945019)(247924648384137); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(2017060910075)(5005006)(13016025)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123563025)(20161123556025)(20161123565025)(20161123561025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BLUPR0301MB2116;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BLUPR0301MB2116; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR0301MB2116;4:d4GNvKWRLP9LBhw0flR1Di7+VQtlxETsTRxrzQGX?= =?us-ascii?Q?KTNOn/qYVIessA6qmhzCYt8lLYUWWHqwbX9fO6VMN0COY/o7DibpZfiOOdCY?= =?us-ascii?Q?LsqcyclGJ67E7A3U8JHPTQ1NLIuBnWd+ozfKrwDopTTzrRhHXW6v6+20tars?= =?us-ascii?Q?uCboIRYN3AvXCGYLPRHrsPupfqyqeITQiMbOAJeSUWTWRazgWY4F98NTzxdw?= =?us-ascii?Q?OX5RTb1BkhFhYTPxUXFXto0dtxV6H2foyFOQG7r2z5hHDIEhEUDVsqlEmcUH?= =?us-ascii?Q?ml14o/uUkcuYqQi6vRBBE5g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qcYMwke34OjejRa6t55fQoiH9pmvlUShNBaatUWWg/aOJhpe3xwUXu5F?= =?us-ascii?Q?NtHrRgP05gRyMvibbRXelN0BmyS5+Tso87XvoC0bTaf2n4EQtCFq7BI/hjsq?= =?us-ascii?Q?Qo/vhYMpkDmCSFg6FSAXjnboAcZdNsM6BYMfjyTFls1P6+cwSVWDNmqS1QPc?= =?us-ascii?Q?5D56skZgCgZkx/GzIKj8IfKKFRtiGKtYHB3aPL3Yk0GCyIhXt4WQ1iCqZ9K1?= =?us-ascii?Q?Vwlw1DrUmXtTv1SMKIR0WSA1RDckyNZJ4Q/MmpM8gXG/EgcQkLtd7P0CSfuS?= =?us-ascii?Q?Fnqbje9MxFFv/rnOmsONymjmi344Qf7UPUA=3D?= X-Forefront-PRVS: 0374433C81 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR0301MB2116;23:HAOM6ond/GuOV16FWQ+8px2YvtisPyzKP/Qb3nC?= =?us-ascii?Q?khy5Kb37cMU/xPPwJICtEAccIfqGUESl6YhHEoVtRavZghXi9Wo+TFxKQdNG?= =?us-ascii?Q?KmUdfA29KoP0lkkawRP/6P2pfkQg1MDPYqENlI6hRP8RGAotL5tnaqGQ+i80?= =?us-ascii?Q?3pmVHYx7rCRIT7okNFES3ebVaDENqLBn2XggPN4vnB+jBsfcUCvnVPpZwnDF?= =?us-ascii?Q?N+1SGNye8DEgV0FcFs2CGT0yzZ52MI4trtUtH23IYSmtCQj+SJEx+mUABAHu?= =?us-ascii?Q?nJuoKSaTgsbqfAlSKd1NxSZJH5C+nZgkTU1QWvK06jLJzh6sGVbUsQsKnVMq?= =?us-ascii?Q?c9ipmsRi3RsGPV9PlP2I2qPXP5YOXYfgLc1msxNj+kiLEBFbRY+7EZI7mi+5?= =?us-ascii?Q?H/pGbukKfnkhU+ADI5dMzYHSBWoZGVkzwEPNIkUjhvAxb6Rx/NKYmrw2KkIy?= =?us-ascii?Q?1vkZHSqO8g3aQSBVuirXKs4kEwn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hBieyje9AENwQQM+/VPJFoliO1jBdx7U8YkME0CVJHjLhEwuuP7cq?= =?us-ascii?Q?mdPclf8wRvUWIpPEoQmmgz/0WLz0tYRddqEcPR5CpzofxEsCziVndmb+qHnc?= =?us-ascii?Q?TMsjv1owtQyMK3gv9dnPuSuh/ENFdsfmnSRf7aJQAxUS9N+lvAuCc4+RnnO3?= =?us-ascii?Q?dpi1E24zqzLNrck2VIeES5PIdGhPIiwflqJBbT8z0eUt2pf8EC7s9Av0quuL?= =?us-ascii?Q?DvXHPRAaSSAORsvwwqWn/dLjkgBd7+IHbYsNkmfJrp9koj/UdneoDBmKivX0?= =?us-ascii?Q?TLnEP374r6/YDQyTw1ft2McV6XGF/EwUc1YvIT4/hQw8i9HQtziU7fhxlPv2?= =?us-ascii?Q?uq+BMQGytBvTv+4KH3JzBdM825W7k9g=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR0301MB2116;6:Sh0zFUW5nM4/GQwLGJuGsE1XlIY04GDbYabcZqRI?= =?us-ascii?Q?o2o32HBnMiEZZP+NhJNUWD4wE+Q9BXX76NcM6sfh5mN1B0jUqdNW9SaQwY9i?= =?us-ascii?Q?xvCld89a0uUnSw+HA8hgBNf8LzfUCVv2CAzLetU+B98k0WTTgUNRWhEbG8pD?= =?us-ascii?Q?nAM8m8OrX31aShc0dI5dEYxvWgMarW573Gz+oyWy7PiIBVhFkcoPti9b/nuC?= =?us-ascii?Q?QSFSwfMbnCFMJYMx647yJJzo7n9idL+wVNVHpviW68CjFKhbn8C+JGzlloUJ?= =?us-ascii?Q?9oLKkNHxd0AWgHbh7Ack6X9osewLkLbJfVrLVi/y7b/sY5LWUf7yIEuepsqM?= =?us-ascii?Q?EVcC+MF34M2Z0+9u2CfdM/i5j5iwdZex52PXQGf6nrAtAosqMbg3B8RbCvBm?= =?us-ascii?Q?ohnqIGAPyyRta894/JQJcnQQ+9ul9BesoNlMQB/5bP4l2deoECd70uCEkZY4?= =?us-ascii?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9cxM2GcdOOdOKDz6oaMjMVcs36ZyH+ZKpXslhhZ6q/sfWmDs5mhA84AUcQdpMKiTB/ixPtY= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2017 09:36:18.3466 (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.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB2116 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6941 Lines: 136 On Wed, Jul 19, 2017 at 01:34:11PM +0200, Rafael J. Wysocki wrote: > On Wednesday, July 19, 2017 10:56:00 AM Peter Chen wrote: > > On Tue, Jul 18, 2017 at 07:06:05PM +0200, Rafael J. Wysocki wrote: > > > On Tue, Jul 18, 2017 at 6:29 AM, Peter Chen wrote: > > > > On Mon, Jul 17, 2017 at 03:39:07PM +0200, Rafael J. Wysocki wrote: > > > >> > Sorry, I should describe more. > > > >> > > > > >> > Let's take USB bus as an example, when the new USB device is at the > > > >> > host port, the device structure at device model is not created until > > > >> > it is discoverable by the USB bus. If this new USB device needs to be > > > >> > powered on before can be discoverable by the bus, the device structure > > > >> > will be not created without powering on operation. The code usb_alloc_dev > > > >> > (drivers/usb/core/usb.c) is only called for discoverable device. > > > >> > > > > >> > Unlike the other bus, eg, platform bus, it creates device structure > > > >> > according to DT node. The USB bus was designed for hot plug model, the > > > >> > device structure is for discoverable device. In recent years, we begin > > > >> > to have some hard-wired USB device, Eg, onboard USB-hub, onboard USB 4G > > > >> > Modem, etc at the market. It needs some board level power operation before > > > >> > it can be found by the USB bus. This patch set is designed primarily for > > > >> > fix this kind of problem. You will see at at pwrseq_generic.c, we use DT > > > >> > version clock API of_clk_get and DT version gpio API of_get_named_gpio_flags > > > >> > instead of device structure version, like devm_clk_get and > > > >> > devm_gpiod_get_optional. > > > >> > > > > >> > MMC system has similar use case, it creates power sequence platform > > > >> > device for this issue, but all those power stuffs (clock, gpio, etc) > > > >> > may not be suitable as a dedicated virtual device at DT, they are belonged > > > >> > to one physical device, so this patch set is created to see if this issue > > > >> > can be fixed better. > > > >> > > > >> OK, thanks for the explanation. > > > >> > > > >> The above needs to be part of your problem statement. > > > > > > > > Ok, I will add it to cover letter. > > > > > > > >> > > > > >> > The bus will power up all device nodes in this bus according to DT > > > >> > information, the device structure has not created at this time. > > > >> > > > >> OK > > > >> > > > >> I still think that the information on power resources depended on by devices > > > >> should be used for power management as well as for the initial power-up. > > > >> > > > >> The most straightforward way to arrange for that would be to make it possible > > > >> to find the DT node matching the device after the device has been discovered > > > >> and struct device created for it, say by USB. That would require adding some > > > >> more information on the device to the DT node, probably. > > > > > > > > After the device is created, the device node structure is under struct > > > > device, say dev->of_node. The most difficulty for this issue is the > > > > device creation is dynamic and is after the physical device is > > > > discovered by the bus, the initial power-up is needed before the device > > > > can be discovered by the bus. > > > > > > So you power up all devices on the bus using the information from > > > of_nodes upfront. > > > > > > > I think your mean call pm_device_power_up(struct device *dev) for bus > > level device (eg, USB HUB for USB), yeah, I can do that. But we still > > have below problem: > > > > Where we can put the kinds of power sequence implementation > > (eg, pwrseq_generic.c) and the match mechanism between device > > node and kinds of power sequence(eg, of_pwrseq_on at core.c)? These > > stuffs can be shared among subsystems, and is better to use > > one framework for it. MMC subsystem adds such things at its core > > folder (drivers/mmc/core/pwrseq*) currently. > > The power sequence handling code can be generic IMO, because it doesn't > depend on what bus the devices are on. It just needs to provide some > services to its users, but you need a clean interface between it and its > users, of course. > > There basically are two categories of devices, let's refer to them as USB-type > and MMC-type. The difference between them, as far as power sequences go, > boils down to initialization and discovery. > > For the USB-type ones you need an upfront power-up pass over of_nodes > under the bus controller. That needs to be initiated by the controller driver, > but may be carried out by the common code. The upfront power-up can't use pm_device_power_up API, since the power sequence at device node is for the devices under the controller device, it has to use the power sequence APIs directly, eg, of_pwrseq_on_list or of_pwrseq_on. > > After that, you need to match of_nodes to devices while discovering them. > That also needs to be initiated by the bus controller, but there may be > a helper function in the common code for that. It may take a struct device > for the just discovered device and the bus controller's of_node as arguments, > look for an of_node under the bus controller matching the device and then > attach the power sequence information to the struct device as appropriate. > Yes, we can have a helper at pwrseq core, eg dev_add_pwrseq(dev->of_node) to do that, and call it at device_pm_init. At dev_add_pwrseq, we search the global pwrseq list, and do match according to the address of of_node, if matches, return the pointer of struct pwrseq. > After the power sequence information has been attached to the struct > device, it can just be used for controlling its power state in a generic > fashion. At least for USB use case, there is a problem here for this patch set, it doesn't need to control power state (on/off) during its struct device life-cycle, after the struct device is de-inintialized (call put_device(dev)), its (initial) power state is still on, its power state will be off when its parent (USB HUB or controller device) is going to be deleted. So, it is hard for me to have the use case to call pm_device_power_up and pm_device_power_off, the only thing I can do at my patch set is to set dev.state->type = POWER_STATE_ON when tries to add struct pwrseq to struct device. > > In the MMC-type devices case the discovery if through of_node lookup IIUC, > so then you may power up things as you discover them and attach the > power sequence information to their struct device objects right away. > > Again, once you have done that, the power sequence information is > there and it can be used for controlling the power states of devices > generically. Like I mentioned above, I can implement these helpers for that, but I only can update power state information for device, but no place to call and define its dev.state->power_on and dev.state->power_off. -- Best Regards, Peter Chen