Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3229920imm; Fri, 24 Aug 2018 13:00:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZXQoBxDM6YoWnk7XMdp+xk3PY4EOoK7CYPbk5iuGOUYKH5JB2zD/S+P6KT52ofFIXXHeS1 X-Received: by 2002:a62:398c:: with SMTP id u12-v6mr3409966pfj.9.1535140856321; Fri, 24 Aug 2018 13:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535140856; cv=none; d=google.com; s=arc-20160816; b=OK/FKQw9fvYJB1bYat5/SN3m24DXFImLkVMDVRpo7XuDYMp+9nOeYJksOw3cIoKZjs J2FVzLi+4EbW6Uwy9hJNIK9PbdTIx0GoVe7bp9bQ3Nq6xmICmlK44+HyNcqiclTFwyvP TeiwAgw4VTl0nMDLYPoq56Q6Y6ONQZmKKVviwMN+GJFEMOojNGMNPZpGssmd4OsHBDSQ TNDFIVbZEobggyrGuNlMka7mJ7bhTOV8ZcpfDHIMqxNdoBR6qq3JRsq/0qiGiCqxZnFm AH01HwXJSvqW/ZLTxeRNy0+r10RWFnlLts4PaqpQrPmI4EieBQBBgHP47EA3InYaioQB H4hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :domainkey-signature:dkim-signature:arc-authentication-results; bh=EaNIsihZxoew6nfNUvv4T03S52sgdubg4KQr0jU7Kok=; b=x5m3QmQma3o5dS8GIhmwpR5A0RqPT9vJbEp8htDn7ieuuqxzB8rGIvHipyluFrnrO5 j9keKn4LETOEYidd9s6mLNY5MmbcGPWT/0Yj3XYL49jBDgs2qbHtUWjC7PGQFsrFWc8U d9FGcHsgEOElWNUnVuDXRv9ksCwtGVV53no9VmaN987KELxUeWU+u25Z12gy7beJqG2S +w9mZ+dgMN0N5tkLEUknogpaLFBZtcBBjDap70KEKeKxkqnMJUMaYJWefYxVWdz/OMlF cJYgW/FT/vOGAeqp7jOow6uZFn7B6kZBQLqAG/hw2KS9PhD9QGlUPu2H/EBRfXYyzgk1 K1ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bidouilliste.com header.s=mail header.b=fjAxzQLi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7-v6si6977440pgp.551.2018.08.24.13.00.38; Fri, 24 Aug 2018 13:00:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bidouilliste.com header.s=mail header.b=fjAxzQLi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727193AbeHXXf2 (ORCPT + 99 others); Fri, 24 Aug 2018 19:35:28 -0400 Received: from mail.blih.net ([212.83.177.182]:50426 "EHLO mail.blih.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726855AbeHXXf2 (ORCPT ); Fri, 24 Aug 2018 19:35:28 -0400 Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id cf1c8e7b; Fri, 24 Aug 2018 21:59:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=OendLtYs339simp9MYyk/w/oSig=; b=fjAxzQLiFkq5aVic4m/+x+QePJP4 WgGG5kMMaJ9ZS96Ec8ayrquZ23OOwv/J6uhToGwrniKT2D5qLG/Bcj/v6eqvkv6n B5FYxE558xTfIgKnN/pSOHJeBZSj3zxILZ8jxUM1HnsBC7B5HDes2dqKVX1qumrq GdAoFtKWdrNCsYM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=eRe79pifQwYQy50PSAV+GbtFG/uSieNiLsCJHX1XmbTW2Bs5WKbXzlZY 9dX8w3Jp1tBKmTyADRivqdQUezm8oXZs3ieVhVrHZA692ByVNK3wmBw7OaHCfhtv XHHoLKiiUusugfZ9m0DiXHp/POWGZZC6PX7CtMq4aybY1kf5QNw= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id b00b65ab TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Fri, 24 Aug 2018 21:59:21 +0200 (CEST) Date: Fri, 24 Aug 2018 21:59:21 +0200 From: Emmanuel Vadot To: Maxime Ripard Cc: Rob Herring , Mark Rutland , Eduardo Valentin , "open list:THERMAL" , Catalin Marinas , Will Deacon , "linux-kernel@vger.kernel.org" , Emmanuel Vadot , Chen-Yu Tsai , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Zhang Rui , devicetree@vger.kernel.org Subject: Re: [PATCH 1/7] dt-bindings: Add DT bindings documentation for Allwinner Thermal Sensor Controller Message-Id: <20180824215921.59d060b54eb3a1e7d1552bde@bidouilliste.com> In-Reply-To: <20180824145840.isdcg3fr6mw4ntzg@flea> References: <20180804070355.14857-1-manu@freebsd.org> <20180820111755.rzg7l2lznmbpuf2e@flea> <20180820140737.xmqhu5ndqzehvkql@flea> <20180820162715.49e6d8a469ece983f3c1d288@bidouilliste.com> <20180824145840.isdcg3fr6mw4ntzg@flea> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, 24 Aug 2018 16:58:40 +0200 Maxime Ripard wrote: > Hi, > > On Mon, Aug 20, 2018 at 04:27:15PM +0200, Emmanuel Vadot wrote: > > On Mon, 20 Aug 2018 16:07:37 +0200 > > Maxime Ripard wrote: > > > > > On Mon, Aug 20, 2018 at 07:41:22AM -0600, Rob Herring wrote: > > > > On Mon, Aug 20, 2018 at 5:17 AM Maxime Ripard wrote: > > > > > > > > > > On Sat, Aug 04, 2018 at 09:03:49AM +0200, Emmanuel Vadot wrote: > > > > > > This patch adds documentation for Device-Tree bindings for the Allwinner > > > > > > Thermal Sensor Controller found on the H3, H5 and A64 SoCs > > > > > > > > > > > > Signed-off-by: Emmanuel Vadot > > > > > > > > > > I'm not going to merge a binding for a device that doesn't have any > > > > > driver implemented at the moment in Linux. > > > > > > > > I'll take it then. Linux is not the only DT client. > > > > > > Then don't complain if we ever have to break the ABI. We never tested > > > that hardware, never had any code running on it, and it *will* cause > > > some issues. For example, the calibration data have never been used > > > and how they should be represented have never been described, since no > > > one ever actually tried to use it. > > > > > > And sure, Linux is not the only DT client. Just like FreeBSD isn't. > > > > What kind of data would you need for me to make things better ? > > We have the driver in FreeBSD for almost two years now, whne I started > > to see how to upstream it I noticed a lot of problems and spent 4 or 5 > > days to try on all the SoCs mentionned in the serie, the only SoC I > > didn't include it the A83T as for some reason I couldn't make the > > driver work. > > Do you have a link to that driver? https://github.com/freebsd/freebsd/blob/master/sys/arm/allwinner/aw_thermal.c > How and how much did you test it? Using a cheap IR thermometer as it's all I can afford. Then running multiples cpufreq-a53 process and comparing the result. Did the same without using the calibration data, result where closer when I used them. > Are you using the calibration data stored in the SID? Yes, which is why the serie contain the nvmem cell for the SID. > > > I just hope that you understand that we cannot wait for Linux to > > have a driver to have some bindings. > > Just like I'm sure you can understand that just merging the DT bits > without testing anything caused some troubles in the past, and I don't > want to discover it in a year from now. I do, I don't like wrong DT info as much as you do I think. I had the unfortunate event to find that the sun4i-a10-timer compatible used in every soc is plain wrong for !A10 and !A13, patches comming soon. I want those bits merged but I also want that they reflect reality, this is not a hard driver to do, NetBSD also have one I think, maybe OpenBSD do to. > Maxime > > -- > Maxime Ripard, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com -- Emmanuel Vadot