Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1707931imu; Thu, 17 Jan 2019 01:50:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN53xrOXYTWDNt05B8eA6TMtoplAOk7QgGfUwNSCqMhYjDPIjLWeEzAz/dMo1+p8Up5yGI/b X-Received: by 2002:a62:6385:: with SMTP id x127mr14439689pfb.15.1547718636759; Thu, 17 Jan 2019 01:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547718636; cv=none; d=google.com; s=arc-20160816; b=Lt2FzdLxyYciUZnsiRTSf/BGwrs9nT+JIfeoYPkwoZA1/pmpUwLCIaNkpUx4PGgVpf TjS+RaQCnt2n+MnzIe78V7waG8scUMgZnESd7rNhymu/5zEvnKtv1vpwIJQw4t/5vBPa szTmU2sAVgVP69CDv7XNSQgxBbFfU4/aWyuEqKjWQxN8QT1HNF1vjyNhH/Y+w1lc5POK dlb1ELK1KM8vsmQuiCPKHtHzjdKKU2yZ5l4bK3902Pgncajz2ft0QPQ1+UNAPeqqmNbC QkxoH2zfw5vmqiZhMcrb7dO2yP4f0KuC1K3umlk5uOsofXbz4uqgz+Kc7upcWf5M1MC/ OPFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=fA3LmYG+MDE8TCnlq/z+qYQ9ll7Qp0SFsr6Ft8sFcFg=; b=Qp/E79yNxfGsSRmZb9F4tE1lekZEiH4KzmNz73y7o/vCuULVDRZ1JMssrwZsh0CAIp ZM3tSQkmNZuvXFeG8w5be4UUlu9NARcYlbSYen5fEWkwJk4dgBOSeg4E4YpmGkwmD04u C1zcs/6aCVo0xjCJEe20NlyXHhIasOfe0iDMG7EnNHbRHR4LbVsRAOoWyDslc93cVe+i XaKcsMVyF1TBAVtvTTb7l/XZ9p3oktMW2wDnWX3DJ1RFhyLS8HU8HtoSjG5fWkKuU5FL gDEXTkX+NHglmLu1RHcuZIIGwjhlPeXgEb2BEA0PcpakXs5B0cvcEwFvEpy/0zHwHjFx dxmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=XcGOfzkd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si1277091pfo.90.2019.01.17.01.50.21; Thu, 17 Jan 2019 01:50:36 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=XcGOfzkd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727905AbfAQJcO (ORCPT + 99 others); Thu, 17 Jan 2019 04:32:14 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:29391 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbfAQJcO (ORCPT ); Thu, 17 Jan 2019 04:32:14 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20190117093211epoutp03888630407b568ee64aba3379d13de053~6mOT4IMs01859418594epoutp03T for ; Thu, 17 Jan 2019 09:32:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20190117093211epoutp03888630407b568ee64aba3379d13de053~6mOT4IMs01859418594epoutp03T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1547717531; bh=fA3LmYG+MDE8TCnlq/z+qYQ9ll7Qp0SFsr6Ft8sFcFg=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=XcGOfzkdh5dE/Jx5Kh/CtkLM2lfLzwy/LoUwMGusoEBZUOzc8jKt+QdWlvsw6zsR0 ITez2HtOawnpVIKarORvp8s6r/TTS4O06oF1k4gFg+cVj55GIkSw5MKDFeIBIUnl3Y K32YQlWHh4u7hU2oKPmRvyMbaEneBDLKQ8UosLiY= Received: from epsmges1p2.samsung.com (unknown [182.195.40.153]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20190117093208epcas1p11df0bfa3593521b54920ef4432df8eb8~6mORibQm30091700917epcas1p1R; Thu, 17 Jan 2019 09:32:08 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 64.8D.04057.89B404C5; Thu, 17 Jan 2019 18:32:08 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190117093207epcas1p299ca1fc3771a377401abdc15c743360a~6mOQYAJJk3230632306epcas1p2_; Thu, 17 Jan 2019 09:32:07 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190117093207epsmtrp2ff742e914b4f79747c2dc1c9eefeed8a~6mOQTf-fA0180801808epsmtrp2X; Thu, 17 Jan 2019 09:32:07 +0000 (GMT) X-AuditID: b6c32a36-d31ff70000000fd9-28-5c404b98e003 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 71.BD.03694.79B404C5; Thu, 17 Jan 2019 18:32:07 +0900 (KST) Received: from [10.113.221.211] (unknown [10.113.221.211]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190117093207epsmtip1f45b8d9f4dec70ea3daf7a4b2ea35baa~6mOQGppQu1010710107epsmtip1i; Thu, 17 Jan 2019 09:32:07 +0000 (GMT) Subject: Re: [PATCH 1/6] include/drm: color_mgmt: Add enum labels To: Christoph Manszewski , dri-devel@lists.freedesktop.org Cc: Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , David Airlie , Kukjin Kim , Krzysztof Kozlowski , Maarten Lankhorst , Maxime Ripard , Sean Paul , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz , Marek Szyprowski , Andrzej Hajda From: Inki Dae Message-ID: Date: Thu, 17 Jan 2019 18:32:06 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1544789421-5265-2-git-send-email-c.manszewski@samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGJsWRmVeSWpSXmKPExsWy7bCmnu4Mb4cYg8/N8ha31p1jteg9d5LJ YuOM9awWx3cvZbS48vU9m8WLexdZLPofv2a2OH9+A7vF2aY37BabHl9jtbi8aw6bxYzz+5gs 1h65y26x8ONWFosHL/czWtydfITRYsbkl2wOgh7z1lR7bFrVyeax/dsDVo95JwM97ncfZ/LY vKTe4/iuW+wefVtWMXp83iQXwBmVbZORmpiSWqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGu pJCXmJtqq+TiE6DrlpkD9ImSQlliTilQKCCxuFhJ386mKL+0JFUhI7+4xFYptSAlp8CyQK84 Mbe4NC9dLzk/18rQwMDIFKgwITuj+fRi5oITnBWb7/xka2D8y97FyMkhIWAisf3/RZYuRi4O IYEdjBKzd5xmh3A+MUqsPrWTCcL5xijxdfZCRpiWpz+OQbXs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Y14BiC0s 4CjRc+MvI0iJiECYxLStliBTmAVesEjcP3WUCWLkTUaJfXeWMIM0sAmoSkxccZ8NxOYVsJM4 c/wSmM0CFH/7sw3sHlGBCImzL9cxQtQISpyc+YQFxOYU8JA4vvkcE4jNLKAu8WfeJWYIW1zi 1pP5UHF5ieats5knMArNQtI+C0nLLCQts5C0LGBkWcUomVpQnJueW2xYYJSXWq5XnJhbXJqX rpecn7uJERy5Wlo7GE+ciD/EKMDBqMTD22FmHyPEmlhWXJl7iFGCg1lJhLfQ2SFGiDclsbIq tSg/vqg0J7X4EKM0B4uSOK98/rFIIYH0xJLU7NTUgtQimCwTB6dUA+NMj1sZ1/rs9vO/P136 3Gz5UXPecHPD39JNS/w/pss3a008vmP6EcFzvoVXbLryXJvX9b6u+yE1rd87xsHK45/AjsI5 9UWLVxySPK2dLtAe/ya/3CtxidGjTZyF/3NzzWpu3lLcqOi85iOvrt7WKZ7bNFfeXXVn11c7 FZa1fD4ivrvn8Fw8WqbEUpyRaKjFXFScCABSUZax2AIAAA== X-CMS-MailID: 20190117093207epcas1p299ca1fc3771a377401abdc15c743360a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20181214121032eucas1p24af580721ebd6f86a4f9ddf701957ab6 References: <1544789421-5265-1-git-send-email-c.manszewski@samsung.com> <1544789421-5265-2-git-send-email-c.manszewski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 18. 12. 14. 오후 9:10에 Christoph Manszewski 이(가) 쓴 글: > Range setting makes sense for YCbCr and RGB buffers. Current > drm_color_range enum labels suggest use with YCbCr buffers. > Create enum labels without colorspace specification. > > Signed-off-by: Christoph Manszewski > --- > include/drm/drm_color_mgmt.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/drm/drm_color_mgmt.h b/include/drm/drm_color_mgmt.h > index 90ef9996d9a4..52f6d5221a0d 100644 > --- a/include/drm/drm_color_mgmt.h > +++ b/include/drm/drm_color_mgmt.h > @@ -62,6 +62,8 @@ enum drm_color_range { > DRM_COLOR_YCBCR_LIMITED_RANGE, > DRM_COLOR_YCBCR_FULL_RANGE, > DRM_COLOR_RANGE_MAX, > + DRM_COLOR_LIMITED_RANGE = DRM_COLOR_YCBCR_LIMITED_RANGE, > + DRM_COLOR_FULL_RANGE = DRM_COLOR_YCBCR_FULL_RANGE, I don't see why above two types are needed. Is there any case that the range checking behavior should be different according to the color space? And even if there is that case, I think you have to put DRM_COLOR_RANG_MAX under DRM_COLOR_FULL_RANGE. Thanks, Inki Dae > }; > > int drm_plane_create_color_properties(struct drm_plane *plane, >