Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3812144ybl; Mon, 26 Aug 2019 00:33:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDYdKCfRcGUYdGqD9y1+R3lPIX59lUjogbP71wPh26396Wucq4F3M3qxLc9uzL/vb7f2tp X-Received: by 2002:a65:60d3:: with SMTP id r19mr4977350pgv.91.1566804835777; Mon, 26 Aug 2019 00:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566804835; cv=none; d=google.com; s=arc-20160816; b=yhXEWTVps5T6ITzSjNH7XC+UHB3YeW0by4f2OgfN7G172nD5AS1h/8rl+/dyje7IU4 Mkyb1AIFw7PsiquJNEne11PNlOtMcfWMhJYgvM9iNQLni/8uC+bpvw9FOPaa6UTbE/Cp 0Qko6iC6lGX/Rl4pdFbISruy5gWxaX8UVpujnfdkTRNbiIjfKu5BzBl3WlhkNvL1u1Dw 0LBlfGANodZZFYS8VyWSV0o2xwmkg3iObXChqIGynDBrl0MpCXlmzWLCIX5Ta3AKdecj lqpTrsov9d72Y7a06PSMVVa7pWpognbB1t6vPKMWJyts+cH+WM8zC8NlyS1aeuh3qIRG ns8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=abhvVaOTv7qdR2buENiROg9GGD/qAIGiemfdRCUDpVc=; b=LPvCsCAhRG/NSrZmtz1T5mspb8jtT1Nh5SOndGbP9+1vEeHT3zT+NZ4dMs4pXKZKYv SqUDysWCxzSCwgeEwQ8QJvzgw5qALFZPuv6Hk3Wd63lDmw1oj1z9c+Agdt1SUcPPAp5j BUmfFrF8CBDSpN2mvilcn+sqll5Y+ICP9RC4q8148srkLwj4Mfedo+Slr9UM0+5qmz66 wKwQ/Ic7fMk43plWKzkmcAYf426z6yTUFL1XxK0Pb1Hppb2yEP2wF2KthHC28iB00W10 MhI1TYz8J/iHskpRHQvqPKL+p+HaJB8hcKFOgVMXJ8DDw1S3RawMgJMT5ObMZlGK7YWD weTw== 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 e18si8392991pgr.184.2019.08.26.00.33.40; Mon, 26 Aug 2019 00:33: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; 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 S1728215AbfHZHbO (ORCPT + 99 others); Mon, 26 Aug 2019 03:31:14 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:41825 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726719AbfHZHbO (ORCPT ); Mon, 26 Aug 2019 03:31:14 -0400 Received: by mail-ot1-f66.google.com with SMTP id o101so14273620ota.8; Mon, 26 Aug 2019 00:31:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=abhvVaOTv7qdR2buENiROg9GGD/qAIGiemfdRCUDpVc=; b=lqH006BCEkX6+z6YENIn73QMRP3M2lnLTwoxVZdUJQhLWIwR3lUFTQg0VITMb13lTz 5N0sl8CnbEQu3kExrW0GSFtxjnTpqZVrhkS0l/wxNLBgDo+oiE6TxQ59Flr/5BdkPbce N/4oI+lRekJRQC9h8Bhgs4ImlkixkSMastqcAfwkUewJYcwLycyQhJ4YYy0S6jttw8Zk 1fNPFw+P4hmgrXICLx09pfwTdODktj2bfyMneQlpMJJe0wvn/x1rGzJdQsZ5orhVaJ7T DxmNrqP5U9EB9qlO+msUtVPD6+Nxf/pWPEgTzQG3r0gzlMWHQ6JJeCOLdTQ2Oa7b+dyx 9Uxg== X-Gm-Message-State: APjAAAWq0MWh+ySDwjezNrXuVYTJ0yX1mCnp5KKHCGT7aKp0S/pxmugg uD9BZAxYtTz2uhOBwrgOa+tJLlx4AkoVXCILCsc= X-Received: by 2002:a9d:7a90:: with SMTP id l16mr14310466otn.297.1566804673402; Mon, 26 Aug 2019 00:31:13 -0700 (PDT) MIME-Version: 1.0 References: <20190825135154.11488-1-jacopo+renesas@jmondi.org> <20190825135154.11488-9-jacopo+renesas@jmondi.org> In-Reply-To: <20190825135154.11488-9-jacopo+renesas@jmondi.org> From: Geert Uytterhoeven Date: Mon, 26 Aug 2019 09:31:02 +0200 Message-ID: Subject: Re: [PATCH v3 08/14] drm: rcar-du: Add support for CMM To: Jacopo Mondi Cc: Laurent Pinchart , Kieran Bingham , Simon Horman , Ulrich Hecht , David Airlie , Daniel Vetter , Koji Matsuoka , muroya@ksk.co.jp, VenkataRajesh.Kalakodima@in.bosch.com, Harsha.ManjulaMallikarjun@in.bosch.com, Linux-Renesas , DRI Development , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, On Sun, Aug 25, 2019 at 3:51 PM Jacopo Mondi wrote: > Add a driver for the R-Car Display Unit Color Correction Module. > In most of Gen3 SoCs, each DU output channel is provided with a CMM unit > to perform image enhancement and color correction. > > Add support for CMM through a driver that supports configuration of > the 1-dimensional LUT table. More advanced CMM feature will be > implemented on top of this basic one. > > Signed-off-by: Jacopo Mondi Thanks for your patch! > --- /dev/null > +++ b/drivers/gpu/drm/rcar-du/rcar_cmm.c > +static const struct of_device_id rcar_cmm_of_table[] = { > + { .compatible = "renesas,cmm-r8a7795", }, > + { .compatible = "renesas,cmm-r8a7796", }, > + { .compatible = "renesas,cmm-r8a77965", }, > + { .compatible = "renesas,cmm-r8a77990", }, > + { .compatible = "renesas,cmm-r8a77995", }, > + { .compatible = "renesas,rcar-gen3-cmm", }, As they're all handled the same, you can drop the SoC-specific values from the driver's match table. > + { .compatible = "renesas,rcar-gen2-cmm", }, Just wondering: has this been tested on R-Car Gen2? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds