Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3372785imm; Fri, 24 Aug 2018 16:05:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbYUGj26BkMwFrbtrR8HxyLIv5uJg19QNlMEq0zcu7izhVjHGDS+1/x2KBBYk0KA9ke66Gr X-Received: by 2002:a63:a54f:: with SMTP id r15-v6mr3451324pgu.336.1535151907004; Fri, 24 Aug 2018 16:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535151906; cv=none; d=google.com; s=arc-20160816; b=HYivZ0hYIFZq/7SAWVjbIcGEv9DyZI8GqxuiF90YpAUIzBdjWBtyKdhVdVoMBIymIv +/9zNkR5PuXopATGSnjLq2zGHxnnkK/QQHvXTbFiydL6kReiayZDRy3r46JYbQty22zH MrSRBOHW8UVjh0d8x6JzmvJlKvI9nT7zdmKlj1hy1G0kFVSSZlm9t4Wi8nP+wqiDiQfr /lowKaiR6fLo6LRShD5ZT5ZhSmST3+8ji2BKcBXb30uyTq6dBOHp1OO8+uxXn5AApiCQ svKLHpEZiXSfBVGk2VS9BTOdCY06mmVocWPXiVNWw/GsK7Xx9rEmJYHhtSnPDThnizUS wJZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=8kNRto0U3F9tEF2srXYarmJ8ZbgeNyQbA3FiJ41WqF4=; b=sBm54Re/2QL4DGkZjWKFNi6FzXLUGuP+yjwZtH2CNUyyHX2UXIxtTEVuJIeYX1VZim NcXP4+1cSbIqUcOA0h/GoYCDiM1NtCdERmFsjfnEleAoBsTN4B078PzjcrJ7tYyJjz8X XuRynEd8+t6ocBbQI/j3i49sBME+xPiGzhhGVF4OCviJhu6w3alK2vUWg8BTEM05Pcwv aoZ5VtzZRURn6ZyzaaWzqNKtm8JfSAkuZJZKHelQ1scEppyBoat0JsRbTjW/K9F4mBdO sYTIlp1IKxSZjaMbvlWG6KN6PsjrlAXoA+TA/uuu+guXjf6tHrjOoj5Y/i1SRV4jtLMJ /xCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WWuXDRBo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9-v6si7767215pgf.380.2018.08.24.16.04.51; Fri, 24 Aug 2018 16:05:06 -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=@gmail.com header.s=20161025 header.b=WWuXDRBo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727402AbeHYCk3 (ORCPT + 99 others); Fri, 24 Aug 2018 22:40:29 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41455 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbeHYCk2 (ORCPT ); Fri, 24 Aug 2018 22:40:28 -0400 Received: by mail-pg1-f195.google.com with SMTP id s15-v6so4911873pgv.8; Fri, 24 Aug 2018 16:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=8kNRto0U3F9tEF2srXYarmJ8ZbgeNyQbA3FiJ41WqF4=; b=WWuXDRBou0cXdvG3pTGCX4OVf+YjbsV6oSo6h6n9GofFnIVttaEPOsyoct+rHaNs4v bV1jdnaAir11R1slkX1l5Nog01wPjxlFwut9b1PXjcgR/XXyWg5jCDECc3XVTIl2kyUs Zo89Mh54xjXnfonyVYyEmj5pDilzHAmNlnb3KMjL6fuMxX45RLcISTBy43c1f67rUTiX lGinCr8jXIgyUBCHYHvxwNrGtJ0wXoJwZOtq20b9LuxdQtCPYrJj7ickCw7VQpdWZfhf CCkHLCl7Bc9sQbJ66uRoJYDO2VC77BqveCnlvdSIbWc+biJl/9f70PrHZYWyC5TKeCv8 Lm0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=8kNRto0U3F9tEF2srXYarmJ8ZbgeNyQbA3FiJ41WqF4=; b=Mip/Ap3c+dJczZTKo3vOKfsa3+hmythWWxcKFUt3dWeH/1OEyazB1LoTFrlduixcTD wG4QqH91G/v7Qh/YTj2RQ10hNYpKWsmoi+lVkVEBTeyT1ESZOW5uKoHOEVT+1SuQw8p4 iqXKFvkWiw/ah6fbXRxexO9MfQFOadmVjB5U4tEVkg6wsOqb7nrOpJ0ftD9Fel8ui1xc h2w1l9BED+lJ2MkBZvK9CFk6GnS4uKsvYev0PSKe5rixq5VqLasbI2OpUz86O9RK3ooz eYsto8cb3u5+J4x8yDi1qjPykYwVNlAxXq0sHSR1tnuRIw3SEZ1WTo9BCnoXKhk/OAgv OLCg== X-Gm-Message-State: APzg51AQB1ZbAnoxCCywV/FzWlgUZyJKriRArFRmqOHx6XibJI2SpN9Q H7LYx+3hVyCdZjhoWVapxE4= X-Received: by 2002:a63:2d05:: with SMTP id t5-v6mr3428867pgt.403.1535151828348; Fri, 24 Aug 2018 16:03:48 -0700 (PDT) Received: from localhost.localdomain ([2601:644:8201:32e0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id r130-v6sm11033550pgr.8.2018.08.24.16.03.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Aug 2018 16:03:47 -0700 (PDT) Date: Fri, 24 Aug 2018 16:03:40 -0700 From: Eduardo Valentin To: Emmanuel Vadot Cc: Maxime Ripard , Rob Herring , Mark Rutland , "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: <20180824230338.GA19399@localhost.localdomain> References: <20180804070355.14857-1-manu@freebsd.org> <20180820111755.rzg7l2lznmbpuf2e@flea> <20180820140737.xmqhu5ndqzehvkql@flea> <20180820162715.49e6d8a469ece983f3c1d288@bidouilliste.com> <20180824145840.isdcg3fr6mw4ntzg@flea> <20180824215921.59d060b54eb3a1e7d1552bde@bidouilliste.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20180824215921.59d060b54eb3a1e7d1552bde@bidouilliste.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 24, 2018 at 09:59:21PM +0200, Emmanuel Vadot wrote: >=20 > Hi, >=20 > On Fri, 24 Aug 2018 16:58:40 +0200 > Maxime Ripard wrote: >=20 > > Hi, > >=20 > > 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: > > >=20 > > > > 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 th= e 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. > > > > >=20 > > > > > I'll take it then. Linux is not the only DT client. > > > >=20 > > > > Then don't complain if we ever have to break the ABI. We never test= ed > > > > 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. > > > >=20 > > > > And sure, Linux is not the only DT client. Just like FreeBSD isn't. > > >=20 > > > 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 start= ed > > > 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. > >=20 > > Do you have a link to that driver?=20 >=20 > https://github.com/freebsd/freebsd/blob/master/sys/arm/allwinner/aw_ther= mal.c >=20 > > How and how much did you test it? >=20 > 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. >=20 > > Are you using the calibration data stored in the SID? >=20 > Yes, which is why the serie contain the nvmem cell for the SID. >=20 > >=20 > > > I just hope that you understand that we cannot wait for Linux to > > > have a driver to have some bindings. > >=20 > > 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. >=20 > 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. I would prefer to see a series of DT bindings + driver. Can you send your next iteration with the driver so we can review both together? >=20 > > Maxime > >=20 > > --=20 > > Maxime Ripard, Bootlin > > Embedded Linux and Kernel engineering > > https://bootlin.com >=20 >=20 > --=20 > Emmanuel Vadot