Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3099815imm; Mon, 16 Jul 2018 21:59:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeVPbbuARKdkN6SKdz0eTIC/kDpI/PpNJXNhLscUA2E+3BdhqF0fOFs/MfKEYdCY2ARK03s X-Received: by 2002:a17:902:9687:: with SMTP id n7-v6mr97734plp.33.1531803551830; Mon, 16 Jul 2018 21:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531803551; cv=none; d=google.com; s=arc-20160816; b=D+BvT3KOJmHDzyA+KhNek0StM/PlY0EIr5s32Z9dOGJzN8Q/wxRjhGnnUYbN0wfSCj tFs9hll5Sf6C7P4oDDuUjRHrwEniIVPPSGtZkwzKSYOTaDj6M86ZcV4q2r7uObw4EZAC /XQqzytld2FguPtQErW9o0qVjrZzZfGoub9x1ep88TAs4L3oR5OGjp6jdO+0pPJY13Eo IeRQSO6L+GvFniRb+pA377BHX/YUmAguO14P2iI834EfvUCUeEYLvpapvzjAqBoka72B WL80f437ldht7lBNPNEG9j99i4F9BD9Bn2oLcGzzVf67XpxuCBHaAxorFGre1NdhkK6l 3kkA== 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:date:cc:to:from:subject:message-id :arc-authentication-results; bh=kb4FIpKn6WphaTEzbibAkXJ6HNlUEssACfECBSnFX2Y=; b=V+z2YJbEB4fAl96NkA8nFo6asG7YyuIVCYXFfLmFGGftodMKTm2xV3s3GOayzfru7d HxzdmJe22pt/RmdPcZxYeZrnzI7rpMFzBRnY8+rwGvpGwu8ImlmayyCQSwFruqrDX78t JkXw6EBmmnaiLe+SVd1xEq78Lo3sN8QWlQtwJhD85T1lG7Gy5owZkd0NuGpLT/SWLIW8 rxosKA3glnAI3bDTqdv26pcIjbw+HvSFhVkxwXUFGmUtTpas6nzXqHPM0jzXTiNPVrMN DG7bCZqOHmZc9w5aEXPO4QRMw32+egkNdlO5OelJPDytm1ClurEGv6eZPdgakC7Jt/tF eqyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 59-v6si32805plc.30.2018.07.16.21.58.56; Mon, 16 Jul 2018 21:59:11 -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; 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 S1728102AbeGQF1w (ORCPT + 99 others); Tue, 17 Jul 2018 01:27:52 -0400 Received: from gate.crashing.org ([63.228.1.57]:56317 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbeGQF1w (ORCPT ); Tue, 17 Jul 2018 01:27:52 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id w6H4uLKh017502; Mon, 16 Jul 2018 23:56:22 -0500 Message-ID: Subject: Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields From: Benjamin Herrenschmidt To: Rob Herring , Andrew Jeffery Cc: Mark Rutland , devicetree@vger.kernel.org, Greg Kroah-Hartman , Eugene.Cho@dell.com, a.amelkin@yadro.com, "linux-kernel@vger.kernel.org" , Joel Stanley , stewart@linux.ibm.com, OpenBMC Maillist , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Date: Tue, 17 Jul 2018 14:56:21 +1000 In-Reply-To: References: <20180711053122.30773-1-andrew@aj.id.au> <20180711053122.30773-2-andrew@aj.id.au> <20180711200450.GB17291@rob-hp-laptop> <1531356830.3551458.1437853280.551CA8C5@webmail.messagingengine.com> <1531463489.747186.1439263128.075AECE1@webmail.messagingengine.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.3 (3.28.3-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-07-16 at 07:55 -0600, Rob Herring wrote: > If that data is one set per SoC, then i'm not that concerned having > platform-specific data in the driver. That doesn't mean the driver is > not "generic". It's still not clear to me in this thread, how much of > this is board specific, but given that you've placed all the data in > an SoC dtsi file it seems to be all per SoC. So Rob, I think that's precisely where the disconnect is. I think we all (well hopefully) agree that those few tunables don't fit in any existing subystem and aren't likely to ever do (famous last words...). Where we disagree is we want to make this parametrized via the DT, and you want us to hard wire the list in some kind of SoC driver for a given SoC family/version. The reason I think hard wiring the list in the driver is not a great solution is that that list in itself is prone to variations, possibly fairly often, between boards, vendors, versions of boards, etc... We can't know for sure every SoC tunable (out of the gazillions in those chips) are going to be needed for a given system. We know which ones we do use for ours, and that's a couple of handfuls, but it could be that Dell need a slightly different set, and so might Yadro, or so might our next board revision for that matter. Now, updating the device-tree in the board flash with whatever vendor specific information is needed is a LOT easier than getting the kernel driver constantly updated. The device-tree after all is there to reflect among other things system specific ways in which the SoC is wired and configured. This is rather close... Cheers, Ben.