From patchwork Fri Jul 20 21:15:04 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: 10538381 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 2A45860547 for ; Fri, 20 Jul 2018 21:17:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A581297DB for ; Fri, 20 Jul 2018 21:17:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CFA92980F; Fri, 20 Jul 2018 21:17:05 +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 C0F77297DB for ; Fri, 20 Jul 2018 21:16:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D05BE6F0CB; Fri, 20 Jul 2018 21:16:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on061b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::61b]) by gabe.freedesktop.org (Postfix) with ESMTPS id E93A36F0CB for ; Fri, 20 Jul 2018 21:16:56 +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:52 +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 05/10] drm/exynos: Use __drm_atomic_helper_plane_reset instead of copying the logic Date: Fri, 20 Jul 2018 22:15:04 +0100 Message-Id: <20180720211509.23605-6-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: 4ee70bb7-8af3-4e88-7f28-08d5ee861dcd 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:DlqLH/B1zkQRx1+dtv9FEJswZ6VXgbxYNNrz+bZPbsgVul6Il/ecYN78HAkbbzETJnNIUfmjd10kb1VqJ42JqpAuxWpIkql9k2S70VD0XUUtkznwXd6Lg83L82AeU8GeXYa5+GVSdJ69cdm3LUyCiQXX7pVRG5WI31s/QhdToRQbLc4JNpHFtMfmx9TwlE2fvFVPB5dxCVmAMxv9y1LD1WjBEUWyYFT7hV+5gSP+MZjYUNdxv3WCMqXHxarew8BA; 25:V1Bfo9EIgds9cIEUD9++XJtSG1ichIIf9awxf2eamhuTRkQcrP0H5yle3vvt1RZRNSj4S7FDSbB8aDbTZgholZRlZZ6e766XFoaCEDhn5V2xED4X6qX84SSmFu/k82FmjBvFNrw8GajZiwn94AZLRVpjFsrOuUbc8qq3a4SbKmButoyD5WWt/ee99MPSnmDxn7a/gmWjhZ33eU5N9CxpS4o/WRtJ4wqEZg0JfVRB1F4KH1CwzHV50/wrzyGqnTtojm6/cGKgtW0i5ktv2jzcteo/RQxj1rNanQApJ6mMSiJsjA9Yd5jLkhovRGD0dbRvvFjJUW7UApqRyQRk9haFFg==; 31:qjDYIj4KZEam/fRXW+4qrW5u44/V7FvaXFnDmSV9LLLo2F2Sma3z6W54EbeTW90yIfuhe4KetNFMXHUoj+BtuG6QmqSOPuZDpykXpK3k/jq0HsDd/gmyirMwBp3tlSkjrxwZHb0beeW03qaKj4KAlcnNocIXW2A5ELik8LPkpBhJKhxYJwyvZOr15+48n25COWejBf1Td73iLA1n8Srg5ToNXFL1BXO5w2NRikU7gac= X-MS-TrafficTypeDiagnostic: VI1PR0802MB2557: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2557; 20:gvI1JgLXoZ6l9yA8ou0R9Z8HEF4eaXd3sZsT6m07U750oclEGyUrpbEnRfVko1UE5uxBYDMJue2tqHhQ00oTGz4l/y2kUzaGuwpvnafs9axcyID0hISwA6cnqGidjQOExZh79TyvOytYA/5+KiGgojzTkuIVI3oEdVrmyCvdXnEuYCszO5UteBbQRoIDhM13doJPVHOSr4+Kd2p/oDi+zh8/2ZGw8mN8+/vRAR91QcOjx7Crj7q1FD80VjD6bYuyOA7Qb+4ufgj3ZzGvqStL3GZfTl2GtibE6SGQfNDiRx7C3RCPntQq55emyS1/JsfVEDiKZwyUaEwkWRamMM2OMg==; 4:+zX3Y+711cyBcjdReDb6+fw9czYzum96tAK52pB7kNJqAg2FuwZwlj5yW1CXiQRqAeJiF/SIqpTfOMNBa4wvSJMS6yTCVv/3yhUXMl6rhZ5xIkDuAtbxeoLa2+XpzSyvbValF64Df8Xxti8IQXjTECRxFo7cBB2/17g/wVGW44Or5yyOVsuMkJuq8vJugGog2R+SMj/qQP/9Dnd+OSY62iZr0M6AzfhXWZaDhg8B6JAqp14sLNlSAznXHCPYxg3fUj8xzKzyr2XnmyrhG6XJFIiu3W5ugy99m4Cf5S3qgBRaiATulkHPSCv8kvz/hVJD 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:ziVeZU1SqUZjIukjiCZkbXlBaGvx9QkS/Z/QQJj?= =?us-ascii?Q?olslDLgZwSh4gSDIorqmrWpa8WryyCuEYu9zKTOPEiqhWOP4JvknDF0Hora7?= =?us-ascii?Q?/iP7iPpszSdpJqpR2pjpsCvCQXkSkUehn0F0gQTdzd2YStU4CRDCuJiyeOJv?= =?us-ascii?Q?WxRun4PtMHEueMAuJwFrpu84EABDGjJh/frQS7XTmqUrNjG/hqEYSDBZ8jTF?= =?us-ascii?Q?4IymPLTXNzxQEqeGBVR9pmUJLIuvyQGgHH3z0GFzlADOOZsHzvhLWsJmFvR4?= =?us-ascii?Q?9eTcFzAk8B1hoS6zEQO4/+m7NZIiX/W39HyqZgdctO1KrBiTv+7sE3ovWvU/?= =?us-ascii?Q?MRXQWP84K+XbEoMapG5xYUmir2Prob/sHw9uElXn7SJ5Ew2zomJMhQkg/cGz?= =?us-ascii?Q?RaHnte53Tb1+z8eFZcHAyZtpzR088uK+TxPMz0ln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KSzeU0gTEcBtwhrJAUd4v7OX2jL7PuibbnV7/ijUOAmAHBwCPinSHIAjc9TsSDnka6ewgmUVmuFV5iWzgwmzkmhkjJMBAOrkUel5UU7i66a2ybHYHw6F6pPCe4vMXf532O1lI+0u0l248RmPNqgrgJM7iWmL/DkDMz9W/UYMj1tT64wOlxmnSnM5kyVxC5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2018 21:16:52.2078 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4ee70bb7-8af3-4e88-7f28-08d5ee861dcd 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 --- drivers/gpu/drm/exynos/exynos_drm_plane.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c index eb9915da7dec..681328fbe7de 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_plane.c +++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c @@ -139,8 +139,7 @@ static void exynos_drm_plane_reset(struct drm_plane *plane) 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; } }