Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933085AbbHKUM6 (ORCPT ); Tue, 11 Aug 2015 16:12:58 -0400 Received: from mail-bn1on0072.outbound.protection.outlook.com ([157.56.110.72]:22912 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753435AbbHKUM4 (ORCPT ); Tue, 11 Aug 2015 16:12:56 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Robert.Richter@caviumnetworks.com; Date: Tue, 11 Aug 2015 22:12:37 +0200 From: Robert Richter To: David Daney CC: David Miller , , , , , , , , , , , Subject: Re: [PATCH v2 0/2] net: thunder: Add ACPI support. Message-ID: <20150811201237.GW4914@rric.localhost> References: <1439254717-2875-1-git-send-email-ddaney.cavm@gmail.com> <20150811.114908.1384923604512568161.davem@davemloft.net> <55CA5567.9010002@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <55CA5567.9010002@caviumnetworks.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [92.224.197.8] X-ClientProxiedBy: DB5PR06CA0008.eurprd06.prod.outlook.com (25.162.165.18) To CY1PR0701MB1614.namprd07.prod.outlook.com (25.163.20.151) X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1614;2:sIg/F0DMl/ZXH3DYPMn3aFS1vwBe6W6/UdJhZAtLqkSsdk7vVGEX0uEi2I0caWp6kFhG0pbriQ2sc+iN7QX+ftCPKp8ZvArPxFh4XHC9Z8Xuh2CTouIsG5/NvHr4JEwSp/Bq3A1cCUNomYrEsTNTH4W4W/bQHWO4FcF7XO7yACQ=;3:Y/+FCru1Z2nmIWBFYgiC2dWLYBjDf8ynbiysOeIHMS5QtqKgTGmwJo6dVUXLNGbX+AJV6DAalnqRR5admDyskZpejZ7V4I0Wzq63DL9Meav5AfXsVOQLBj/2fkbDbCVe4ID62NhuFqjI4lV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L25tLhw9qwSOgvQgHp6rMsBnozB4mJSZXttk/WTnQoW0an35st4sjTSZEptqIqiRsBR65945tm4hncKYqxOFlDH8zc8xQvhW5L+Jxl820QMfjbCQFCf/naSqT1AWPA+LbucAsTnoYElYsQsqGwlQMC/Pusr3ek+aVe6ce54IFbSEFdz56yUu3h6MMHck+R+p9lAYJbAQU5GWtFASGdBXLqTp54AEfDq/k= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR0701MB1614;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0701MB1614; X-Forefront-PRVS: 066517B35B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(189002)(24454002)(199003)(23726002)(76176999)(54356999)(46102003)(50986999)(2950100001)(87976001)(68736005)(77096005)(83506001)(4001450100002)(47776003)(64706001)(101416001)(66066001)(5001860100001)(40100003)(33656002)(122386002)(5001830100001)(189998001)(105586002)(106356001)(86362001)(81156007)(97736004)(4001350100001)(4001540100001)(5001960100002)(110136002)(76506005)(50466002)(62966003)(77156002)(97756001)(42186005)(46406003)(92566002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0701MB1614;H:rric.localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0701MB1614;23:6QV6QFGC/ARTah/SJjkkwYP8VRZWl0gLJc4eak7?= =?us-ascii?Q?20xYL2ylVg311sEH1TeCHpPVrIG13cJMly8h3kRwtfPhycXpSyDP4vBZZkc3?= =?us-ascii?Q?PwIo3PVAiWH+01NrcAMpXdBN9WTFTspSAbX5jccHJt/5eZdEo6Jt6MEH4vYo?= =?us-ascii?Q?SE5ei0u+qOovTnanf1ziqu5Lzs2qdtIBwH0/tSELULWZ9loUJxzxNPSzur1A?= =?us-ascii?Q?bq6T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2wIKJj+?= =?us-ascii?Q?2TAJVLee9YCnX6hMVcozwj3OjUz8qSHdn?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1614;5:N+vjM8wNJRr4A52tZy5whTu51S7KfhPh6HcIfhHIaDgv9gfKVELZn5pZrw/XR5Bnjl3sZ+QXzN9Qkp+UEH3iyWxWnbELCv6ZTMoydsgkVTKY/3mPd4ai8h7ycJcY64kgVlxZ3N41SKoF34Q4vdBR8Q==;24:SJqt1wVSR+hZ6debE+Ojok9WxknQydrq7+AgybSOEkPnxvKNHUJ+PJDLU+awcuFhc19ItS+x30VrxH5QmQYw/iNjO/bzcY5wAK2oMSZ+9nw=;20:0CdWJz1Qfu928O7B/IuR0ztEh/oMGhdLAoYggzsSw5pWgf8wv+59snYlM4aJyUl06cJ+QUHh4xLVKzfUkPIt+A== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2015 20:12:48.2937 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1614 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1161 Lines: 28 On 11.08.15 13:04:55, David Daney wrote: > >In the future it might be better structured to try and get the OF > >node, and if that fails then try and use the ACPI method to obtain > >these values. > > Our current approach, as you can see in the patch, is the opposite. If ACPI > is being used, prefer that over the OF device tree. > > You seem to be recommending precedence for OF. It should be consistent > across all drivers/sub-systems, so do you really think that OF before ACPI > is the way to go? If ACPI is enabled then no OF function may be called at all. With !ACPI or acpi=no kernel parameter, then acpi_disabled is set and no ACPI function should be called. It always falls back to and only uses OF/devicetree in this case. So there is now way to try devicetree first and then use acpi or vice versa. There is no mixup using acpi or devicetree with the same boot, either one or the other. -Robert -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/