Received: by 10.192.165.148 with SMTP id m20csp3518438imm; Mon, 23 Apr 2018 07:55:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+60FIK2MFcQ5VztRg8DHNceoRKWXzfMkTKjzDv+wmurNHlPXhNy8XbNJ7j1ihW0iFblokR X-Received: by 2002:a17:902:a985:: with SMTP id bh5-v6mr21626535plb.0.1524495311636; Mon, 23 Apr 2018 07:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524495311; cv=none; d=google.com; s=arc-20160816; b=turvlQ4mVin/Ru3STkMJRO68wOlygja4/A3ezFBI6QZxeQrM617cfldygbsLsXGkgx QsN2EY6/GxrAm5Cwn149mnOdLIIa1cqO50Dc4005ct9ldsZUhMBEwgHEAytcj4iE7vIl aREOmtXZqo6Ul3iIMXyQzcltJl1Z0F+FtTFldxfLm83v3Gb3KDGNa9hCxSyQ53Ap+36x iEYPQHKi478g0oFh572DfnB0X3EDloo7aJ0ixDDcZ5Hq9L7ksFC6O16Z3VmxKtOyQUtV n551brluXOcVf0BSsrl+YUPNRRM86YEMf7uDI94FsNOgrRg7mMEtHuoExOcKwxsp9sEF ihUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:nodisclaimer:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=s8cdS6GjGidaNAHdt6k4suNQEe7pcJu8BVZGsVa5cRI=; b=dwaM86OtqZt4iv5CTDE0CBi51pRUiw8FA9Si+en7pkceSBp0VTBrq9bT6jN4EPahH6 K5DHJVW8XE1F1CznlI1miUdseEZOqmQSo99BVpl6ZzHYMUWXdDMFQgjBTW2vbHXXwyby 9UYeuI/LL/rZgy2LpHiQ5rHTxR2UbE8tM6brFFPjhR8Le1m5/pK8FiuFVDK2qelGbkeY cDg0bjZbOLoyR1GkA00plWZXrsrj4gv0it9Qu2DtqM8fy7rokdwaXh36sGihpfeHWcOP 8DWCBeSTZFIM0yk6o2TyROxKYcRE+sscJ2lroTas9Xt7vFm4bvlPzTq9LN2hOzMhLg7L py2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=bMGn/CDZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3si11604007pfh.145.2018.04.23.07.54.56; Mon, 23 Apr 2018 07:55:11 -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=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=bMGn/CDZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755663AbeDWOw6 (ORCPT + 99 others); Mon, 23 Apr 2018 10:52:58 -0400 Received: from mail-he1eur01on0056.outbound.protection.outlook.com ([104.47.0.56]:26568 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755244AbeDWOvE (ORCPT ); Mon, 23 Apr 2018 10:51:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=s8cdS6GjGidaNAHdt6k4suNQEe7pcJu8BVZGsVa5cRI=; b=bMGn/CDZUTlLquBwGKHyePnV3tpWd+qipAN9qtkNirxD9SZhdQNHEzqSzFKQNMd810J8NxhSrIURZCJa1OUGqov6MOvP9T0sXycJqkgr+f4a456WwiEtOnGcfO+98LH6747OErX/4YarfYLBVIKiiwlCnailjwBYiZM3AtRgeMg= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; Received: from e113505-lin.cambridge.arm.com (217.140.96.140) by VI1PR08MB3039.eurprd08.prod.outlook.com (2603:10a6:803:45::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.12; Mon, 23 Apr 2018 14:51:02 +0000 From: Ayan Kumar Halder To: ayan.halder@arm.com, liviu.dudau@arm.com, brian.starkey@arm.com, malidp@foss.arm.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: nd@arm.com Subject: [PATCH v2 1/8] drm/arm/malidp: Modified the prototype of malidp_de_irq_fini Date: Mon, 23 Apr 2018 15:50:44 +0100 Message-Id: <1524495051-3891-2-git-send-email-ayan.halder@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524495051-3891-1-git-send-email-ayan.halder@arm.com> References: <1524495051-3891-1-git-send-email-ayan.halder@arm.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: VI1PR0701CA0055.eurprd07.prod.outlook.com (2603:10a6:800:5f::17) To VI1PR08MB3039.eurprd08.prod.outlook.com (2603:10a6:803:45::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020);SRVR:VI1PR08MB3039; X-Microsoft-Exchange-Diagnostics: 1;VI1PR08MB3039;3:uU+lDrvew9YmjAH+HZxGTzmyQyFfW64t672aLr999nfiAToxEjnmv79nUVrVdGHzXl1HnhAfekgvdymUgQCJDzCUr5KLdpKu0+/yoFYYbK/LNrx0Uz9Om60dqHIlsT8Rypn/h4E/Pd9Pk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KYpoxRg6hf+eYEouHRyWozljoM3gROPLQgAwSzjzhNzhW1B1IcYj8Mu4xiIj/juMurfqAW06CnnqxZn3bbSCUdDE/kwWCec0AQyG7pK7Jj2DI63D7bfFShEdEEx2co3vMFQ5D1RIL25c4t69dfS0tbASZQ2vr0cfl7vJPdu13KbB7i/3FpNauEah9g/ITIw3sZjuFiVG7UKRRsw6eFHOR8dBP0Y8oYGEutV0oTsAvtP4bZ8y8AhZuNCOy2LxXl03SVLLbymGYa2iRGrCrQN X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231232)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:VI1PR08MB3039;BCL:0;PCL:0;RULEID:;SRVR:VI1PR08MB3039; X-Forefront-PRVS: 06515DA04B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39860400002)(346002)(376002)(39380400002)(396003)(366004)(36756003)(47776003)(50466002)(6116002)(26005)(81166006)(3846002)(8676002)(48376002)(5660300001)(7736002)(66066001)(305945005)(16526019)(446003)(478600001)(2616005)(956004)(476003)(16586007)(52116002)(76176011)(316002)(4326008)(386003)(25786009)(72206003)(86362001)(6666003)(7696005)(575784001)(11346002)(6486002)(2906002)(8936002)(50226002)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR08MB3039;H:e113505-lin.cambridge.arm.com;FPR:;SPF:None;LANG:en;MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR08MB3039;23:m8Q5TF8HoU7TasjlDYPZs7+QlToUS8Ye/AncdBF7/?= =?us-ascii?Q?DYo9Vo0vVT0f9Gfa5EBOBHoo4dzwa3huZtTb2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0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR08MB3039;7:HPjtlnnMihpWXDxgl73TgCjoTPh2vSqECztxlTrpiwXPaz07amLKOFz0RAhDdkpDGR44EeuLYbPZU2IIF/67ULk/x8oGvzQVs2D5stiqtib0fiXqxlD9w+g3LIjAduWYEHe0aejyf0HImrtxgoT/hR5Z6BRCGzdVOZkFkX3poYWAfL3s1el3N3LcSCMuO4InD7s5PHy4sA+VK6ZzXmIR2CHkbZzYGzOGdWZpLiOgo7/RxlP4OuVqryGQ90POf5Dz X-MS-Office365-Filtering-Correlation-Id: cfed7a08-8d6a-4583-a4e5-08d5a929a291 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2018 14:51:02.5406 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cfed7a08-8d6a-4583-a4e5-08d5a929a291 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3039 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'struct drm_device' is being replaced with 'struct malidp_hw_device' as the function argument. The reason being the dependency of malidp_de_irq_fini on 'struct drm_device' needs to be removed so as to enable it to call from functions which receives 'struct malidp_hw_device' as argument. Furthermore, there is no way to retrieve 'struct drm_device' from 'struct malidp_hw_device'. Signed-off-by: Ayan Kumar Halder --- Changes in v2:- - Removed the change id --- drivers/gpu/drm/arm/malidp_drv.c | 9 ++++++--- drivers/gpu/drm/arm/malidp_hw.c | 5 +---- drivers/gpu/drm/arm/malidp_hw.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c index 4b0c4b4..ed38ba9 100644 --- a/drivers/gpu/drm/arm/malidp_drv.c +++ b/drivers/gpu/drm/arm/malidp_drv.c @@ -295,6 +295,8 @@ static int malidp_irq_init(struct platform_device *pdev) { int irq_de, irq_se, ret = 0; struct drm_device *drm = dev_get_drvdata(&pdev->dev); + struct malidp_drm *malidp = drm->dev_private; + struct malidp_hw_device *hwdev = malidp->dev; /* fetch the interrupts from DT */ irq_de = platform_get_irq_byname(pdev, "DE"); @@ -314,7 +316,7 @@ static int malidp_irq_init(struct platform_device *pdev) ret = malidp_se_irq_init(drm, irq_se); if (ret) { - malidp_de_irq_fini(drm); + malidp_de_irq_fini(hwdev); return ret; } @@ -652,7 +654,7 @@ static int malidp_bind(struct device *dev) pm_runtime_get_sync(dev); vblank_fail: malidp_se_irq_fini(drm); - malidp_de_irq_fini(drm); + malidp_de_irq_fini(hwdev); drm->irq_enabled = false; irq_init_fail: component_unbind_all(dev, drm); @@ -681,6 +683,7 @@ static void malidp_unbind(struct device *dev) { struct drm_device *drm = dev_get_drvdata(dev); struct malidp_drm *malidp = drm->dev_private; + struct malidp_hw_device *hwdev = malidp->dev; drm_dev_unregister(drm); drm_fb_cma_fbdev_fini(drm); @@ -688,7 +691,7 @@ static void malidp_unbind(struct device *dev) pm_runtime_get_sync(dev); drm_crtc_vblank_off(&malidp->crtc); malidp_se_irq_fini(drm); - malidp_de_irq_fini(drm); + malidp_de_irq_fini(hwdev); drm->irq_enabled = false; component_unbind_all(dev, drm); of_node_put(malidp->crtc.port); diff --git a/drivers/gpu/drm/arm/malidp_hw.c b/drivers/gpu/drm/arm/malidp_hw.c index e4d9ebc..b13dfac 100644 --- a/drivers/gpu/drm/arm/malidp_hw.c +++ b/drivers/gpu/drm/arm/malidp_hw.c @@ -900,11 +900,8 @@ int malidp_de_irq_init(struct drm_device *drm, int irq) return 0; } -void malidp_de_irq_fini(struct drm_device *drm) +void malidp_de_irq_fini(struct malidp_hw_device *hwdev) { - struct malidp_drm *malidp = drm->dev_private; - struct malidp_hw_device *hwdev = malidp->dev; - malidp_hw_disable_irq(hwdev, MALIDP_DE_BLOCK, hwdev->hw->map.de_irq_map.irq_mask); malidp_hw_disable_irq(hwdev, MALIDP_DC_BLOCK, diff --git a/drivers/gpu/drm/arm/malidp_hw.h b/drivers/gpu/drm/arm/malidp_hw.h index a242e97..6e2a2f6 100644 --- a/drivers/gpu/drm/arm/malidp_hw.h +++ b/drivers/gpu/drm/arm/malidp_hw.h @@ -297,7 +297,7 @@ static inline void malidp_hw_enable_irq(struct malidp_hw_device *hwdev, } int malidp_de_irq_init(struct drm_device *drm, int irq); -void malidp_de_irq_fini(struct drm_device *drm); +void malidp_de_irq_fini(struct malidp_hw_device *hwdev); int malidp_se_irq_init(struct drm_device *drm, int irq); void malidp_se_irq_fini(struct drm_device *drm); -- 2.7.4