Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2091386imm; Thu, 2 Aug 2018 06:10:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcodl4HVMHlDZwpRvTAVZv6ViwZHfdkY42uTbaFU3YB682iAS2Hq1Qp+wht0bZc19m9kzy1 X-Received: by 2002:a17:902:7c8e:: with SMTP id y14-v6mr2398946pll.265.1533215417039; Thu, 02 Aug 2018 06:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533215417; cv=none; d=google.com; s=arc-20160816; b=RQdyDS0OcMMNI3gGmIMGEtbZcmdeGV0pehYemjG0DTcUpjQc7oNZKRubZreHUStlGi OkIJhd+cFQ6DmJGgegKNLfSHV9oc3RyBlxEjzt0sqL86TbFvD0Fz9CI22Kw4w6LGQEW+ JC41twF30HJDrRsgzyV95YdTLWTig4OHEM9lVP42wFY/4rr4X5jzqeknBdyI4EXglxHp AkAvFYXgKdj85fCmrF8yzRIBpI0uuIptaw1yTNKLcOGv+gLZEMXvVj5JucGXbc2R/hTI FhsjKwRYXybBVTMEa+1ndbCDk9tbIELgaT1yInKgKca1d45TqyhLAZoBsNO+sfBPKFh4 jUsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=yZfTlPp17gbc0Q/Bd0EdnM1lcjczHaMB/ySr7s5ttEo=; b=tKvOgI1WgdGBOwWdR5T8yp6EQT1IvxcGt17L9DDF97GlHcLz2llffZXiK5+P2Zl/WT oBlsP8a9tvVG9cHxPVAAGvQoIybYlhvE/P2K8OYUnZG/NnqL7LClkGvEzBuBgiyb6axV TOkOK4QCjbIKrTU87kANdW5id145fsrIHIrOZLpGc59lwju9KxeYWfrDi9pZjueNuv6y NPt8/B1O20iG+2MwHB9nSUToFILQVHBlL43ZIY/Yc0M+y4kif73+Vzld3qPpjZWo53RU gaY5fyf6YQ/Da7HAOhyQfVdCU9EMEYRVGiNbdmIPmf5e+1C/uKHMZiKb8bgOVE7l7zEN pMpQ== 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 l59-v6si1323497plb.519.2018.08.02.06.10.02; Thu, 02 Aug 2018 06:10:17 -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 S2387536AbeHBPAO (ORCPT + 99 others); Thu, 2 Aug 2018 11:00:14 -0400 Received: from smtp11.smtpout.orange.fr ([80.12.242.133]:21494 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387429AbeHBPAO (ORCPT ); Thu, 2 Aug 2018 11:00:14 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]) by mwinf5d89 with ME id JD941y0053jmVAh03D94gb; Thu, 02 Aug 2018 15:09:05 +0200 X-ME-Helo: mail-qk0-f172.google.com X-ME-Auth: bWF4aS5qb3VyZGFuQHdhbmFkb28uZnI= X-ME-Date: Thu, 02 Aug 2018 15:09:05 +0200 X-ME-IP: 209.85.220.172 Received: by mail-qk0-f172.google.com with SMTP id v17-v6so1440565qkb.11; Thu, 02 Aug 2018 06:09:04 -0700 (PDT) X-Gm-Message-State: AOUpUlGZVd8RVkgZTYfrsCS8PZGB/a7zAqtgSs7SpAqHNEBCiAAS6E1X Gl+mlkO/O6E/yPlnr7BqtVDiNnu5cdk9khMPp40= X-Received: by 2002:a37:5641:: with SMTP id k62-v6mr2535236qkb.40.1533215343764; Thu, 02 Aug 2018 06:09:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:278a:0:0:0:0:0 with HTTP; Thu, 2 Aug 2018 06:09:03 -0700 (PDT) In-Reply-To: <843e41de9fa7d5f87309ff4e0db2ed84a1153a4c.camel@baylibre.com> References: <20180801185128.23440-1-maxi.jourdan@wanadoo.fr> <20180801185128.23440-5-maxi.jourdan@wanadoo.fr> <744700e43aed3880807f86abde0caf3df1127e60.camel@baylibre.com> <843e41de9fa7d5f87309ff4e0db2ed84a1153a4c.camel@baylibre.com> From: Maxime Jourdan Date: Thu, 2 Aug 2018 15:09:03 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] drm/meson: convert to the new canvas module To: Jerome Brunet Cc: Maxime Jourdan , Neil Armstrong , Kevin Hilman , linux-arm-kernel@lists.infradead.org, linux-amlogic , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-08-02 15:01 GMT+02:00 Jerome Brunet : > What I don't like is precisely that you need to expose this 'struct ops' to the > consumer. I would prefer an API for this (it can be a 1:1 mapping). The canvas > should remain some abstract object you get from DT. > > IMO, this is the same as a reset, a syscon or whatever other phandle you get > from DT. The consumer should not have to 'care' how it works (how data are > organized), it should just use it. > > Whatever you need to do to deal with your canvas phandle should (IMO) reside in > your soc/amlogic/meson-canvas.c, and not be spread in the consumers. > >> >> I agree that the "fetch the node" boilerplate code could be put behind >> a helper, but at the same time this code helps remind the developer >> that there needs to be a canvas node in the dts, and that it has to be >> linked in your own device node. > > This is why we have a DT documentation. > > And, as far as I understand amlogic's display and decoder stuff, you won't get > very far w/o a canvas, so 'the developer' will be reminded fairly quickly ;) > >> >> I would like to keep it that way if that is okay with you. > > It's just my opinion, I'm not the one merging it ... :P > > Fair enough, I'll see to API-ize the module in v2 :).