Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp602662imm; Fri, 21 Sep 2018 05:26:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYcfL1t3Ws0Fr6eBKyOHyiSd7bynorrSkmTDI3xb8RL6cPzVv3YoSKaIxasde7nfOio9Kom X-Received: by 2002:a62:7590:: with SMTP id q138-v6mr46868365pfc.148.1537532815775; Fri, 21 Sep 2018 05:26:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537532815; cv=none; d=google.com; s=arc-20160816; b=EeUkLDm8fFW0Mgw4x/VzqNnR02TAf3whmzKtlkMX/rq7Q9CFvCDDAm/SaZpg4l+JEw EYTowDxBnj6ee4vFCWMNxSdJTfXhU+tKIZRXgiXxYGRNrFn2Tl4bChY2sTAYRugm7bzP U21x7roVJcVMW0cKYdMbzgKUcoDr1JAtWA6twQ80n4hTAicauwOKCPRZfQJZ/cL6l3u9 KdsElLTXqpZLGeO2vVuGKZ42FWz8uO7ACp7TgAAR6unizCV6Li0fHczwf4cXSosmhjpD iaQw0hiGi05h5MlR09G/DXVdMbEW9p/VN9qLjhppFYjlxJ6BeeGUWxyO9372e+05i88C KvUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id :in-reply-to:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=LBpKXbnunUglxzbvvMAhAm9CB5cgys0I/Av0KmEUEkg=; b=NpNs9rfM0akhqKxa+auR0jmeDlIWruVJ5m9MNjK7pogV8PFLGyarIkDrBqN2VhJi58 fq5zAHkVMxF0cu1TvbE6E8MGQn9BhKKSBq5nD3Bo6fiqHvVaFFZXHZA7eNtkf2o5s9JU 6pDbZ5B74tc06RXULz13kIgveH3rhgpb+aJb24ElHkushBP1WEg02xDUs0gywva6NiZ+ gXex219q6O4kypDlgfJMnic0gc+8rXpjRcUoJ5804Ku+/8CoFBw6S0rdJfu+J2sJJ5si IMN1SzEu/uO8C8gpsp3xMut6mbq9UzBS2VgOzcy8d7XWsW7k6PV9yVwUHtNtt1xHcLgD Rc6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=rwN+sLo+; 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 bd1-v6si28259851plb.156.2018.09.21.05.26.34; Fri, 21 Sep 2018 05:26: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 header.i=@samsung.com header.s=mail20170921 header.b=rwN+sLo+; 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 S2389937AbeIUSOz (ORCPT + 99 others); Fri, 21 Sep 2018 14:14:55 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:47675 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389835AbeIUSOy (ORCPT ); Fri, 21 Sep 2018 14:14:54 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180921122614euoutp02640cf0ba8c47389d8884289a41ccdd42~WaembavZ22217422174euoutp02L for ; Fri, 21 Sep 2018 12:26:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180921122614euoutp02640cf0ba8c47389d8884289a41ccdd42~WaembavZ22217422174euoutp02L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1537532774; bh=LBpKXbnunUglxzbvvMAhAm9CB5cgys0I/Av0KmEUEkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rwN+sLo+u1gKX07UZAPC/sG6mYSh6Ggd9MIpdpzXGC5+lPr7cVUew048qUMmABco1 IZ5flcPIftU+wraWwFRcK5lLlXuJo+10S2c3owikrTHWvgKBVnZw8nZoPcKuAKEcQ2 zWFTzr9bgBfaPgOetC0zwOyDr0Wg6yGKVRivjK0k= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180921122614eucas1p294ac4ea64377f75dd8d2ee1eaf16b30f~WaelsrcR81399713997eucas1p2c; Fri, 21 Sep 2018 12:26:14 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 66.9F.04441.563E4AB5; Fri, 21 Sep 2018 13:26:13 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20180921122612eucas1p2f3e0b6cf2e15553bd4d7114722c2a217~WaeklfEj21399713997eucas1p2a; Fri, 21 Sep 2018 12:26:12 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180921122612eusmtrp19a799c50bbac74ea16730323753ae702~WaekTlLuu2872728727eusmtrp1F; Fri, 21 Sep 2018 12:26:12 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-ba-5ba4e365c61f Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 34.69.04284.463E4AB5; Fri, 21 Sep 2018 13:26:12 +0100 (BST) Received: from AMDC2034.DIGITAL.local (unknown [106.120.51.41]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20180921122611eusmtip16207611fc884677872ac111ebe737ae2~WaejstnyO2133221332eusmtip1b; Fri, 21 Sep 2018 12:26:11 +0000 (GMT) From: Christoph Manszewski To: dri-devel@lists.freedesktop.org Cc: Christoph Manszewski , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , David Airlie , Kukjin Kim , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz , Marek Szyprowski , Andrzej Hajda Subject: [PATCH 1/3] drm/exynos: drm_plane: Correct exynos_drm_plane_reset Date: Fri, 21 Sep 2018 14:24:36 +0200 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537532678-4276-1-git-send-email-c.manszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSeyxVcRzf754nuZwum180bVdq3qS2s2WNpu0i05LVaOPECYvL7kFpbSyt 5eK6+IMlWx6FGy7XzXNJN5HMK2UeE8vmdUl5lT9SjpP13+f3eX2/++5HIpIKzIaMkyezCjkT L8VN0eaenSFXdq4y3KNmx5WerB/E6NzBPhHdWKzF6N6OZ4D+tLWG0wUzapRe/DKC0nlzRoQe Gmog6IH7KwStmxvD6NH2JzhdPNQpouu6pwm6uHAJ97GQ6TRZuKxlexaTzWT3imRNlekylV4D ZBs6u0t4mKl3NBsfl8oq3M9FmsauatdAUofJnbV5FZIBVKQSmJCQOg1L5xYIJTAlJVQ1gMbM MpQXJNQmgMOv/QS8AeDzUXslIPcDfTOBAl0FYJfhpJDds2v0dTgv4NQZODW9vo+tKHv4O18D eBNCvUThq75xEV9kSQXAtyuxvAelHGBtT7lIWMgOTgxmITw2oWSw/tc8ymch1UzAoqqc/ayY SoUbCxeFffzg8MR5IWoJl3v1hICPwv7CnH/RTAAnN8cw4aEG8M0LJSq4zkLd+PJ+J0I5Qm27 u0D7ws9LRajQbw7HVw/zNLIHC5qLEIEWw0cP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g5OqQbG5o8Jca/8ZXM8U3980srj9hIu/ba4/xSDYOVB vayc+PmbNuw5Ou3N09W7jut9vH75jabVo4hX67Zd69PeMfVgt/9DC3MV9ur4NbGPvY7kSE+8 23NU8G2qyskbotMSuQ7M6Xr7Ym3M8UB2j/bk4PQsic2Ll82tcJ6RnHtENUDkVYnlWoeppVt+ KrEUZyQaajEXFScCAHAMzcSZAgAA Message-Id: <20180921122612eucas1p2f3e0b6cf2e15553bd4d7114722c2a217~WaeklfEj21399713997eucas1p2a@eucas1p2.samsung.com> X-CMS-MailID: 20180921122612eucas1p2f3e0b6cf2e15553bd4d7114722c2a217 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20180921122612eucas1p2f3e0b6cf2e15553bd4d7114722c2a217 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180921122612eucas1p2f3e0b6cf2e15553bd4d7114722c2a217 References: <1537532678-4276-1-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 Make use of helper functions in exynos_drm_plane_reset in order to set all default values. Currently alpha isn't set during reset. Signed-off-by: Christoph Manszewski --- drivers/gpu/drm/exynos/exynos_drm_plane.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c index dba29aec59b4..755ca0e9ead2 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_plane.c +++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c @@ -131,16 +131,14 @@ static void exynos_drm_plane_reset(struct drm_plane *plane) if (plane->state) { exynos_state = to_exynos_plane_state(plane->state); - if (exynos_state->base.fb) - drm_framebuffer_put(exynos_state->base.fb); + __drm_atomic_helper_plane_destroy_state(plane->state); kfree(exynos_state); plane->state = NULL; } exynos_state = kzalloc(sizeof(*exynos_state), GFP_KERNEL); if (exynos_state) { - plane->state = &exynos_state->base; - plane->state->plane = plane; + __drm_atomic_helper_plane_reset(plane, &exynos_state->base); plane->state->zpos = exynos_plane->config->zpos; } } -- 2.7.4