Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2730648pxb; Mon, 17 Jan 2022 04:45:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxny1Yv8LR9FWMUMp90vA+fL/e6rb8lTfyoxxOF9CJRRzLUxKeTf+vz464WzC2H3IxpRof/ X-Received: by 2002:a17:902:ac97:b0:14a:97b8:570a with SMTP id h23-20020a170902ac9700b0014a97b8570amr13111088plr.132.1642423536640; Mon, 17 Jan 2022 04:45:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642423536; cv=none; d=google.com; s=arc-20160816; b=HefmxoTrPPdJlGB0/nCQdNPmKzCYIboCR97vb0UYMkVmHFn0ZjEIefraY6ThYzX6BW 3bSRgJo0oovOQ0R4fDFzq1s72i7F6ajS3vgIPzzle3aJpif1/ViXAdby8W2o8iXMkuXp 0EP7lSZYf9SwimqTAOzqMLPBaohS8pYTQsaN9Rp0/JbMBjmHG3MfJPHtWEACMBlYWScp IOzTQwrlxH/MJD0KgELhjpSWK73n1oO0Ee2dFpIgQXt9LmlU59AazS9B6o+0LOSpPl6M rgK1AX6mg/aqWkbWzeyjTF5+3gnNS3XU/VlZ96J82eZ9+vxn/9B21GpBVKXQQ23Cc15X TBmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=MQeBrGkGEPprlAGgzRHSnT1m1Ox7Vg6LsQGd/Iu7NGs=; b=cX3RnagIT/UD9TNJ8XMchw7Z/RKyoqbDNavufTNb2Sh26HVo5JcoPG1x31iwjhhR9J eMYqhp4ncofqnqZqqNPxLxwaz8h7X059BbBqXIDcPxDGNQ7F7unAhDrJ1yRqIwO1Gv5E XKbLZfPhbGRXsG119S/f5C0Ec2HguOjJ+AKZzBNL9eF50UY8YiVM17p3SkDOQuTwqnj+ fqrqw+eCswJhC7LUSgdYqNI4MMBGO4bTOvKAocyUJxVS+dwyfDjJZMNA1MBIz0jQuutL Mv3LJw5mGiGurFXd/JWrCeKxmDWWG6rKdocbCo7N5R4W9/SDHpIkGDQKkadK2NkxNgAv 5d6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igel-co-jp.20210112.gappssmtp.com header.s=20210112 header.b=zv1yBiIy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x64si6931426pgd.654.2022.01.17.04.45.24; Mon, 17 Jan 2022 04:45:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@igel-co-jp.20210112.gappssmtp.com header.s=20210112 header.b=zv1yBiIy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbiAQFQB (ORCPT + 99 others); Mon, 17 Jan 2022 00:16:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiAQFP7 (ORCPT ); Mon, 17 Jan 2022 00:15:59 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE980C061574 for ; Sun, 16 Jan 2022 21:15:58 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id s15so3428098pgs.1 for ; Sun, 16 Jan 2022 21:15:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=MQeBrGkGEPprlAGgzRHSnT1m1Ox7Vg6LsQGd/Iu7NGs=; b=zv1yBiIyK4mMISwhtI4Pbr+dw8RVonPbi+fUCF0Xpuvz6C5K5mWFWEFBGDxt0XxQ/W cJXmztz1z9qEGFd5duOYIkhhcKAwVgigWrJah0RZJTHFkgg2KXkAPb2nblOOySKzR6zo xF9yuG9KfYQfL0YSLww/NV3NB2EME+iINMugre+MRNmHKB/gT1cEGFDwRS+FC2z481qJ b0dEd5MkZkDLA887VF8x3QW7/w/+iJeVmnjSSOxk6zNyoUaH1arGie2EaDF32cE3koBT FATnZjisTmkrXzQF0HwxO3ga5/2uWvDKoBGXsBPb8FJfxxVcFgHd1EYoeDJqWFciEHCZ dsrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=MQeBrGkGEPprlAGgzRHSnT1m1Ox7Vg6LsQGd/Iu7NGs=; b=y/H/ZO+7rd5Oqu3F+8IZX9p/uQG2h2dkQt0uUvGnkcXQkX2/mQIqe9syX3QM8UMQ5s RTUtH/6uqm3LfkPBc46Tz2KAv3hwITBs2a8cWed9bfNN7hvu3OZm0UG6agX50ywruzfe 32E6V6v0TWX+plZSMq/R+LBTfan7HgkQ1nrKikg2r2SfQv0BjdcXVDOCyM6w8Y78wTRx IsIa1spYlNOga/Lrw1bgespK2lafhu4xkbu50ussRhQS2VP+UNTO7mz7EKtUX2WsFwfr fRLtJJcMIxL9HhB+dhiBM1YjSee4AEDe3/5G5zSf8340ViGP23NkCwA/5g/13Ctr1g2q iXBQ== X-Gm-Message-State: AOAM533AAHSD8TRUgitFE9cObDZ21/j51ZeUIWu/7Cz5XfkhBN3rQJaL /AjWZ6Jv9liz1bP5Cru+sgI8KQ== X-Received: by 2002:a05:6a00:2182:b0:4a7:ec46:29da with SMTP id h2-20020a056a00218200b004a7ec4629damr19626922pfi.68.1642396558414; Sun, 16 Jan 2022 21:15:58 -0800 (PST) Received: from [10.16.129.73] (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id p18sm12346694pfq.174.2022.01.16.21.15.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Jan 2022 21:15:57 -0800 (PST) Message-ID: <0cf405a1-0d2d-ed5e-abdf-be645e7a9209@igel.co.jp> Date: Mon, 17 Jan 2022 14:15:48 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [RFC PATCH v3 2/3] drm: add support modifiers for drivers whose planes only support linear layout Content-Language: en-US To: Andy Shevchenko Cc: dri-devel@lists.freedesktop.org, Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Ben Skeggs , =?UTF-8?Q?Michel_D=c3=a4nzer?= , Simon Ser , Qingqing Zhuo , Bas Nieuwenhuizen , Mark Yacoub , Sean Paul , Evan Quan , Petr Mladek , Sakari Ailus , Lee Jones , Abhinav Kumar , Dmitry Baryshkov , Rob Clark , amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, Daniel Stone , Laurent Pinchart , Damian Hobson-Garcia , Takanari Hayama References: <20220114101753.24996-1-etom@igel.co.jp> <20220114101753.24996-3-etom@igel.co.jp> From: Esaki Tomohito In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you for your reviews. On 2022/01/14 23:16, Andy Shevchenko wrote: > On Fri, Jan 14, 2022 at 07:17:52PM +0900, Tomohito Esaki wrote: >> The LINEAR modifier is advertised as default if a driver doesn't specify >> modifiers. > > ... > >> + const uint64_t default_modifiers[] = { >> + DRM_FORMAT_MOD_LINEAR, >> + DRM_FORMAT_MOD_INVALID > > + Comma? There is no mention in the coding style about adding/removing a comma to the last element of an array. Is there a policy in drm driver? I think the advantage of adding a comma to the last element of an array is that diff is only one line when an element is added to the end. However since INVALID is always the last element in the modifiers array, I think it can be either in this case. If there is a policy, I will match it. Thanks, Tomohito Esaki