Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3653955imm; Mon, 8 Oct 2018 07:30:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV61DLM5r5smtQQ6l9g80o3YEgCkOqihLo43AoFmwv+Uaa6KB6PaFHuSc21MCLNG5FPtvBkuK X-Received: by 2002:a62:f20f:: with SMTP id m15-v6mr25052452pfh.244.1539009032359; Mon, 08 Oct 2018 07:30:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539009032; cv=none; d=google.com; s=arc-20160816; b=AlW34lWQzxoG1VVYig5fXO0is+KBtakyT7yrVaFm6NSVtGE5DWFTm0Zk1VmM+9Jq2q 9/0Q8V0IkoWQixx0cxd64zNK4S0BsQpeUJpVq9odc6euOGF5KhTOdws5Ya6F1TC+za96 HcT7y2+PBSV0Tvop3gvE8UjHqzUii2qTpp/ZbQZeC+v5VYdJODu8zbuCTYZlW7cYPpNP McCMhvBo8QDNFhokNREH+SHA/ADB9YptXgRzFx2BBVWWr94y2f/dqW4jdLONI4/1Ug00 O0y5tHIceYM8LAH4GRnpnm8ZmtLlczLvAc0ZKLiUHSZfW6GOxsIT1Tptxj6fYRoS0mYn 8ASg== 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:date:subject:cc:to:from; bh=KYl2LdPJCTqlwP9Fi+ux2CCTf8K/MZW0eJHsrHQM5QA=; b=k07T1PGu8CBP1HoTEEzGYBDB2PKTicNJ3Pxk0GXsNHKQtQtGFVyIaTlgQ5+ZZb6K1y DG6SLBYsEn6SAl5FGuixfdTUHfNQ5WAxuxvxc0ANwXZzY3N45kb/vEIJCskaHbX6bXGz DdnPXG/2mYbzUGFhliVkXgVxsHgqP4ERESLyWURVnEdhMykXWmqj5WSOBXpKQXuL8JaS j6w0pGvWWuH7rfc4JDLyxq4kuSVBbYdrdey3/GjeTTr1wF2o2pOYbq9kuGn5PW4TsUEK TW1y7hHR2aj57HF4s+SvJiBqoRz9TEy3ZIuMdnlwoZAisQHjaWS/9rwK8xiSrHTgKzfz YbeA== 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 k190-v6si17074743pgd.181.2018.10.08.07.30.16; Mon, 08 Oct 2018 07:30:32 -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 S1726523AbeJHVkp (ORCPT + 99 others); Mon, 8 Oct 2018 17:40:45 -0400 Received: from mailoutvs9.siol.net ([185.57.226.200]:33022 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726379AbeJHVkp (ORCPT ); Mon, 8 Oct 2018 17:40:45 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 25269520C5A; Mon, 8 Oct 2018 16:28:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta09.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta09.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id YcDYi2KmUKeT; Mon, 8 Oct 2018 16:28:42 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id B83D1520D17; Mon, 8 Oct 2018 16:28:42 +0200 (CEST) Received: from jernej-laptop.localnet (cpe1-8-82.cable.triera.net [213.161.8.82]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPA id 3F4F6520D0D; Mon, 8 Oct 2018 16:28:42 +0200 (CEST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard Cc: wens@csie.org, robh+dt@kernel.org, sboyd@kernel.org, airlied@linux.ie, architt@codeaurora.org, a.hajda@samsung.com, Laurent.pinchart@ideasonboard.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v2 10/29] drm/sun4i: Rename DE2 registers related macros Date: Mon, 08 Oct 2018 16:28:41 +0200 Message-ID: <11072788.dZi9MDiihb@jernej-laptop> In-Reply-To: <20181008101828.hb4xtppbexwalbkk@flea> References: <20181007093905.11253-1-jernej.skrabec@siol.net> <20181007093905.11253-11-jernej.skrabec@siol.net> <20181008101828.hb4xtppbexwalbkk@flea> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne ponedeljek, 08. oktober 2018 ob 12:18:28 CEST je Maxime Ripard napisal(a): > Hi, > > On Sun, Oct 07, 2018 at 11:38:46AM +0200, Jernej Skrabec wrote: > > In preparation to introduce DE3 support, change prefix from "SUN8I_" to > > "DE2_". Current prefix suggest that it's valid only for one family, > > whereas in reality, DE2 unit is used also on sun50i family. > > Additionally, it will be easier to distinguish DE3 specific macros by > > using "DE3_" prefix. > > > > No functional change in this commit. > > I'm not too sure about this one. There's basically two ways to look at > this: you described the first one, and the second one would be to > treat it as we do for the compatibles: the IP was introduced on one > SoC family, and then got used on some other ones. > > Trying to always match the one you have however have a quite big > maintainance cost, as can be shown by your patch: you always have to > adapt comments, function names, defines, etc. This creates a lot of > useless churns (ie, non-functional changes) in the drivers, that need > to be written in the first place, and then reviewed. > > It's just not worth it. Well, using family neutral way would mean that there is no need anymore for adaptation in the future, but as you wish. What prefix should I use for DE3 specific registers? Best regards, Jernej