Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3666329ybl; Tue, 21 Jan 2020 05:04:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxJ9RL1smIxBcWivrauHWefMbTdDqmejY2SwuAwgXM+sE2haV5cP4iisaDwU6Z62avG4pwH X-Received: by 2002:a05:6830:1248:: with SMTP id s8mr3435045otp.202.1579611891919; Tue, 21 Jan 2020 05:04:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579611891; cv=none; d=google.com; s=arc-20160816; b=I4O6raAVZytq0WGnXehTAxp8SS64gsXJdw7zjVICPPWkK8TKtlL3+7S+Da4Pz+Y60Y T3wnrtoNqNTNnuYOVJgbpqj42zRba/+Yrjy6DSv1yy7X0WEL6KdZzROx2VmRDCAOfBku t8sS0DCFTtB1eAjTAd/lQ5+2rjf83Il2OuLUbm+yeL/DmZEnJtzD5MXRyJXJ1BPnEvrV J10tJlqR4ofjIqpJo3ppqtkhbooZSbFthKslrOnDQkpbyk44Wc1wrMdue9vv6SblkFC9 /CrErw7hpxC55N0CQe5EllKsqwGJqkhshmeqVr9TtxgG9gpnGDJH6IOpRenRHtGZz7wt krKw== 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=i5yV9vwH1Jl062naS9eSKGrpiKn5wSECHe525FrYmBE=; b=JboJnzBeJuWgiS6+CmuY8q21SUWY8l0JcxSJseKn5tECbEng4LPOsIS83yvES3zm+J D3z6KluJSqi7bed3TrUb2ov+8pIZXmtLFo1EeVw3KFkMEKsDymTUkzWP2T3IsqlnXWix 7tVg6+pfHwd427ubUXhvevu/gvrL2MpgOf5BdliPInmwf/U0b8fVsdV9TJODpv8oAEig yN1rZLKkL98ickpeJORpfhZLQosSbI9HEgTL16BhKw9mXhGja2cVRhP9dnt5WeVdY9/5 GX4BMj0ipQg1t27/eXcMmZ7w3pJCRLNDQpzn7v13HI2pVzUw3qUv51rMtXIuC/HJA3oQ 5U5w== 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 t185si19520234oib.39.2020.01.21.05.04.35; Tue, 21 Jan 2020 05:04:51 -0800 (PST) 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 S1728816AbgAUNBu (ORCPT + 99 others); Tue, 21 Jan 2020 08:01:50 -0500 Received: from gloria.sntech.de ([185.11.138.130]:60610 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726920AbgAUNBu (ORCPT ); Tue, 21 Jan 2020 08:01:50 -0500 Received: from ip092042140082.rev.nessus.at ([92.42.140.82] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1itt9w-0003e0-H3; Tue, 21 Jan 2020 14:01:32 +0100 From: Heiko Stuebner To: Ezequiel Garcia Cc: Justin Swartz , Jacob Chen , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] media: rockchip/rga: add rk3228-rga to rockchip_rga_match[] Date: Tue, 21 Jan 2020 14:01:31 +0100 Message-ID: <1798689.nCamLzREIU@phil> In-Reply-To: <241033bf82fc7e955dd20c0084bfd4f6fc9fc75b.camel@collabora.com> References: <20200120194158.25357-1-justin.swartz@risingedge.co.za> <241033bf82fc7e955dd20c0084bfd4f6fc9fc75b.camel@collabora.com> 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 Hi Ezequiel, Am Dienstag, 21. Januar 2020, 11:45:01 CET schrieb Ezequiel Garcia: > On Mon, 2020-01-20 at 19:41 +0000, Justin Swartz wrote: > > Add an entry to the rockchip_rga_match array for "rockchip,rk3228-rga" > > > > Signed-off-by: Justin Swartz > > --- > > drivers/media/platform/rockchip/rga/rga.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c > > index e9ff12b6b..268116cd5 100644 > > --- a/drivers/media/platform/rockchip/rga/rga.c > > +++ b/drivers/media/platform/rockchip/rga/rga.c > > @@ -956,6 +956,9 @@ static const struct dev_pm_ops rga_pm = { > > > > static const struct of_device_id rockchip_rga_match[] = { > > { > > + .compatible = "rockchip,rk3228-rga", > > + }, > > Unless you need to tune something in the driver > specifically for rk3228, then you don't need a > new compatible string. > > As the name implies, it's just a "compatible", > so you may simply declare your rga dts node as > compatible to "rockchip,rk3288-rga". > > (Of course, this means we shouldn't have added > the rk3399 compatible string.) small correction, we normally do that in two parts in the dts, compatible = "rockchip,rk3228-rga", "rockchip,rk3288-rga" etc. So the compatible needs to be added to binding document but not necessarily to the driver but does leave us the option of later defining that new compatible in the driver to handle quirks that may be discovered later on, without needing to adapt existing devicetrees. Heiko