Skip to contentSkip to conversation

drm/exynos: fixed minor bugs.

PATCH New Inki Dae 1 participant 5 messages Jan 17, 2012

Subsystems (3)
lore
Share & tools
lore

Inki Dae

author maintainer
#0 lore raw

cover drm/exynos: fixed minor bugs.

this patch set fixes the issues that two drivers use same hardware, FIMD and HDMI, and also I'd like to add my colleagues who dedicated to developing and improving Exynos DRM Driver to maintainer entry.

this is based on git repository below:
git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git,
branch name: drm-fixes
commit-id: 081794564e3000e602de290d1121792c33b475a4

and you can refer to our working repository below:
http://git.infradead.org/users/kmpark/linux-2.6-samsung,
branch name: exynos-drm-fixes

Inki Dae (2):
drm/exynos: fixed build dependency for DRM_EXYNOS_FIMD
MAINTAINERS: added maintainer entry for Exynos DRM Driver.

Seung-Woo Kim (2):
drm/exynos: use release_mem_region instead of release_resource drm/exynos: fix build dependency for DRM_EXYNOS_HDMI

 MAINTAINERS                          |    3 +++
 drivers/gpu/drm/exynos/Kconfig       |    4 ++--
 drivers/gpu/drm/exynos/exynos_hdmi.c |    8 ++++----
 3 files changed, 9 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.4.1
author maintainer
#1 lore raw

PATCH 1/4 drm/exynos: use release_mem_region instead of release_resource

From: Seung-Woo Kim <[email protected]>

To make a api pair of request_mem_region and release_mem_region, release_mem_region is used instead of release_resource.

---
 drivers/gpu/drm/exynos/exynos_hdmi.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/exynos/exynos_hdmi.c +4 -4
index f48f7ce..3429d3f 100644
@@ -1116,8 +1116,8 @@ err_ddc:
 err_iomap:
 	iounmap(hdata->regs);
 err_req_region:
-	release_resource(hdata->regs_res);
-	kfree(hdata->regs_res);
+	release_mem_region(hdata->regs_res->start,
+			resource_size(hdata->regs_res));
 err_resource:
 	hdmi_resources_cleanup(hdata);
 err_data:
@@ -1145,8 +1145,8 @@ static int __devexit hdmi_remove(struct platform_device *pdev)
 
 	iounmap(hdata->regs);
 
-	release_resource(hdata->regs_res);
-	kfree(hdata->regs_res);
+	release_mem_region(hdata->regs_res->start,
+			resource_size(hdata->regs_res));
 
 	/* hdmiphy i2c driver */
 	i2c_del_driver(&hdmiphy_driver);
Signature · 1 line
1.7.4.1
author maintainer
#2 lore raw

PATCH 2/4 drm/exynos: fix build dependency for DRM_EXYNOS_HDMI

In reply to Inki Dae

From: Seung-Woo Kim <[email protected]>

DRM_EXYNOS_HDMI driver and VIDEO_SAMSUNG_S5P_TV driver should be not enabled at once because they use same HW blocks. So dependency for DRM_EXYNOS_HDMI is fixed to check VIDEO_SAMSUNG_S5P_TV=n.

---
 drivers/gpu/drm/exynos/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/exynos/Kconfig +1 -1
index f9aaa56..4ab915e 100644
@@ -21,7 +21,7 @@ config DRM_EXYNOS_FIMD
 
 config DRM_EXYNOS_HDMI
 	tristate "Exynos DRM HDMI"
-	depends on DRM_EXYNOS
+	depends on DRM_EXYNOS && !VIDEO_SAMSUNG_S5P_TV
 	help
 	  Choose this option if you want to use Exynos HDMI for DRM.
 	  If M is selected, the module will be called exynos_drm_hdmi
Signature · 1 line
1.7.4.1
author maintainer
#3 lore raw

PATCH 3/4 drm/exynos: fixed build dependency for DRM_EXYNOS_FIMD

In reply to Inki Dae

FB based FIMD and DRM based FIMD drivers use same hardware so with this patch, only one of them would be selected.

---
 drivers/gpu/drm/exynos/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/exynos/Kconfig +1 -1
index 4ab915e..b9e5266 100644
@@ -13,7 +13,7 @@ config DRM_EXYNOS
 
 config DRM_EXYNOS_FIMD
 	tristate "Exynos DRM FIMD"
-	depends on DRM_EXYNOS
+	depends on DRM_EXYNOS && !FB_S3C
 	default n
 	help
 	  Choose this option if you want to use Exynos FIMD for DRM.
Signature · 1 line
1.7.4.1
author maintainer
#4 lore raw

PATCH 4/4 MAINTAINERS: added maintainer entry for Exynos DRM Driver.

In reply to Inki Dae

I'd like to add my colleagues who dedicated to developing and improving our driver to maintainer entry.

---
 MAINTAINERS |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
MAINTAINERS +3 -0
index 1094edf..1ec0d95 100644
@@ -2330,6 +2330,9 @@ F:	include/drm/i915*
 
 DRM DRIVERS FOR EXYNOS
 M:	Inki Dae <[email protected]>
+M:	Joonyoung Shim <[email protected]>
+M:	Seung-Woo Kim <[email protected]>
+M:	Kyungmin Park <[email protected]>
 L:	[email protected]
 S:	Supported
 F:	drivers/gpu/drm/exynos
Signature · 1 line
1.7.4.1