Message ID | 20180726161756.1794-5-alexandru-cosmin.gheorghe@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3206A139A for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 26 Jul 2018 16:18:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 206072A514 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 26 Jul 2018 16:18:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1259D2A70F; Thu, 26 Jul 2018 16:18:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E15C22A70F for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 26 Jul 2018 16:18:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 673196E7C8; Thu, 26 Jul 2018 16:18:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10079.outbound.protection.outlook.com [40.107.1.79]) by gabe.freedesktop.org (Postfix) with ESMTPS id 776166E7C8 for <dri-devel@lists.freedesktop.org>; Thu, 26 Jul 2018 16:18:40 +0000 (UTC) Received: from e114479-lin.cambridge.arm.com (217.140.96.140) by DB6PR0802MB2552.eurprd08.prod.outlook.com (2603:10a6:4:a1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.20; Thu, 26 Jul 2018 16:18:36 +0000 From: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> To: seanpaul@chromium.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, liviu.dudau@arm.com, brian.starkey@arm.com, malidp@foss.arm.com, ville.syrjala@linux.intel.com, daniel@ffwll.ch, gustavo@padovan.org, maarten.lankhorst@linux.intel.com, alexander.deucher@amd.com, christian.koenig@amd.com, David1.Zhou@amd.com, harry.wentland@amd.com, andrey.grodzovsky@amd.com, Tony.Cheng@amd.com, sunpeng.li@amd.com, shirish.s@amd.com, boris.brezillon@bootlin.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, kgene@kernel.org, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, p.zabel@pengutronix.de, laurent.pinchart@ideasonboard.com, maxime.ripard@bootlin.com, wens@csie.org, eric@anholt.net, linux-graphics-maintainer@vmware.com, syeh@vmware.com, thellstrom@vmware.com Subject: [PATCH v2 04/10] drm: atmel-hlcdc: Use __drm_atomic_helper_plane_reset instead of copying the logic Date: Thu, 26 Jul 2018 17:17:50 +0100 Message-Id: <20180726161756.1794-5-alexandru-cosmin.gheorghe@arm.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180726161756.1794-1-alexandru-cosmin.gheorghe@arm.com> References: <20180726161756.1794-1-alexandru-cosmin.gheorghe@arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: AM0PR07CA0031.eurprd07.prod.outlook.com (2603:10a6:208:ac::44) To DB6PR0802MB2552.eurprd08.prod.outlook.com (2603:10a6:4:a1::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6c687c91-9ce7-4607-bd92-08d5f31371bd X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DB6PR0802MB2552; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2552; 3:dDX4zgCDe3JUr34M0YSXOoNQYaimOiPwj4Oe649BFDVDJJvdhowGinFZbg2AsEJf14hYoMmbUqXiQT0jpBUfVbma9i+H4L1ghrtvycmx9e/q6mNxIdfRa1w3mbkMq+JN6tvTgOUbWjtG7DJtyo0f5sBv98FF2nycqE6SHY6sX7LbdcpPeG+OvHIBPEmSAVsopDf56Wu17CFMEz2dadpPVngGebaj2MokJWLTpbUyqxMnqgfCIIwagmjzV1KNl2qi; 25:djNzK9GWrlyqr8ZZSMhK7mUWDmzk98fd1jgog+c6HI/oqeNbGRaFDrZFD6dNqxOTeuWlAB36Xwo+Eod7BSwqi8YT5FjyrJSRDmucPPyC+8LqScGg5vRfC5eixQtIgvrnuZSiQgM+e0OSTurecH/GZZQGBh7jaLEX4fpcML2P5D28d0S8FOJNrI12usLdVPA7xLbSUt7BPXLalkLgk3T+zY1ImV/5KtWpJ1yoGEZOK5JOJzbquiXL/9YxYvCUDOdE/K4pcyfJMMi8J8p+23HvFUtjc5Tyv+Lfjr2dowEYopbZAD2G1E4q4A0mPpN0U10CohoXl2SlNcpuqxZ6DVcHKg==; 31:kQJH6Xrs3zGZAGFjGniSIQV+sglxr8WzSpFkWUuV70ZQgGGXKuCDsCjKRfVpxz8S+DC5ckvR8J8+jtGICYU2Kjf7iuV7kIBRZ5PNZnkCKr6/DBkBtdNpAJ0CH/EKuxXQqhy1vqEe31IzBKB8q/iGz9td9P8HBh0R6mIbicuMP6AVigPqMjpBICFuxnYRTuKZRsbh30KD6FKNPjcgWNKWxNdzmK08kie7P2C/x1z+DtE= X-MS-TrafficTypeDiagnostic: DB6PR0802MB2552: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2552; 20:f7iamJImEXk50aqhJzVls8YbKYerCgo4PIuw/6cNqDHYq8HHzZkvLjACfM8VzxfuZ5wkboHSwDEbfWmcuzW28WJ/t2rWV2BPY0ZvDZuqQNPYbOLtaX+yjr8/2bsWIf+LyHx7bf5VVEWv+rK0qup/4n5+D4k+XaHst3uS7S44K1o9F/HVf4Rfcx2TdyJD9Vj8sm1H6oAoj+Givk9dJH+jAkzG3zY6ceQR8YkZWiWD911nTfzzr+Wl1Uum5hNHiWd3a+KlAHgLNPPC0StBJGsUeqf8qAYsX94hN4Fln9t4xLNEgG3r+9Y2gczuvtkudWu6brA3bqdhBhyLvEjeTn/Vlg==; 4:XdD2Az6gxfBdc9OeKRyrUaDSO8WLR+drvEsme4PULTfwbLtGq216ZtfoKFjEz/P7kBQMs+hhxgdEXV7Tli16mNHoWRU/1qM5bHKgg43yde4b08ArOU8wIMYE83iZo8J5wBZIIHKG2YtV/sySKx88DFXz9yb45lnjy2e8/E1HFBifriV3wBxgAfx8QVGvhUAibfS7xntMPXGpArqMTvqSyvPg63HoiiJI9rByEP1TPtAmik3zawdn3F1u5mVmyp064TW8RBIb61OqfaYWOntp4/u9vXADYnkKW4P2GTVzuCHCiZ6k/hXX8bkTWh6jVJ45 X-Microsoft-Antispam-PRVS: <DB6PR0802MB2552DB11B5A4EB0D23522B99BC2B0@DB6PR0802MB2552.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DB6PR0802MB2552; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0802MB2552; X-Forefront-PRVS: 07459438AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(346002)(396003)(376002)(366004)(189003)(199004)(105586002)(305945005)(36756003)(8676002)(478600001)(476003)(2616005)(81156014)(81166006)(486006)(97736004)(50226002)(16586007)(68736007)(316002)(72206003)(956004)(25786009)(7736002)(66066001)(106356001)(47776003)(6486002)(52116002)(2906002)(86362001)(446003)(1076002)(50466002)(7406005)(11346002)(7696005)(3846002)(51416003)(6666003)(48376002)(53936002)(6116002)(386003)(26005)(8936002)(5660300001)(4326008)(76176011)(16526019)(7416002)(186003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0802MB2552; H:e114479-lin.cambridge.arm.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0802MB2552; 23:frtj9uP8r2lE+BvkNQex/Nb4sxuHlE8mqaGKbA6?= CLau5Qp6xEcI6nvKUD0JXenwCTzbGtH8H23Ww96HvWMf4Jvlmj21Q2j8ya7VmSkBic9wbL0n7xvtWd10UOa01X9AeqRSutdTECiq8k2Vx/msclmImxWAeuhKi20RAL3X2jym6L7WYQD3M/LCYFkZwfnMT02GQbHK3d4x9yIoQCVylDDbM+AYpJYa1L+uZ3ZBbeFROq1ivzdbwjvc1JMFQ43B84P6RxEiv9n4Pww7SGVt+joZVy7lPryGETktLJ+BNVDFSbqsWs0vE+uDHm5IvAkKOZJpfxE5muXVzIlBQ9re8maIqwQK1xIZsi8FMI41CU5dmpDgb1wuNYCq85Xjt8+mZpRkOVRfBfAt4C2WqKhn30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pbbGx6UusZhFsPVsZSEAbc/JwJ4x6vF4t SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2018 16:18:36.6729 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c687c91-9ce7-4607-bd92-08d5f31371bd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2552 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: nd@arm.com, Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Add helper for plane reset
|
expand
|
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c index 04440064b9b7..9330a076e15a 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c @@ -942,10 +942,7 @@ static void atmel_hlcdc_plane_reset(struct drm_plane *p) "Failed to allocate initial plane state\n"); return; } - - p->state = &state->base; - p->state->alpha = DRM_BLEND_ALPHA_OPAQUE; - p->state->plane = p; + __drm_atomic_helper_plane_reset(p, &state->base); } }