From patchwork Fri Jul 20 21:15:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru-Cosmin Gheorghe X-Patchwork-Id: 10538373 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 94D036053F for ; Fri, 20 Jul 2018 21:16:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8424A297DB for ; Fri, 20 Jul 2018 21:16:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75F1F2980F; Fri, 20 Jul 2018 21:16:54 +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 28A7129808 for ; Fri, 20 Jul 2018 21:16:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 118446F0C9; Fri, 20 Jul 2018 21:16:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20076.outbound.protection.outlook.com [40.107.2.76]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2CD1E6F0C9 for ; Fri, 20 Jul 2018 21:16:52 +0000 (UTC) Received: from e114479-lin.cambridge.arm.com (217.140.96.140) by VI1PR0802MB2557.eurprd08.prod.outlook.com (2603:10a6:800:ae::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Fri, 20 Jul 2018 21:16:47 +0000 From: Alexandru Gheorghe 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 04/10] drm: atmel-hlcdc: Use __drm_atomic_helper_plane_reset instead of copying the logic Date: Fri, 20 Jul 2018 22:15:03 +0100 Message-Id: <20180720211509.23605-5-alexandru-cosmin.gheorghe@arm.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180720211509.23605-1-alexandru-cosmin.gheorghe@arm.com> References: <20180713161407.GQ20303@art_vandelay> <20180720211509.23605-1-alexandru-cosmin.gheorghe@arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: VI1PR0601CA0017.eurprd06.prod.outlook.com (2603:10a6:800:1e::27) To VI1PR0802MB2557.eurprd08.prod.outlook.com (2603:10a6:800:ae::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c5bce41-65f6-4d1a-3d8d-08d5ee861ae3 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600067)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0802MB2557; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2557; 3:Kc0I3uewXtCH7Vb3NuIKi2r7U59Bxfxy3AQTIFWr8mBNbDC04pbED7wGNkHIf/kzQCj3M0t0+TaVKls/YemLE8nQRH0A7cOO+O19DPjEn16giXUJqULwcXzwOSiSrZkRwnoX8/12SA6QA3caXoJ3EzmWw3S3UUMZztS8Fam7oidag+s9eeBp3b7+rt1vMk+UKQuZQ3uBENNKkQTKaxey9RUtNqw6ZAYly8pgO62gniMeUSXOLl9XAF7SuaH2Dj12; 25:FCHmPfIIsFHRGESjOKdjp8kb5dqrZ+VOEPG4guspVqm691daVBMLub5DOrvT5J6ZYnmjZSOLtjaLzHwURLBoYLhbMtpt3AV9O+5+fipUoe02X6/rCXk9+dnsvU8i/bSZHGNmvt4w+SEYb5oNKKLDgZVA91DnVjz5NiMg3Jh0a0gJl0uD2YtK1hmlJANxBoYT7YIZJPJcwmKuYxEyTqw7+6dq4NEIZ0+7omWhEb+i8JH9IEfmGKLD3xeTYUvu4HDqd/Dsjxc5RtetX7OUA9TrDFzWcS4TyYsJyECYJsSJum7FAhEZkqe49I8Bd+pLzoMSZfThYNhGv7bFxTAOuKl7+Q==; 31:lnose2TPbkTgczgbXCfVIQrMcyqbq7BRA/2pwVSoTQ6BsBI8B0WLODL3Jd6yptjm/Rf02v6Oi0ByaDxGKwXNn6t9EtS9MhK6b3o+wXA3qgUC7BZqs7sRnFA6dUzzUfk3YxTMiB6KtZr7zkomTye0BrVdHqYIO6XA2fu+vGhGp8anGr5TwTauDOZ/+R463XroPGGksVuBtOQ5rEOBLT8iYAN2NmgaZCtKYBQBKU1S6hc= X-MS-TrafficTypeDiagnostic: VI1PR0802MB2557: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2557; 20:3vS1+IRoBOni5esEAcz4hAMV7FRV+ByNRxFIC505YGVk8FOezKJa4fLhFQvDge+u37aFLw64DEeqjidbCaO3xuKRfUUQXTjtS2Z4Nihg+ldbndKns8AU6Ehp6ZCQqX7T1ELHxZzzTqctpUTnRmPHlH8B3iFCJxr/UaTFHBulBTb/o+qzipxsJl5aZzug4+Rr8Aco2Jy3zVtF5C56t7jpm+JDxO5s7KUuVvo7p2l3YOS//i6TqTISYteB5xdSPCuC0pFyVVtrLXd+Sk9om9hmhG9b4es3z0yYB5HxDwXxReJTJpMQVtoFZYh07y0Uht10qcnGXPDKyq2jLQ6EAyQ9Zg==; 4:ZbBtnin8koSA9cHeKyQZdbDlgmLDfBTNkceejm76Ds+m4VbV76a237fUs+I7zXjynE8O+2zS8YJhp/yPevg39t2B/0IuiYHqgFEhXtS9yU9KtkqPR3GqPV38EzWTixjQAJE0B4UkK85vcMY69meqf8xJZjcqmvFxuyue4wUUoHNAMtDG/e2MVM/8DCxv5q+UvzQ5kEy4pdhFJCPva00QSPfS2UtQ8R75y+A8wLwIv6K7XeSWJ63PMQTx8KzsmpsEeFCnwMe2+5QxnVw/wZXyIRpJRgJZ2nI0YDTJT9eY7MzF9QkM/1zpJS7H6fkbRfL9 X-Microsoft-Antispam-PRVS: 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)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0802MB2557; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0802MB2557; X-Forefront-PRVS: 073966E86B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(39860400002)(346002)(396003)(136003)(189003)(199004)(6116002)(316002)(305945005)(478600001)(25786009)(3846002)(53936002)(1076002)(7696005)(51416003)(52116002)(76176011)(7736002)(72206003)(4326008)(66066001)(6486002)(47776003)(68736007)(5660300001)(7416002)(7406005)(36756003)(8936002)(446003)(50226002)(50466002)(106356001)(16586007)(8676002)(81166006)(6666003)(81156014)(2906002)(48376002)(105586002)(26005)(86362001)(186003)(16526019)(97736004)(486006)(11346002)(386003)(956004)(476003)(2616005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0802MB2557; 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; VI1PR0802MB2557; 23:PqXlCeUvvvebnd3J7Jx9UmDa/+HILfMF/me867K?= =?us-ascii?Q?xVZwLrK17HbnYaepxfc6k3fBA7WwquFNXegS2T71Nc6a5w11ou/8zZUR3rFc?= =?us-ascii?Q?4z7dmPQUPltAT0ZGqJuso1zUivBGOfc/g0NL6fmLMY7mEcafHqiez7UtC9ce?= =?us-ascii?Q?TYifAWw3KYyxLzcv2CBpLwNruU3ZmZy54tx6RLr5jdCT7hMa9NOKogQGaetp?= =?us-ascii?Q?Wj+Nb0hkfsrm9wK0+1XXExUemkaf9mI6ISNMqGEowEnhTY6BWU8rqOnCEgkH?= =?us-ascii?Q?QtbsvS6Jd+/hxJ3P8ebItOEhUPEP5K78yWVwqQDSU9dFukKk82hP4lC5xK41?= =?us-ascii?Q?wZ8qeDlcjkDWZQ5jydA8A5ngNcEj+2xxJkMbBCG5WBJ/km/X/tAiiRsxJdnH?= =?us-ascii?Q?XU7e+/O8sxSdhOSgOEkBgOJ83Och/4y7F/SvydM++gCukIx84feifg4fK2Fm?= =?us-ascii?Q?B/bDiqSNy0/KJdZS0IdSPjmMDdqTF9BbxcDXpwuAHwFPNgoTFwEeYgShKRcE?= =?us-ascii?Q?ho8VpM6yYgpmRnZEhmx/mzyXs6R9+IzZpQd56BGsAv1IoIG5Is9FGMHQTQtF?= =?us-ascii?Q?6YDTzk6A8SHhnFUHACAT0V7wTISjPESY4ExU24Qv6fVo95KaLcJXKyKmi5j5?= =?us-ascii?Q?i00462gGkcR8w4jzX3lxqXv7yFgZtIAFwmT0rkyRnYBZqa9LW0lYxEUlycnp?= =?us-ascii?Q?032fAjleJR4zh+RYstiqxgjZ2/dznfAp/yMTkwCklOLMBpst8/jmIrLV2jxF?= =?us-ascii?Q?hWXwauG/LwgX7sEjIDik9Lzwk5YvQFDXKzF5hkfr0X9niiu10mKm8rGLkNpO?= =?us-ascii?Q?rjKxnDAroZoGuZu3OEud22RVbYxishpGK2cxuB+0CypmJbUdxtJueFBi3xCc?= =?us-ascii?Q?YHj+I9XKgM1Bg9vFOSO1EeCAl68PwTAdjwGjCEj4bkO1USZAyk41j0hyWTIK?= =?us-ascii?Q?lS/pXXETtfx/xWQmXV8YBYgVU3BPynjd4xOBGf1ea4xAzUaJEJPwwRpVCsBq?= =?us-ascii?Q?5e/ZqEGb7kpoJ1dUhSEqvWuXpcaWKm6Tcs8qo84X4gwRBM/oaYlCD2VevGbk?= =?us-ascii?Q?u47mb93U1v+YKdlbJpnC+n081Gp9wa2T57QjtmRkIXWUI5ZO36hqfSO8lSv4?= =?us-ascii?Q?OmM4N2Lw+Isj42pT+0FsEu52Ql7XHY5bjiFppVhipGmBWArzb3ffBbPocEUM?= =?us-ascii?Q?Ha/pMGAr5YHIA1eFWIaUhRCdj/WcWdaLzmYpVpmyVFWuHNoNtnDqONjjoN5r?= =?us-ascii?Q?vLLHgyEP3S7sTjFSwXHw=3D?= X-Microsoft-Antispam-Message-Info: TF2SZCQBXQlC/xojO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BGwchj27J7Uh2fMmJCa7UPQsr8VvCmhtyniMcYOT7kD7quvMSu2r7ZHFPRAPGl3pH4/gQ90xRod09VbM3H5rH05SVxdf/stMB4xJFnyo+iQOvCI36d/aqmYh9kFU8DXD2hRW9c9bN5jHYbz1O6Yn7vsZk8tMi6lYVriNSrRH/8SeIuAH3VXJaTalPs0n/0y3dhFvJYa1/52TTBxf8VTpwFSCT9+2eX2U SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2018 21:16:47.3171 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c5bce41-65f6-4d1a-3d8d-08d5ee861ae3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2557 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nd@arm.com, Alexandru Gheorghe Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alexandru Gheorghe Acked-by: Boris Brezillon --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); } }