Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752158AbdFOJML (ORCPT ); Thu, 15 Jun 2017 05:12:11 -0400 Received: from mail-cys01nam02on0080.outbound.protection.outlook.com ([104.47.37.80]:39088 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750948AbdFOJMH (ORCPT ); Thu, 15 Jun 2017 05:12:07 -0400 Authentication-Results: spf=softfail (sender IP is 192.88.168.50) 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, 15 Jun 2017 17:11:31 +0800 From: Peter Chen To: Ulf Hansson CC: Peter Chen , Mark Rutland , Heiko Stuebner , Stephen Boyd , , "linux-kernel@vger.kernel.org" , Gary Bisson , Fabio Estevam , Joshua Clayton , Arnd Bergmann , Dmitry Eremin-Solenikov , Vaibhav Hiremath , Krzysztof Kozlowski , , Alan Stern , "devicetree@vger.kernel.org" , "Maciej S. Szmigiero" , Pawel Moll , "linux-pm@vger.kernel.org" , Sascha Hauer , , Rob Herring , "linux-arm-kernel@lists.infradead.org" , , , Greg Kroah-Hartman , Linux USB List , "Rafael J. Wysocki" , Sebastian Reichel , Mark Brown , Philipp Zabel , Shawn Guo , Subject: Re: [PATCH v15 2/7] power: add power sequence library Message-ID: <20170615091131.GB24157@b29397-desktop> References: <1497319166-17287-1-git-send-email-peter.chen@nxp.com> <1497319166-17287-3-git-send-email-peter.chen@nxp.com> <20170614015338.GA4635@b29397-desktop> <20170615065854.GA24157@b29397-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-EOPAttributedMessage: 0 X-Matching-Connectors: 131419915250899078;(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)(39840400002)(39450400003)(39410400002)(39400400002)(39380400002)(39850400002)(39860400002)(2980300002)(189002)(199003)(24454002)(9170700003)(39060400002)(81166006)(8676002)(110136004)(97756001)(73392002)(38730400002)(33656002)(5660300001)(8936002)(6246003)(356003)(76482006)(7416002)(7406005)(54906002)(77096006)(55016002)(86362001)(4001350100001)(47776003)(81442002)(83322999)(73972006)(8656002)(93886004)(229853002)(4326008)(2950100002)(87572001)(50466002)(189998001)(6916009)(104016004)(50986999)(1076002)(54356999)(76176999)(2906002)(6666003)(105596002)(106466001)(82202002)(46406003)(33716001)(9686003)(305945005)(53936002)(83506001)(498600001)(6260500002)(23726003)(18370500001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0301MB1187;H:tx30smr01.am.freescale.net;FPR:;SPF:SoftFail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD028;1:8Gm7tPH4+idGZKcY4u+AbUW/Uj5hD0V8OUHY5ts901X3oy/U2hA7wWNrB3ZmtlxKzvYhItmtzwOXmEvVLqUOqR0SYi66OoI5qgGG3MMGnydgbUTHoqWd0nHXPalH1r8cH3rr24Xdj48rgtxT8G/okFFghfkZpHn6pisgp8W55Knn6Qm5B4jLUcTGHxF3ZGU3zuIz1OcorW10GzTknp+1DUnwGMutg5/mAA9ZMY8JtxyDa0oeP8Bewj2TWQlbetSx6jgXndrAQDhQ1CQU+weQ5S6jODl8axMwP3hVQdZ/FPf5YR9zE64Vl4mq1NB7LFpidEwfn9qbZ0Died8Xk9VjZyJXcpCd8zMyLxVuUZHdBMHXPVCZHvFLXpWwEWDklRc3iOMkB4a1PB38Fs/7d/H0+Z6xK1iIerYE9Yr4W1/hjrwaBewWmkqNnizPNg5fKlcTsKerqdLgUAH8FFtfUsfQymrYvdrFVf6h9Y0yJSCJTBWfxyKFSFUj2X1IWC2XJhLtVKB4R665vvu3OyjwjgrF3abkAopj+ZV399SFYNNeNxj0OLlgWgyPgg076gvPxbJTkwLK/Kl3pV+L+L9nHNVNCq7YocV2GWpJq1H4exA2u6E= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8cea03f-9939-4c7b-b726-08d4b3ce9765 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BN3PR0301MB1187; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1187;3:8R/XASNQBAJrHJB1Y7QHjoaLjw4Hj632cBY3KwHtq9H745WHc4ayEKGsh/adQvqx3WZ4jYyJ9HdszQBLNqLTmoXWHMGN36R7eIgGuyXBNdEdzR+iStS8dwZ8bU1EsDemVMHLKd4PNuEztZwmUjBDa55fp2xSTHE1arvfeZlrRgck3vUHd/1eazf+Qa6otiOgcNwbjRATvSQ/wKmIqb7/vVpDSNy7spyk/dSTVmj1miw+01J2fvjayZuZv0HuTb6+rxxq21JEvRt+0kTpnlC3sgXI1LyZMxxxUoJ/Rrq6Pk7eMckXHWq7lkiRmeghMc8I9DQudNiQOXNiy+WhquIa9R0MJzMS4IvLmvLsqNJcCk3Hu+eMfBBmOxtxE9+BggZ1obeuVvWITBGFxK7JJ64GnlT+kSK+cI2UzmbMtxV64S+XsiYy0UmNHcw2AKiuWlRg;25:rWadVYQxHnZY0Pett8DXFCIfro4bSXcB7G2/RfhNP168kz39gToVtUi1eOqkNWmHyGNXx0BNVZ6BsfvGQEkAw/sIpzlv9/ZfcNJ3a/jL7AXsi3T0ZpEXimPb2QhxQKIFEUUGb02mBF4rg6PeM8eLBcuQde5hUC+6RSvZPiBaYMqVIzYMQU+4llXRcSCAanHqJWShLeRRCdlPzgY2I0atv0V+dJeE2x5G0JZvpNm7ruW62hpodY4QfcJ9PjJZFMsZVV21/qFSlZHKSfVvw7lnRf+nWoyis2c3M2OP5tX00pR4F+C+vcd5pbI7bixwUbK9nIv8CDwOXc/OfarBU120rZwwJsPDuOxjEU/4ckMDDead3YWn4m0dQm7VY9Y0Es50wxk3iMaCoLNXGx9em6QNu3ayAI1ZPobyNwxEF36hihReD/xVXKU2vNcYCsH4c+MpoF90RoE4ukUpdDjUAzjaXgaq7MctYO2bmn8pPA13YA0= X-MS-TrafficTypeDiagnostic: BN3PR0301MB1187: X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1187;31:PRbeFn68rHbkIEkMZQrBpk+RM7NLfQaVuSD+56xjJ66ZSlXLG0EVvfoXbYnWmvWWmqk9WWcK1c6OObuYYHIt+15ObQIjPtDZKmM24Y4W+BCRpSRe/FrWGSFWxRLe2H4oNNBwy6lO2HQQ/AlxzSAFIMtjHvMx59PQJbZa7ciQum1NlevBU+IFzotKO94a+S4FhrHDId3ugfMdUrpQTwCIHGeTk8mWRydkjSQWkeOhzKSh3LDueUmbDtKz9SJXSALKZMfloQM1132c+eM54CnqkA== 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)(13018025)(5005006)(13016025)(8121501046)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6096035)(20161123565025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123559100)(20161123561025)(20161123563025)(20161123556025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN3PR0301MB1187;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN3PR0301MB1187; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0301MB1187;4:lKQ45YX8V0vUJMjAMV3KiNw4JqvP+ixrd5ow/Qgh?= =?us-ascii?Q?VS+dwF9epgaqZjcAec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I6cURrQPMmOEqdP0RrZ5UQ1MHgGfp1Xi20?= =?us-ascii?Q?opPBhddpIay7ovieNTMXGCJ+R8kOd+CbyGU8DrDdToNBPI4zubvooUAafTf3?= =?us-ascii?Q?/3/q68//peQEx0w66oeZCexqQyH8eQiqg2ZbzEtadYB29GCivSB+oq9K46mg?= =?us-ascii?Q?cAR6xhDvCNJXnKu2EX5knSjMCbjbgfaMEK4k9rwxH9TRagpzH8RAyen2IzUA?= =?us-ascii?Q?um0ySp61YTqngOR8sGN8Uib2xqgRVv6ylPNKo3aiIx5O82/iiGAauxgHOp1I?= =?us-ascii?Q?zgSqLx1lglG8BCXFmBLBoRErRuTdoYhRREHn+7JHAGj6ZIeE=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1187;6:jeBnDelbBO/3cMvN5JcDTp4H7kxAsFAdZB65u0QuC57sY1W2d5n1+cUG1P8P4qwaFwIbFenUWgozJU3nRdDvdek0Tu+V9EuhbOIYwyAVCyZDVxxREMQvlQ5HdDWa4bdRPEZiNM32yg93QqvzzsPjDUY3Axximy7mdbzqWn0ETLBS2AEU/ubQCuhTflkvtrgPHeTz6Xv7SxjPYHnSKFLwOUxPXuxdx49ZS1kXDfmFAp7GWiuF3qfGf+/CZyzTLz3ag7eGCerWY+LJJ7Z8yBsrJpJhk90mxyew78h2B1K5Ch0N20414niW9Fm/04R3ZY73FZtrOnoxf134GiswWxKpAVOOfXxXRKn8sT+CINQ6wsalfaBVqzujNdPCEDYa/Kq3O9UMoRM/IF78ABhgTgMZe7h18LS8o4gi5z8sGkJrcV5ufHMSJKeI01lJumCgspalMQ/vMOK7VadDzIoDWBAkcVDzFYFuyz3U/bd20OBDNKAdm0ewsMj9nZoZiOKm8kOvoOjoc4rK0UgD0AfEaSc2pA== X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1187;5:r1HY1Dm/DKOZSFOgAtz1WobyDKzPS7froBNFz8Ba6LSeuDh7GwE9Ivl7j4WKsGb2wGECPxke9CeYv+ksfV3BPHFgTFMWyU6qbkk2mi0/HzBWzdvR5zIzMPxxNZYnCzsshIbzEHSzTmqvfFRjmhEB2xUtbdb5kuDiUoWaqSU8myMxvny3hzS6t0b3FK+QOBK5ihX3DpTpW0d0yPdoJsQLpHiRTSrSmzoKfqHOtnDyem3hUklStuGLavBDft6M8djZq2dgBx7J+ZUm+zKDxgG7uNja+VZQIrmq5v5tk8B/fSlfwC/6n/Ek+O4JuZkFcx01x0N0yiFx9NJ1zVrHl/49FDLHicAv3U33+knE2FFXZNZcVhT5efUn70s82/jPU0QGNaEUS1vCMa0XG8arxJ8I07uNXFu0r6E0tcmE9Sst9oqJmzNkjI61wff+ppcDT/pghSyNWkb3fOKGkg0nAZ9LaVf4jN530MqC4NPh+rEY7icwiA5xECNhzFqUCejDPG+7QQzGltSrLhxk+ZkjGTx5ew==;24:QjlCR82jhOhDXzygHeBzqeB/+7ONON7Pu0DG+XTLlEY+ZUw+nbDBhUduDBQjRYdpOkQQTz0S201zy0BTFTMFXsCULpOCEkzv10FNEmr0SII= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1187;7:jvfyc9Vn3Uj/7MsMT865YdoCtaqazW0O+7QB6CMpRCOYDzFSE9RGgPw6UTjxDAiAbYarzzdHOWZ4sfdO8WeRe/n6pl+LqamcAusF7EYm1IsLlQKqdl9lCXI891hNJCIa4DUQkAUBnKy2j1mS+4JhV8WwsMzS+vzGJsafy/iN44WTE0XphvVnN0Wzbd+mdiypYbk4Mpvwj/SWF2i3poMBKE/EXxs5xKp9wMPurOFnCRkHgZ9i5iqU6IMSwlz7AUlBUaKVlUYc8Eks1xIgqoOjvC7jSDC9YcGBQzslqS+jIcbRLJOcRWg7hwyopwLSuLpa4XyKgTzbQsmqlnG1l0jk/w== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2017 09:12:04.7623 (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: BN3PR0301MB1187 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2309 Lines: 53 On Thu, Jun 15, 2017 at 10:11:45AM +0200, Ulf Hansson wrote: > > Yes, you are right. This is the limitation for this power sequence > > library, the registration for the 1st power sequence instance must > > be finished before device driver uses it. I am appreciated that > > you can supply some suggestions for it. > > In general this kind of problems is solved by first parsing the DTB, > which means you will find out whether there is a resource (a pwrseq) > required for the device. Then you try to fetch that resource, and if > that fails, it means the resource is not yet available, and hence you > want to retry later and should return -EPROBE_DEFER. > > In this case, of_pwrseq_on() needs to be converted to start looking > for a pwrseq compatible in it's child node - I guess. Then if that is > found, you try to fetch the instance of the corresponding library. > Failing to fetch the library instance should then cause a return > -EPROBE_DEFER. The most difficulty for this is we can't know whether the requested pwrseq instance will be registered or not, the kernel configuration for this pwrseq library may not be chosen at all. > > > > >> Moreover, I have found yet another severe problem but reviewing the code: > >> In the struct pwrseq, you have a "bool used", which you are setting to > >> "true" once the pwrseq has been hooked up with the device, when a > >> driver calls of_pwrseq_on(). Setting that variable to true, will also > >> prevent another driver from using the same instance of the pwrseq for > >> its device. So, to cope with multiple users, you register a new > >> instance of the same pwrseq library that got hooked up, once the > >> ->get() callback is about to complete. > >> > >> The problem the occurs, when there is another driver calling > >> of_pwrseq_on() in between, meaning that the new instance has not yet > >> been registered. This will simply fail, won't it? > > > > Yes, you are right, thanks for pointing that, I will add mutex_lock for > > of_pwrseq_on. > > Another option is to entirely skip to two step approach. > > In other words, make the library to cope with multiple users via the > same registered library instance. > No, the pwrseq instance stores dtb information (clock, gpio, etc), it needs to be per device. -- Best Regards, Peter Chen