Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3392923imm; Mon, 8 Oct 2018 03:19:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV6300Yj80wSI1zeSlQK9IVR6LIVkVq8NEdUWaFoJ0QRR5e9dR3Oncdl4r8Akphzq0J0D3IUl X-Received: by 2002:a17:902:a9cc:: with SMTP id b12-v6mr22851529plr.198.1538993954818; Mon, 08 Oct 2018 03:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538993954; cv=none; d=google.com; s=arc-20160816; b=VeGbfA1JKW+cc8BOWLAo+zTRfSRjYu1MjMfXVhXKombkN0KpnXN4Zc6YdiiEv5T7Qe aytVVA1in/sUPN0iIgODKaPtWZFLKK9b9hvrq/1KSeejH1jUjhYJwBGdctgnvs6GrARh +hhFsmRca8+wKojkHJFWs5CUuXb5mv/9Ve3GbXrp7zjpBInK0dmjc8csRjKKUksHZhdQ oeSeHkUVArUpurRjVZI55amaXa4IglIIQZRkOKRClvNDDa6NMx7OCETnPer5Uepl/z2+ vDzMG65pvwCSqhbs5zJMPEChg9YB3Q6l0CX8GgGBvLFkpuAF4123ik9xRen/LrTat/J0 IlQg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ML547qFoXUiIjbMEkXS5/lG6aJAJzpvNbie7RGGcFIc=; b=RwxL4eDDT69TCgUFki25OJlyzlntE48P14I6vFNnklQ2YFtwp+rHpH/QORALPCARi2 lQoWxjIqmLiesyhC52qTn6tpMxfI3mzAQc68vdNP5PtUxsS6jWVVAV6RVvh7RZYyoOZD RoamsQLMfuB4e/3irNxxV62ncU+7AFW9unsAZJbo8ctcDNqmNbqQe0Y1N0hUdDwXGTwl ZEsHFucviaIKE4MVRDmGfSv2FNhgzG5/tWf5vwJyM0S8BXUoyCIDX1pzXt6VfXwDLGtu EQU2bv9uRkWX7XH+ZT7EAPLXsWdjvU991v+8ENldUroNsGYtygDt1jAUU+7UMR7QVma0 Uk2w== 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 a9-v6si17738515pfe.29.2018.10.08.03.18.59; Mon, 08 Oct 2018 03:19:14 -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 S1727510AbeJHR3j (ORCPT + 99 others); Mon, 8 Oct 2018 13:29:39 -0400 Received: from mail.bootlin.com ([62.4.15.54]:39405 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbeJHR3j (ORCPT ); Mon, 8 Oct 2018 13:29:39 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id E2414207F3; Mon, 8 Oct 2018 12:18:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (AAubervilliers-681-1-28-153.w90-88.abo.wanadoo.fr [90.88.148.153]) by mail.bootlin.com (Postfix) with ESMTPSA id B3F2E2072D; Mon, 8 Oct 2018 12:18:27 +0200 (CEST) Date: Mon, 8 Oct 2018 12:18:28 +0200 From: Maxime Ripard To: Jernej Skrabec 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 Message-ID: <20181008101828.hb4xtppbexwalbkk@flea> References: <20181007093905.11253-1-jernej.skrabec@siol.net> <20181007093905.11253-11-jernej.skrabec@siol.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="u2h5j7rewatczeh5" Content-Disposition: inline In-Reply-To: <20181007093905.11253-11-jernej.skrabec@siol.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --u2h5j7rewatczeh5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --u2h5j7rewatczeh5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlu7LvMACgkQ0rTAlCFN r3RJlg/8CrYQK3P9WPVn2PZZWm6SjDK98/0Th/16/S3fgrZjIQomWjGTz9sIeK1C qrEhqPgg9KO+vrKbTlFAID3P09Mz0FUjD5Bq5tuNyrMdCWi5QlopS20LgFYDyxMI n+TSyDqIgtYKe852XrhZ9Lh8QUTiNX/ixFn5Jume0kYshdwKqB7YzMc8GXXlRxe/ ekFikGy1F4P2/vU9cvZW/5nNIN2qDExx+hM/sHuRNXc/hHaU3cFPVzhssVcWT6c2 /Fx7cI8jimEivcDQYkIj3ozbrK0dLeJKRZ8J8d0/HeU8mHJ7DKn6SSIFq5RFMkcB pVKFoaJpk1JFygWkTeaNsomuNMTPzS0FHBviGKifHnQ4dXPakefjPrItf33G7dDn a6m4Yy+TsdRaR4mKaLSQTVIqXurdWTjlY6Tcqqqrd7bN5TbSZxRM6qjjPK/OULzV SACtzLNSBIlfXfEMg+tR0K6mkpWsmdAZNCIYxuf5Dr7wPzP4N7ra4JANzpzlwKqK etlbG+i3n6pcsFYzIU7eSbRmv7u9wBiuJSV7AiCyS4GMmn9BHyW4MORlRGMz7jls cBfZSD25XtzW958ZQ4x5ATsZG6QsrZ+jRL/uy/GodyzDGYB8djIK2lQefaPpYOS6 7sZzF4ZtOYOrLVGKI0mgLhnNBmyCSq4KleQ+Bi1zXB2Xh1PeL4Q= =5UDP -----END PGP SIGNATURE----- --u2h5j7rewatczeh5--