From patchwork Fri Jul 20 21:15:02 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: 10538369 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 933186053F for ; Fri, 20 Jul 2018 21:16:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8354A29808 for ; Fri, 20 Jul 2018 21:16:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76B4C29822; Fri, 20 Jul 2018 21:16:47 +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 5C53D29808 for ; Fri, 20 Jul 2018 21:16:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DFDB6F0C3; Fri, 20 Jul 2018 21:16:45 +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-eopbgr20077.outbound.protection.outlook.com [40.107.2.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id B50036F0C3 for ; Fri, 20 Jul 2018 21:16:43 +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:38 +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 03/10] drm: mali-dp: Use __drm_atomic_helper_plane_reset instead of copying the logic Date: Fri, 20 Jul 2018 22:15:02 +0100 Message-Id: <20180720211509.23605-4-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: 948e8a55-588f-4afe-0052-08d5ee8615d7 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:19W8hDewIUrATVwtbHPikD8HupRa/eMK/AtXbF5uEtDV6n2rX9lX7HQ+p7DUD75W1DEQ4Q6Or7eMouNMXTlZbQtbv7vUoV/XD16JlELLLT4KRDQHTPrzcAktoIF/p7wQcKAkzz6zneInuao4yuuSsa/7V9HDY+HWqb6nKtRBHVCb4kt2clwDJo6MsT9NG1YkNS8XRlLmLmsXa4wqVszNq3Gc6BypeFxFk6zeLmEk4LVH07Qqje2xZcbK2cjxPps/; 25:c5q69Z7B2GUIVkuL08sHb7EpoQsOE6n9lBSpB9R/ys55Tz1bvmJdHONqzRlEND2TWzEaF0WS8lgxIgZHyOr311OMOAly60QKZ275PvB2wpY+0M2+PFd+xJmuleNXpsQT/CMNs8NpoRByfyMztEy4zNfrx5A0Z+xDGPIMX5+EJLF/eZRrP4B5ldzbTCHdV040s2fVfXfx+NEtvFECCuV/mpEiQr4MZB0LiisQ2jF9tQUo184e0beT1MzX38egKaS8fjJQZRyCllRL1STa2cYZK43tl5ltnJHah0NzWGOn4r4Ctvy+PSeEJtAIJ98R8V7VkCnHuAHUnEM5xnR4X0eMvQ==; 31:0vIT3FvksTiWziMmHYbJxYaqzxk6vjiL7UiEj67ZaBq01rY8pp2F4EB6QyyAdQtGwjRaKKvtixxSw4kSA4WS9OpBsifTybHIMzRtfvcBAM1in6b6IFy02KNdcGXjW3+deq0np+g3McB5gQH6F7XKNf8xMCNtXooBWJXnZeGjtpKPZN+hVqwO8rPQHwmVg4gqickFEP85c5CbiTQRj4YNHmp5xMQ/FafFqHkpGIIBKKU= X-MS-TrafficTypeDiagnostic: VI1PR0802MB2557: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2557; 20:tEFHUEDf38mG7nwDnVq6nQC/gIkE5fNcGnoG1tHl2WWT0YfAdg3OdNfr5DAfAimB7CKprhiSoKQ78EMrVy4RWpi4AKrqGjPSPWzP7RFNP/usLnGHQ5eIKgk65nD2Ya4mIBMltQ0YUoFr3KVZJCeCB/tuwbIj5g9qEHikK1Cfg1XXm4NU8LdD2AQn4nHrZ1h+z60K4dMS59SLEqdi2ybe577aqQXuMp2mDQbkC4KhbeGvi+W1kSkA9vaaRFpLKtJXtUqlKhv6srTzYrW6Hyy2ZBWxn8HTpSFG6MA+4MjNiJ5ebTEHZgdDKnZuKcZAllJbGD06H18U1YOzIto/TbWtLw==; 4:XGP6wGq8HxqiP3LTf2dVPjUgpLXy5A0HmI60o2jpnYu6K0C+K3iVb2P8YuWXDtcGBdrq/T4X7mrtH2IpIB/Ii8qPMQF9C4cbxs6G3waf+WK923VSaIV2OKG6Xnmp9t4Xw17JOMbwRJw9oyHc86+1f6tzK67mcZPVYa5RQ5DLfhUXZrMR+94rPh6TxU6EHl0rOZTzBt9Om2XCRmuLYuIH5kNO870wi2xF0i0yMTZfB5W90cOSGVw6gzCTVEJ76W78yruStjIulTE8kBx+ipoLIRJHKu5awuI8tszcGgONp+iZf1NUWlbx84GTsJ0Ocr/p 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:58xselFFZ5E6vHz3woy8BtZXb+VaQ12Oj8lWJRP?= =?us-ascii?Q?PaJO3ccO80jC/ur/TR2ERRNpM4zGL403H/wBR4bUKumgA2MAV6nop62IM0nD?= =?us-ascii?Q?G4vswQ2fX1Pfp2mzw7UknfQta6IIsjJZ1J+klWeWpJzhuVGKVc/Y4XvXL6M5?= =?us-ascii?Q?oyk6KuEHMqOOxn0ZTtXjKtjub4spMBWr1VFbS1hghBq+3cNxYv/MfoW/PIeT?= =?us-ascii?Q?lYumkIXo+hB17qHBUqWE3eY5XEaGbA3UZdunhZnciKy54aBLS/w5d9SWyRfc?= =?us-ascii?Q?Ixk8LsqGWIaCLy6mtAmnjNEQMV841zUGxQ6HdFTgcLsQ2z06pS9iZ0/M4vSn?= =?us-ascii?Q?oZ26wExaU1AZUiyC9MfIeYl67NVXK902mzrkqnitxXolWlSNAb98QdaEEefC?= =?us-ascii?Q?ZeQPCfF1VBRT4hoX1a0HXJGZOixMqGJ8N/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prQB39Z8QAyr64Hp+mcidheupCiSdIcAFZ5RyIcGyDcumod0t1/cWcbXtF2SOtkgieWczeu6SLSuK/0gj+A0Ik8nfO0XgiU/KbwYPi7VNqd4+HvsI01zvp4HJpVNYMxPBNKMYHAPYiTOEXd+Ob3q1Rl2d02nsnKYWjm3zMcWBOLAxSvu0wPSx+qHzStUHJk2h28v1waTZXaN9UJN/a+2nwBl SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2018 21:16:38.8483 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 948e8a55-588f-4afe-0052-08d5ee8615d7 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: Liviu Dudau --- drivers/gpu/drm/arm/malidp_planes.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c index 29409a65d864..49c37f6dd63e 100644 --- a/drivers/gpu/drm/arm/malidp_planes.c +++ b/drivers/gpu/drm/arm/malidp_planes.c @@ -78,11 +78,8 @@ static void malidp_plane_reset(struct drm_plane *plane) kfree(state); plane->state = NULL; state = kzalloc(sizeof(*state), GFP_KERNEL); - if (state) { - state->base.plane = plane; - state->base.rotation = DRM_MODE_ROTATE_0; - plane->state = &state->base; - } + if (state) + __drm_atomic_helper_plane_reset(plane, &state->base); } static struct