Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2032419ybe; Thu, 12 Sep 2019 03:30:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgyrAR9xSeCng+c69MlRlROy9Xf9HI3nkiLaJ6ZBuRHIFsLDfAGIdDmI/W6+0TAH6P6ghq X-Received: by 2002:a17:906:6bd0:: with SMTP id t16mr34626707ejs.189.1568284200316; Thu, 12 Sep 2019 03:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568284200; cv=none; d=google.com; s=arc-20160816; b=HMpz4L6PMrR0rKmYV6cxfbbHJnIG3nyHDKM1AZp4wkPJGyVhNSTZKTx+UlzuNkprxS mkkQZBORjoYxQaT6W9CqzktFiqYmXMnl16pqHDzMBPNWCrOOWNzDVWrPXAQYCbLfKc3s xQlQtJ7YNuJ70zLGMyG+pc0kkAmmIgW1FEjtQi/4Cd/SwgCbCwPy7ZWjlpYcGRbqhQsV cTdBe1AExUmoXdvSAcQxjo53OyCpjH4p2Ny4a3hnACknzzvYNxs1jerrhZ0lzFcWMFMd mShDBqjEzDOpN+k5Cd9k20mPop/FaGuCecSylHgpVeBBbnVNTo8FlTIl2Bqm3o998Dbd xMGA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to :dkim-signature; bh=Pia51csw0mHhE7Z0IPhOOXuUdEIE9vp3/o9AyuoUJ7k=; b=NbhVRBir6ISPQK51gP9M7p6l6J0jsjAQv7fU81dlehpg4vOsNNnDxXWR8ksihelawD B/b3HagoxGbeHbQBNLRyYXUK0wu+Ah7o1qP4FxHy9k7IzflIrRtXV0apjBIn3sKmJo0k 4cPyhjtnnUEgchMLo6n/TKxPUhE+Fz0czl+nIMIk1VxStBwPPstqr+ExmVbDTeDE/JIl L/Nl+/ElwCSixtPDWvLUoflxYrr1UeAEQC5sHP6noQUsdZtQy2WlOSsBCX/iSCywO74q ywLTIYRrFkbw3oTu23mFJUJHndDLCSnM2H22d5wbWKtUaPA73OMxuquKVbwSMOJ3hGJX VCoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=H2mgjg+P; 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 e12si14073414edb.262.2019.09.12.03.29.36; Thu, 12 Sep 2019 03:30:00 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=H2mgjg+P; 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 S1731106AbfILK0m (ORCPT + 99 others); Thu, 12 Sep 2019 06:26:42 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:53842 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730580AbfILK0m (ORCPT ); Thu, 12 Sep 2019 06:26:42 -0400 Received: from [192.168.0.20] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E340733A; Thu, 12 Sep 2019 12:26:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1568283999; bh=2zUt4HB7PYMjMGgMKlMSLXGexV2OpGaqgU1pFFcT7js=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=H2mgjg+P/Ne5IOdvf7iQtkk3RBYP4Bor9aPnpsZzIr+HZP7vBNux9cMFB9cTXgKWQ LjZ/LYBoM6sYf52P+BrZn8GagFdig5JfyWL8v4VxXrqv1wjTORNbqmQByNLK4a7Vur DrjEJ7TqOuyvTyeAMUwojTQakHp/6LhMECxvuHA4= Reply-To: kieran.bingham+renesas@ideasonboard.com Subject: Re: [PATCH] drm: rcar-du: Add r8a77980 support To: Sergei Shtylyov , linux-renesas-soc@vger.kernel.org, Laurent Pinchart , Geert Uytterhoeven Cc: David Airlie , Daniel Vetter , "open list:DRM DRIVERS FOR RENESAS" , open list References: <20190911192502.16609-1-kieran.bingham+renesas@ideasonboard.com> <70b94265-69f3-d18f-1b67-b5b814723b1b@cogentembedded.com> From: Kieran Bingham Organization: Ideas on Board Message-ID: Date: Thu, 12 Sep 2019 11:26:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <70b94265-69f3-d18f-1b67-b5b814723b1b@cogentembedded.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sergei, (pulling in +Geert for his opinion on compatible string usages) On 12/09/2019 11:00, Sergei Shtylyov wrote:> Hello! > > On 11.09.2019 22:25, Kieran Bingham wrote: > >> Add direct support for the r8a77980 (V3H). >> >> The V3H shares a common, compatible configuration with the r8a77970 >> (V3M) so that device info structure is reused. > >    Do we really need to add yet another compatible in this case? > I just added r8a77970 to the compatible prop in the r8a77980 DT. That's why > a patch like this one didn't get posted by me. It's not just about the compatible string for me here, There is no indication in the driver that it supports the r8a77980, and no comment in the driver to explain that the r8a77980 is shared by the r8a77970. This patch makes that explicit at the driver. Also - I am considering sending a patch (that I've already created anyway) to remove the r8a77970 reference from the arch/arm64/boot/dts/renesas/r8a77980.dtsi file. This is the *only* non r8a77980 reference in this file, so it seems very out of place. In fact more so than that - except for a seemingly glaring typo, that I'll investigate and send a patch for next, this is the *only* cross-soc compatible reference: #!/bin/sh files=r8a77*.dtsi for f in $files; do soc=`basename $f .dtsi | sed 's/-.*//'` echo "F: $f soc: $soc"; # Find all references to all socs, then hide 'this' soc grep r8a77 $f | grep -v $soc done; Finds : > F: r8a774a1.dtsi soc: r8a774a1 > F: r8a774c0.dtsi soc: r8a774c0 > F: r8a7795-es1.dtsi soc: r8a7795 > F: r8a7795.dtsi soc: r8a7795 > F: r8a7796.dtsi soc: r8a7796 > F: r8a77965.dtsi soc: r8a77965 > * Based on r8a7796.dtsi > F: r8a77970.dtsi soc: r8a77970 > compatible = "renesas,pwm-r8a7790", "renesas,pwm-rcar"; > F: r8a77980.dtsi soc: r8a77980 > "renesas,du-r8a77970"; > F: r8a77990.dtsi soc: r8a77990 > F: r8a77995.dtsi soc: r8a77995 -- KB > >> Signed-off-by: Kieran Bingham > [...] > > MBR, Sergei