Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758171AbcDELai (ORCPT ); Tue, 5 Apr 2016 07:30:38 -0400 Received: from mail-db5eur01on0069.outbound.protection.outlook.com ([104.47.2.69]:27134 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757641AbcDELae (ORCPT ); Tue, 5 Apr 2016 07:30:34 -0400 X-Greylist: delayed 11902 seconds by postgrey-1.27 at vger.kernel.org; Tue, 05 Apr 2016 07:30:32 EDT Authentication-Results: spf=pass (sender IP is 217.140.96.140) smtp.mailfrom=arm.com; linux.intel.com; dkim=none (message not signed) header.d=none;linux.intel.com; dmarc=bestguesspass action=none header.from=arm.com; User-Agent: Microsoft-MacOutlook/14.6.2.160219 Date: Tue, 5 Apr 2016 08:56:12 +0000 Subject: Re: [RFC PATCH 0/4] Add ACPI support for pinctrl configuration From: Charles Garcia-Tobin To: Mark Rutland , Irina Tirdea CC: "Rafael J. Wysocki" , Len Brown , Mika Westerberg , Linus Walleij , "linux-gpio@vger.kernel.org" , "linux-acpi@vger.kernel.org" , Rob Herring , "Heikki Krogerus" , Andy Shevchenko , Octavian Purdila , Cristina Ciocan , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Message-ID: Thread-Topic: [RFC PATCH 0/4] Add ACPI support for pinctrl configuration References: <1459424685-26965-1-git-send-email-irina.tirdea@intel.com> <20160404225200.GA1615@svinekod> In-Reply-To: <20160404225200.GA1615@svinekod> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131043165868971015;(7f4fb8e1-17aa-4746-8602-08d27e8c8cd0);() X-Forefront-Antispam-Report: CIP:217.140.96.140;IPV:NLI;CTRY:GB;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(3190300001)(189002)(199003)(24454002)(51444003)(164054003)(1096002)(5001770100001)(230700001)(50466002)(23676002)(83506001)(92566002)(54356999)(50986999)(87936001)(77096005)(1220700001)(586003)(15975445007)(19580395003)(19580405001)(36756003)(104016004)(86362001)(6806005)(5820100001)(5008740100001)(561944003)(47776003)(189998001)(106466001)(4001350100001)(2906002)(1720100001)(2950100001)(76176999)(4326007)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR07MB0938;H:nebula.arm.com;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DB3FFO11FD019;1:iu+pksXKg/Q4DSgtdnNPWWZ6gc6YNYcx5CUWgyJpp0pm2lpXzyjjvs51yfGDLIh6yEu8QtHT4CvIOdnMc/8IgNtfpYpLmqej1gaXk8nZapytpqHdkJv2RIRwYL0xhGoBpaY95WZtPze0SPC/aYIqivMFqRor4JKqKQkRWrWu/Qxt9hvqcEkY0nJ8yaZ4zV4yAPUTCp/QC84W++IQzgIV3man1j9ceW7dCsGD9f3kAeHySt111eDwfs/hOFf9dwMJlIuWGmXarjYkGTBzzCiTdDtu9UKVg3QOeKMiMIawmG9MUyKjqNlDWJRuGAbJndtCTaWK7zY156WruqAA1lQ2kDcBD5dwyu30cr7mnHkCsEIz+vtWIxEmNvB73bQc4rV4OKullX2UYXg1weZLWe4l4LiLB77DPcvwVgr/d5qYqYVmQ+EFsa8vMbf17OiI5voyeg5JPYFXu5XKm7OpHQAUC6mE2OjiJrQtGow/d9dd59lQOwApNcVIGkKaSqwPFlvO3fOWz1wHc683mU1pA1qu+Eyw9DsfqavBTBXUU9tCkH0Uqm8M/ad3FaHJpXsRUMrC2Cwma/oUqkqG2UahiFzGPb3TeCsFBRbUOns2HkKOf8MABY29UYqQvAqEzK7Gc5Bcc3vFuUWewemPNjn1SBIwiA== X-MS-Office365-Filtering-Correlation-Id: 99865c8e-c7b7-48a4-d407-08d35d27ca53 X-Microsoft-Exchange-Diagnostics: 1;HE1PR07MB0938;2:/ZfkOcOgglhQDlxX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4Ojh1JPkevMsE717846LZIh3dDY/hIpjA9atQs6thaEXNYcl6ll3wOpXd56anNQMl/BRNK+6JaZwIm1r9M5OHNEvUl+puiKhC8YWMRDwmaa1piKSuYD9vZoDh1f67p4YvshbLyuEew5QMrzIIyo3Hkjj52nmyEHcf4oGSHdlNLWF7CWI3t2cZo1OhY4V2RUdVnEB+QxDowE94DlaSA/AqQ05RCFoMaGCHARKEued7d63Ay8wxVD07u0Ve4aRvz40ii6Tl6ClQslrDEcUA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(13024025)(5005006)(13023025)(13018025)(13016025)(8121501046)(3002001)(10201501046);SRVR:HE1PR07MB0938;BCL:0;PCL:0;RULEID:(400006);SRVR:HE1PR07MB0938; X-Microsoft-Exchange-Diagnostics: 1;HE1PR07MB0938;4:M6RkxctF9kIMS7reSl13gFb00tuervzq97IPfdVnsTObkDzpUmdxzwVNSLd7YvPh8EYcfhHokjbn3NO71soUiV0hhfhf4jKMCBxcuoASElMtIA1Ll4DU87hNrmL/rFgDDA2mqKynpAaXO+eEg2fDTCifd5a/OVa2M0K0x6u0wm9qXLR+tIjRsoe7wid2XzPwsM91byNllvCpY8PT+piIesxC0iQ+sHo7wESKL1DF5RFupIl1LWx4H6IRQRSR9wcrNNHkEM/VzkQEdTDNLmUkwTag6DWj7E+MztFTnUKlBVGnL4F+TV5ubyl830i4RG31SbmhZo5pcunizFy9HjkEoeLSTyI+LmoneXnnezmVuNrjd/LQvyIqYYc4+5OnchzK96gCc94e60NWoqy5tumw+YoP/N/paE6c6fgwf9fcdnC71vMc0a5fpWvn6QOvFwkx X-Forefront-PRVS: 0903DD1D85 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA3TUIwOTM4OzIzOnFzSUkwdVVTQ1pkSnhXOWlSeWgycG9mWThT?= =?utf-8?B?cm0wMUFxeUVTRXVTQS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CrossTenant-OriginalArrivalTime: 05 Apr 2016 07:56:26.6318 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[217.140.96.140];Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB0938 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2463 Lines: 74 On 04/04/2016 23:52, "Mark Rutland" wrote: >Hi, > >On Thu, Mar 31, 2016 at 02:44:41PM +0300, Irina Tirdea wrote: >> This is a proposal for adding ACPI support for pin controller >> configuration. >> >> It has been developed to enable the MinnowBoard and IoT community >> by providing an easy way to specify pin multiplexing and >> pin configuration. >> >> This proposal is based on using _DSD properties to specify device >> states and configuration nodes and it follows closely the device >> tree model. Device states are defined using the Device Properties >> format and the configuration nodes are defined using the >> Hierarchical Properties Extension format. The generic properties >> for the configuration nodes are the same as the ones for device >> tree, while pincontroller drivers can also define custom ones. > >From a look of the Documentation addition, and of the current uses of >pinctrl-names in device tree bindings, one reason for requiring multiple >pinctrl states is power management. Given that, I'm somewhat concerned by >this, >as it goes against the usual ACPI model of abstracting this sort of thing >behind power control methods. > >To the best of my knowledge, that goes against the ASWG's expectations on >how >_DSD will be used (per [1]). Charles, please correct me if that document >is no >longer representative. It is though latest version was posted by Rafael a bit later: https://lists.acpica.org/pipermail/dsd/2015-December/000027.html In addition the core rules requiring that existing ACPI paradigms are not subverted through DSD (basically the concern you express) are also documented in the main DSD documentation itself: http://www.uefi.org/sites/default/files/resources/_DSD-device-properties-UU ID.pdf (section 2.3) Cheers Charles > >Additionally, pinctrl has some cross-cutting concerns (e.g. mutually >exclusive >device usage due to a shared pin), and I can imagine that may interact >poorly >with any AML or firmware assumptions about the state of the world, as >there's >no mechanism present to notify those of changes to pins. > >I think that this is a class of problem which needs to be raised with the >ASWG, >and solved in an ACPI-native fashion, rather than simply copying >properties >from DT using _DSD. If nothing else, the restrictions on FW and AML would >need >to be specified. > >Thanks, >Mark. > >[1] https://lists.acpica.org/pipermail/dsd/2015-September/000019.html >