Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752244AbdGDLvb (ORCPT ); Tue, 4 Jul 2017 07:51:31 -0400 Received: from mail-sn1nam01on0075.outbound.protection.outlook.com ([104.47.32.75]:39155 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752052AbdGDLv0 (ORCPT ); Tue, 4 Jul 2017 07:51:26 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=fail action=none header.from=nxp.com; Message-ID: <1499169078.16068.26.camel@nxp.com> Subject: Re: [PATCH] thermal: imx: interpret fsl,tempmon-data through nvmem From: Leonard Crestez To: Shawn Guo , Srinivas Kandagatla , Zhang Rui , "Eduardo Valentin" , Rob Herring , "Mark Rutland" , Lothar =?ISO-8859-1?Q?Wa=DFmann?= , Fabio Estevam CC: Dong Aisheng , , "Bai Ping" , Anson Huang , , , Octavian Purdila , Date: Tue, 4 Jul 2017 14:51:18 +0300 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131436426843273090;(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)(39410400002)(39400400002)(39840400002)(39860400002)(39380400002)(39450400003)(39850400002)(2980300002)(1110001)(1109001)(339900001)(24454002)(189002)(199003)(377424004)(9170700003)(36756003)(966005)(105606002)(38730400002)(77096006)(5660300001)(4326008)(85426001)(39060400002)(8656002)(23676002)(7416002)(2950100002)(106466001)(6636002)(104016004)(498600001)(50226002)(69596002)(626005)(54906002)(6306002)(8936002)(2870700001)(33646002)(68736007)(2906002)(81166006)(47776003)(229853002)(8676002)(189998001)(76176999)(50986999)(53936002)(305945005)(86362001)(5820100001)(356003)(6246003)(50466002)(103116003)(99106002)(142933001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0301MB0607;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTJGRk8xMU9MQzAwNzsxOjkxcUdGdHpkMkdldTk3SDBsU2xIT3cwckx0?= =?utf-8?B?RUhRVFRPS0FaKy8vMDRoeE5OTlVIU0tLMFF5QTlCNFZVVVZBY1dTdkw4V0hP?= =?utf-8?B?b3ZNekoyZ21ZODNwZk1kdXZBTjVURFVxcG4wSE1pSlBHLy82MTA2MlIwWmZI?= =?utf-8?B?UFd0NUVPMWRLV3ZZYUlTcEtyNzh6eS9JckRXS05JQ1A0QUw3bHUwWGJncFRu?= =?utf-8?B?MHJNOEJwU1BZTUNhamdXYjA0U28zQTJxeUVRTnBQSEtjczJWRWNBRE85RjZT?= =?utf-8?B?bmtZNHRpRDNVa2lwTU5uVGRaa3gzK1ZnZHFsS3FKWVBGRGFkSG5EVnZWRkRR?= =?utf-8?B?cVFQcStDOUZXdENHU01tQVA1VFUzSGxFQ0JUODd5cXg2N3oxSnFzeE5kYm1Q?= =?utf-8?B?azFCYUpCYk1LZXdWNjkzNzdTanBycy9oOStNalA5THoxR3FtT1ZTNGVUdUdD?= =?utf-8?B?cFMzUEdOTEZiL01MY3huQitRdmcwVkRHdzJUV3RPajlVdzdQMU0wdmoxb1RM?= =?utf-8?B?eEJvYkJKL0JEL2ZKbGFSQXVsTWlseTlONTUyanZ1R2lJS0lRejJEN25vN2l6?= =?utf-8?B?bjUwWk5WbnFnUnhVazBxY3pqT3ppU3NnbDV0ckJsZnpES0pqSVVFUktxOWlC?= =?utf-8?B?YUVINUZPVnN3dktNdTd2azJyTXg3bGc0bE5ndm9yUFpXSkJpTTRqeUhwaG1y?= =?utf-8?B?aE04enJGMk9LSTl2dXd6TDlvNHE2SnpRVzJudDQ3amh0cU1adGVkM2MyaVZS?= =?utf-8?B?SlQvQ2pkbWQzNUNyWDljcW1rNldjR2l1eVhFRWZWaG5STVluVy9GMEt6ZXJL?= =?utf-8?B?QThUUjZ0bHoxTitQcVJrV1NmWTNwMHZuTFlvWVo4ckZqSUw2VnkvSTFuaXZs?= =?utf-8?B?VEg4YkZlQnFneG5ydmFURzhXY1dUblE2Qm5XWkNHdWlBRG0yaDk4NVFlRU94?= =?utf-8?B?ZXdEVEdaNFp5SkpLaDA5QjB0S0JlYlVhM3VKcWxsUXZKOFQ4VER3MG16bzZr?= =?utf-8?B?cXFRaENLZXAvWGtVUi9WREp1QU04bkRLVDNidWxicmc0MitqUFRTR09BekNy?= =?utf-8?B?cFhSYU01eHk2SUVVb0doSDdrTGlOcWllK1RJQ0VRWGdnaEEwMTlVSmtSR3VQ?= =?utf-8?B?ZGlFTDZNQjZSMHBTWUNHa2p5aU5adURxcXE3YTQzRDdsRDc2YUJabTVscTdu?= =?utf-8?B?VkFKVUk1cys2dForZmtLNGlPazkzM2cwb1NBZS9Ha2tLZGwvcFVDOXdGZ2pv?= =?utf-8?B?V09oVzYwSURWR0tFQndWN0NKN00vNjhreVFpVFhheGhVU0NRc1JjT210R25M?= =?utf-8?Q?ahzmswKZ3wV2DodbCzXFbelWbQ2cLzOQ=3D?= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9a73ea0b-339e-4031-3782-08d4c2d2ff01 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:DM2PR0301MB0607; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0607;3:7+G9vBSoOjMBYQLnB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dXe0Zu2hNRobxlh+I9V5S42iCLlAbWLr4BvBzxJ5HqWunQej3ESbm3BEwgDamJsn+eGPxMjUCocsxcDyDg0r+s0MoDA05dLwlB+OwfbCyXrzzpp/zZ5zwMXuO3LTRZUrF7zWrruWnB3U80+ma02o5nyAzyKc/TcRLdYAqmxQfpaR4Cr9QJfD6fvPP26nzXODxfV2ZfJ40pIDl6Ng3q1Un8oBXIg/V83NlcrE2Bk5NIFRKi/qjZmy9jzf1rEH+y+nDHeLswFjJDGSEQSqZroxnyM99e/7howlUul8L4fPuQwipurAatZBo+DaNuEOT50wNP/yY/37K70ZnxBtOtOjPpT+U+f8Z8SfmqLwWzqhTrvZ7jTNtd5qkMEWwlOthCNnxa51CMCyRdFwzatEQqkAyT6lipAHErlGnH5wYAc4Hju5zzbvMj0m98yhMb7AKRerDTNLyo5JiebYHna7FCOEKqQgzLwvBqhHMbBBKwmFAx63Ku4wiTRCPjRfiW6dmg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(185117386973197)(148574349560750)(264314650089876); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6096035)(20161123565025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123556025)(20161123559100)(20161123561025)(20161123563025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM2PR0301MB0607;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM2PR0301MB0607; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjAzMDFNQjA2MDc7NDpFVmpXeFpab2hBVzI1TnZSL1JMZUE3V3NV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xgPsOyAqe5GLaBHC2uQKXuKH/ot/tQTG8ephb0Xd5t0f2+phF8ijP23lrRY++w3yp58SeDuxZS1ehHETaJrUe9dbkcHQbh388TbMu9/aYSPjVI6AZ8OAB7dR13Ucr14h7mGcg5QIA6p9TrX7hbOKuNhlbXv0ZjEWEtj54DUGk2zQHZr2qzUrsj0YgsSXlsiCQ+guX9qMtEyIjdV0kluQn6LJG2iUnzm8bjFG6xXpCJNhsvNFI/PNw0cJcSEEcuUb8+4lhhxjjLWCiyL4prg+saDWXnpuEwrEYx/NOo5DhHq8trLeHujG4hX4FUuk1nF/o8GnXSK2/wurN4+fgUaWUE0H8TMWrKjMSnb1b/T40s+lOb524r6PjRsD2TijDerpVXuVeGV2Oqlky16m37cJpa/p6gzQXnl00W4mG4Pf7EPHLkVg/NPyP925PQ4EHKUqmlznj+3wKADFxyszNESR+9yvpWYUf0HaplrMK/EedidqopbVO1MOndQjfybGgkEaS1HRLSwGW/yFxXBK6vlw==;24:E1qkOGhTYwmUY6eOBRk8IzkL39A1+EgnnvQDcL8GxbHBY6YUyffthmk3LxLIWDpuTbipwuDu4YKhNMevCa951HGUjNr8yGsbr3G5lSoUyWU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0607;7:R8zQC5QPzmg5kreIIjDEFKn733XMYvWymROosrzQT8tNZqx8e1ndRhGpPPyOVLJW92l5FGo3YyZIL34cD5TPfu/3Lbd73btuaV1N//D7ZkenD71GmpWuoM2SiA1Wl8vtpzKCpHiFz/hcD+Mg4rF70o10ksqIZe69LQFRtPACi7ScfcX2JuusWa3slHNPfvk20d5oSdhewGOGz2F1d9yheHqWDJyA884G36hDdGI4nzlnxKH/r11yGEbCEUfmTnGqtI5R4eynywyJyJAGw+4Gz1krfFQXsaknU6ZbeL78/jQdEQ8Yicm7AyNq775SvBnkA4R7K+lZQnBuypM8Zy/MV4nLh32FpW/Yj44ZFgqFHpPMRXTE8ddYmgQhzOmZRGUdJoIQAH4cxJz95B7w0xc0Sqt4SKu1ZIkvHiJ/n4R1HU48/tRnUGP8Ott+95GwtE5izioP+dYA1vFscX0TOdpJ9X3hvoDLyCH5K+gHCqZBFepm7NezU1ADCi90LJ3il9JSMIA66FJwiq8kg6tYtleNk4qDuM2QKYzefMuHfvDPYlLBcK0LbVa6rLMsz85/ua04bAjpUcbu7TCkAVRohRGYeFqtTuotNbcjO2QLDx+g6xDuIRqNeUc4kEv1dZdPwhFXiGQ8L9G/sZR6V62V/iuy39IvilCNGlgaO2AAeoaBDIuUTETxLRDuweeqDanbB8Hbt8CwjLtUY+QfM5SSmx73tKs1CIR5ufe6z8ZeR8e/AwUXQVuxQU9b0YedHfCCAglhLZoAM4JgTP2JrxrNtHf5IizhLMyqdypU2uOrmiK+lvs= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 11:51:24.1089 (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: DM2PR0301MB0607 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2764 Lines: 64 On Mon, 2017-06-19 at 16:40 +0300, Leonard Crestez wrote: > On imx6sx accessing the ocotp memory area directly is wrong because the > ocotp clock needs to be enabled first. Fix this by reinterpreting the > fsl,tempmon-data phandle as a reference to a nvmem_device and doing all > the read through that. > > This clock requirement does not apply to older imx6qdl chips because > there the ocotp access clock (clk_ipg_s) is always enabled. > > This is visible by comparing the "System Clocks, Gating, and Override" > tables (OCOTP rows) in the 6DQ and 6SX manuals: > http://www.nxp.com/assets/documents/data/en/reference-manuals/IMX6SXRM.pdf > http://www.nxp.com/assets/documents/data/en/reference-manuals/IMX6DQRM.pdf > > This happens to work right now without this patch because the ocotp > clock might be enabled for some other reason. In particular it might be > enabled from the bootloader and it only gets disabled late during boot > in clk_disable_unused, after imx-thermal has completed probing. > > If imx-thermal is compiled as a module then the system can hang on > probe. > > This makes IMX_THERMAL depend on NVMEM_IMX_OCOTP but that driver seems > be already available for all chips that contain tempmon so it's > acceptable. > > Reported-by: Lothar Waßmann > Signed-off-by: Leonard Crestez > > --- > > This was reported as a comment to a patch adding tempmon support for > imx6ul (which is very similar to imx6sx). Since it already affects a > supported chip this patch is sent as a separate bugfix. > > Link: https://lkml.org/lkml/2017/6/9/578 > > There are various other ways to fix this problem. The main advantage of > this solution is that it does not add a new binding but rather preserves > compatibility with old DTBs. It also aligns with the idea that > devicetree describes hardware relationships rather than a specific linux > implementation. > > An alternative would have been to add a nvmem-cells binding to imx-thermal and > use that if available instead of fsl,tempmon-data. It might not be good to > sidestep the official nvmem bindings, the devicetree people were added so that > they have an opportunity to object. > > In theory the "thermal grade" is a two-bit quantity and might be a > candidate for using a cell with a "bits" binding. However this causes > the nvmem core to issue reads of length and alignment less than 4 to the > imx-ocotp driver so additional fixes might be required. > It's been two weeks without a reply, any advice on how to proceed? Since the original message is quite long I will summarize the main question: Is it OK to reinterpret the fsl,tempmon-data property as a nvmem reference instead of a "raw" syscon regmap? -- Regards, Leonard