Skip to contentSkip to conversation

drm: arm/komeda: Remove IRQ parsing from initial series

PATCH In review Liviu Dudau 2 participants 4 messages Jan 15, 2019 – Jan 17, 2019

Subsystems (4)
lore
Share & tools
lore

Liviu Dudau

author maintainer
#0 lore raw

PATCH 1/1 drm: arm/komeda: Remove IRQ parsing from initial series

The initial series is only introducing the basic components and not implementing IRQ handling. Remove the left over code that touches IRQs until the proper implementation is introduced in a later series.

---
 drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 5 -----
 drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 3 ---
 drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 4 +---
 3 files changed, 1 insertion(+), 11 deletions(-)
drivers/gpu/drm/arm/display/komeda/komeda_dev.c +0 -5
index 84fdf707f2107..16f4e72abc1a3 100644
@@ -59,11 +59,6 @@ static int komeda_parse_dt(struct device *dev, struct komeda_dev *mdev)
 		return PTR_ERR(clk);
 
 	mdev->mclk = clk;
-	mdev->irq  = platform_get_irq(pdev, 0);
-	if (mdev->irq < 0) {
-		DRM_ERROR("could not get IRQ number.\n");
-		return mdev->irq;
-	}
 
 	for_each_available_child_of_node(np, child) {
 		if (of_node_cmp(child->name, "pipeline") == 0) {
drivers/gpu/drm/arm/display/komeda/komeda_dev.h +0 -3
index a0bf7050037a0..0f77dead6a237 100644
@@ -81,9 +81,6 @@ struct komeda_dev {
 	/** @mck: HW main engine clk */
 	struct clk *mclk;
 
-	/** @irq: irq number */
-	u32 irq;
-
 	int n_pipelines;
 	struct komeda_pipeline *pipelines[KOMEDA_MAX_PIPELINES];
 
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +1 -3
index f41b20235130b..3fc096d3883e8 100644
@@ -142,12 +142,10 @@ struct komeda_kms_dev *komeda_kms_attach(struct komeda_dev *mdev)
 
 	err = drm_dev_register(drm, 0);
 	if (err)
-		goto uninstall_irq;
+		goto cleanup_mode_config;
 
 	return kms;
 
-uninstall_irq:
-	drm_irq_uninstall(drm);
 cleanup_mode_config:
 	drm_mode_config_cleanup(drm);
 free_kms:
Signature · 6 lines
2.20.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 5 lines · Liviu Dudau

The initial series is only introducing the basic components and not implementing IRQ handling. Remove the left over code that touches IRQs until the proper implementation is introduced in a later series.

Quoted 44 lines
---
 drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 5 -----
 drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 3 ---
 drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 4 +---
 3 files changed, 1 insertion(+), 11 deletions(-)
drivers/gpu/drm/arm/display/komeda/komeda_dev.c +0 -5
index 84fdf707f2107..16f4e72abc1a3 100644
@@ -59,11 +59,6 @@ static int komeda_parse_dt(struct device *dev, struct komeda_dev *mdev)
 return PTR_ERR(clk);
 
 mdev->mclk = clk;
-mdev->irq  = platform_get_irq(pdev, 0);
-if (mdev->irq < 0) {
-DRM_ERROR("could not get IRQ number.\n");
-return mdev->irq;
-}
 
 for_each_available_child_of_node(np, child) {
 if (of_node_cmp(child->name, "pipeline") == 0) {
drivers/gpu/drm/arm/display/komeda/komeda_dev.h +0 -3
index a0bf7050037a0..0f77dead6a237 100644
@@ -81,9 +81,6 @@ struct komeda_dev {
 /** @mck: HW main engine clk */
 struct clk *mclk;
 
-/** @irq: irq number */
-u32 irq;
-
 int n_pipelines;
 struct komeda_pipeline *pipelines[KOMEDA_MAX_PIPELINES];
 
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +0 -0
index f41b20235130b..3fc096d3883e8 100644
@@ -142,12 +142,10 @@ struct komeda_kms_dev *komeda_kms_attach(struct komeda_dev *mdev)
 
 err = drm_dev_register(drm, 0);
 if (err)

drivers/gpu/drm/arm/display/komeda/komeda_kms.c struct komeda_kms_dev *komeda_kms_attach(struct komeda_dev *mdev) · line 151

Quoted 10 lines
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +1 -3
-goto uninstall_irq;
+goto cleanup_mode_config;
 
 return kms;
 
-uninstall_irq:
-drm_irq_uninstall(drm);
 cleanup_mode_config:
 drm_mode_config_cleanup(drm);
 free_kms:

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

#2 lore raw
In reply to Liviu Dudau
Quoted 5 lines · Liviu Dudau

The initial series is only introducing the basic components and not implementing IRQ handling. Remove the left over code that touches IRQs until the proper implementation is introduced in a later series.

Quoted 44 lines
---
 drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 5 -----
 drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 3 ---
 drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 4 +---
 3 files changed, 1 insertion(+), 11 deletions(-)
drivers/gpu/drm/arm/display/komeda/komeda_dev.c +0 -5
index 84fdf707f2107..16f4e72abc1a3 100644
@@ -59,11 +59,6 @@ static int komeda_parse_dt(struct device *dev, struct komeda_dev *mdev)
 return PTR_ERR(clk);
 
 mdev->mclk = clk;
-mdev->irq  = platform_get_irq(pdev, 0);
-if (mdev->irq < 0) {
-DRM_ERROR("could not get IRQ number.\n");
-return mdev->irq;
-}
 
 for_each_available_child_of_node(np, child) {
 if (of_node_cmp(child->name, "pipeline") == 0) {
drivers/gpu/drm/arm/display/komeda/komeda_dev.h +0 -3
index a0bf7050037a0..0f77dead6a237 100644
@@ -81,9 +81,6 @@ struct komeda_dev {
 /** @mck: HW main engine clk */
 struct clk *mclk;
 
-/** @irq: irq number */
-u32 irq;
-
 int n_pipelines;
 struct komeda_pipeline *pipelines[KOMEDA_MAX_PIPELINES];
 
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +0 -0
index f41b20235130b..3fc096d3883e8 100644
@@ -142,12 +142,10 @@ struct komeda_kms_dev *komeda_kms_attach(struct komeda_dev *mdev)
 
 err = drm_dev_register(drm, 0);
 if (err)

drivers/gpu/drm/arm/display/komeda/komeda_kms.c struct komeda_kms_dev *komeda_kms_attach(struct komeda_dev *mdev) · line 151

Quoted 10 lines
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +1 -3
-goto uninstall_irq;
+goto cleanup_mode_config;
 
 return kms;
 
-uninstall_irq:
-drm_irq_uninstall(drm);
 cleanup_mode_config:
 drm_mode_config_cleanup(drm);
 free_kms:

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to Liviu Dudau
Quoted 5 lines · Liviu Dudau

The initial series is only introducing the basic components and not implementing IRQ handling. Remove the left over code that touches IRQs until the proper implementation is introduced in a later series.

Quoted 44 lines
---
 drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 5 -----
 drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 3 ---
 drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 4 +---
 3 files changed, 1 insertion(+), 11 deletions(-)
drivers/gpu/drm/arm/display/komeda/komeda_dev.c +0 -5
index 84fdf707f2107..16f4e72abc1a3 100644
@@ -59,11 +59,6 @@ static int komeda_parse_dt(struct device *dev, struct komeda_dev *mdev)
 		return PTR_ERR(clk);
 
 	mdev->mclk = clk;
-	mdev->irq  = platform_get_irq(pdev, 0);
-	if (mdev->irq < 0) {
-		DRM_ERROR("could not get IRQ number.\n");
-		return mdev->irq;
-	}
 
 	for_each_available_child_of_node(np, child) {
 		if (of_node_cmp(child->name, "pipeline") == 0) {
drivers/gpu/drm/arm/display/komeda/komeda_dev.h +0 -3
index a0bf7050037a0..0f77dead6a237 100644
@@ -81,9 +81,6 @@ struct komeda_dev {
 	/** @mck: HW main engine clk */
 	struct clk *mclk;
 
-	/** @irq: irq number */
-	u32 irq;
-
 	int n_pipelines;
 	struct komeda_pipeline *pipelines[KOMEDA_MAX_PIPELINES];
 
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +0 -0
index f41b20235130b..3fc096d3883e8 100644
@@ -142,12 +142,10 @@ struct komeda_kms_dev *komeda_kms_attach(struct komeda_dev *mdev)
 
 	err = drm_dev_register(drm, 0);
 	if (err)

drivers/gpu/drm/arm/display/komeda/komeda_kms.c struct komeda_kms_dev *komeda_kms_attach(struct komeda_dev *mdev) · line 151

Quoted 10 lines
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +1 -3
-		goto uninstall_irq;
+		goto cleanup_mode_config;
 
 	return kms;
 
-uninstall_irq:
-	drm_irq_uninstall(drm);
 cleanup_mode_config:
 	drm_mode_config_cleanup(drm);
 free_kms:

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel