Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2137423ybe; Thu, 12 Sep 2019 05:13:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy6BKkXJEGtvQsBXAkNnoUPkjwnmAvwytWzk0x+hvjTjc/YFoQZKV31AyYsEaS1v0bHTPM X-Received: by 2002:a17:906:614f:: with SMTP id p15mr34779313ejl.295.1568290435281; Thu, 12 Sep 2019 05:13:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568290435; cv=none; d=google.com; s=arc-20160816; b=fR5BiE6Hwrqn4O/G2YYG+VwO8joql/Oi0wLW5kVJ73Zp/8E0EgXLOH6SwXuO7IqZNB cJ39QPNJqJZ9Oh5FA6ntq9+2MYydoix4cgOYUBGtkpEGWCogZpYISw2pKHUZ/k08iZus p7l95Qa/JivQ2nD/xuKaDapfQnuVvbwIVdYI9ChZpdTqvrTlQXIGEqpESbbkCu4mBqBQ 1tWljgYSpS5OfWbtI93bz7wOXJbCDx76RW/ZdAOfvMHBdJ4D625YRD54LDatDW1Qzn1m kn5bWJw+6LTq7kHHL0vU3Kes2OLpiGrked2daUivkd60665ZFHH3K8VbqgXhaGZKhw8E uWgg== 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=P8sK3xzbQcejnSSWV9iDdzVpwCDaE4RlLfXdGu3dwtU=; b=qy9PAqVySSBwwK3m0TBL5ibYZmwxAyR8x+GVIKYv7okwQQhK/bjTLUZEBoZs8EnM4x B6exDHjHr6KGuyt7rACWsb283Rgbz63ipIA27plKeeHP/ymrbidoHJhYQMQZ1BpT0XqB 9x0CrEcfDeLc3rFiFXX45KNRHScVxQt47AITDRA9d6W0LkaeCLVKztiT30f0Zq8U6+eH 7fKp8XFl92TEn4MZIv4Kq84VO9qkFc18Jm5DZaMRucAGKE2IfeiW1s/+ZuAKFVQ+956m xgOVKp91qnT0E4V7Rafa6QhPHmJow8sBJCSbCy0gW3UVGsldQtcev76HBjI48kBlHeCt sPHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=V3K7kyI+; 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 h20si14241552edb.218.2019.09.12.05.13.31; Thu, 12 Sep 2019 05:13:55 -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=V3K7kyI+; 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 S1731479AbfILMLn (ORCPT + 99 others); Thu, 12 Sep 2019 08:11:43 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:54608 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730454AbfILMLn (ORCPT ); Thu, 12 Sep 2019 08:11:43 -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 DD4AC33A; Thu, 12 Sep 2019 14:11:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1568290301; bh=NOv4MyRD/H4sN33iCT3cWaXxofQTNOSbcc5mu90xRJ4=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=V3K7kyI+B8VIXUeBNONAh5xlpsnF22g3XbXJ2RLNyU58NmUmY2KkyNiCIO4jHepad ObfbkW0mrY7QBlxGkxM5zLpivD5h3NECfvONQQOb2Xu1UbW4NAMguOSWw3eVJLpg9p 3I4zFBb1Fgj9P5M7fOgO7BPFwOugJ9oOS9/LUom0= Reply-To: kieran.bingham+renesas@ideasonboard.com Subject: Re: [PATCH] drm: rcar-du: Add r8a77980 support To: Geert Uytterhoeven Cc: Sergei Shtylyov , Linux-Renesas , Laurent Pinchart , Geert Uytterhoeven , 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 13:11:37 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/09/2019 13:03, Geert Uytterhoeven wrote: > Hi Kieran, > > On Thu, Sep 12, 2019 at 12:26 PM Kieran Bingham > wrote: >> (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. > > Agreed. > >> 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 > > This hides the complete line. So you better use e.g. > > sed -e "s/$soc/soc/ig" $f | grep -i r8a Aha yes, excellent point! (I'm glad I posted my working) > > instead. No new offenders, though. Phew, I still got the right answer :-D -- Kieran