Skip to contentSkip to conversation

drm/hisilicon: Allow compile-testing on arm

PATCH In review Daniel Vetter 5 participants 8 messages Aug 17, 2016 – Sep 1, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drm/hisilicon: Allow compile-testing on arm

I just broke the build :(

Cc Xinliang Liu <[email protected]>
Cc Xinwei Kong <[email protected]>
Cc Chen Feng <[email protected]>
Cc Sean Paul <[email protected]>
Fixes d25bcfb8c2e1 ("drm/hisilicon: Don't set drm_device->platformdev")
---
 Documentation/gpu/drm-kms.rst           | 9 +++++++++
 drivers/gpu/drm/hisilicon/kirin/Kconfig | 3 ++-
 2 files changed, 11 insertions(+), 1 deletion(-)
Documentation/gpu/drm-kms.rst +9 -0
index d5ad60d3cf06..6544c74d250a 100644
@@ -389,6 +389,15 @@ connector and plane objects by calling the
 pointer to the target object, a pointer to the previously created
 property and an initial instance value.
 
+Property Types and Blob Property Support
+----------------------------------------
+
+.. kernel-doc:: include/drm/drm_property.h
+   :internal:
+
+.. kernel-doc:: drivers/gpu/drm/drm_property.c
+   :export:
+
 Blending and Z-Position properties
 ----------------------------------
 
drivers/gpu/drm/hisilicon/kirin/Kconfig +2 -1
index 499f64405dac..1524adcb5429 100644
@@ -1,6 +1,7 @@
 config DRM_HISI_KIRIN
 	tristate "DRM Support for Hisilicon Kirin series SoCs Platform"
-	depends on DRM && OF && ARM64
+	depends on DRM && OF
+	depends on ARM64 || (ARM && COMPILE_TEST)
 	select DRM_KMS_HELPER
 	select DRM_GEM_CMA_HELPER
 	select DRM_KMS_CMA_HELPER
Signature · 6 lines
2.8.1

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

PATCH 2/2 drm/hisilicon: Make it compile again

I just broke the build :(

Note that the cleanup function is a bit confused: ade_data was never set as drvdata, and calling drm_crtc_cleanup directly is a bug - this is called indirectly through drm_mode_config_cleanup, which calls into crtc->destroy, which already has the call to drm_crtc_cleanup. Which means we can just nuke it.

Aside: I have no idea why this driver depends upon ARM64. It doesn't build warning-free on 32bit, but otherwise it's perfectly fine.

Cc Xinliang Liu <[email protected]>
Cc Xinwei Kong <[email protected]>
Cc Chen Feng <[email protected]>
Cc Sean Paul <[email protected]>
Fixes d25bcfb8c2e1 ("drm/hisilicon: Don't set drm_device->platformdev")
---
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 9 ++-------
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 4 ++--
 2 files changed, 4 insertions(+), 9 deletions(-)
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +2 -7
index 91188f33b1d9..c64c82cb7e71 100644
@@ -991,7 +991,7 @@ static int ade_dts_parse(struct platform_device *pdev, struct ade_hw_ctx *ctx)
 
 static int ade_drm_init(struct platform_device *pdev)
 {
-	struct drm_device *drm_dev = platform_get_drvdata(dev);
+	struct drm_device *dev = platform_get_drvdata(pdev);
 	struct ade_data *ade;
 	struct ade_hw_ctx *ctx;
 	struct ade_crtc *acrtc;
@@ -1052,14 +1052,9 @@ static int ade_drm_init(struct platform_device *pdev)
 
 static void ade_drm_cleanup(struct platform_device *pdev)
 {
-	struct drm_device *drm_dev = platform_get_drvdata(dev);
-	struct ade_data *ade = platform_get_drvdata(pdev);
-	struct drm_crtc *crtc = &ade->acrtc.base;
-
-	drm_crtc_cleanup(crtc);
 }
 
 const struct kirin_dc_ops ade_dc_ops = {
 	.init = ade_drm_init,
 	.cleanup = ade_drm_cleanup
-;
+};
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +2 -2
index 6b0f9f6c16e1..b9b8c25da5e3 100644
@@ -103,7 +103,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
 	kirin_drm_mode_config_init(dev);
 
 	/* display controller init */
-	ret = dc_ops->init(to_platform_device(dev));
+	ret = dc_ops->init(to_platform_device(dev->dev));
 	if (ret)
 		goto err_mode_config_cleanup;
 
@@ -137,7 +137,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
 err_unbind_all:
 	component_unbind_all(dev->dev, dev);
 err_dc_cleanup:
-	dc_ops->cleanup(dev);
+	dc_ops->cleanup(to_platform_device(dev->dev));
 err_mode_config_cleanup:
 	drm_mode_config_cleanup(dev);
 	devm_kfree(dev->dev, priv);
Signature · 6 lines
2.8.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#2 lore raw

Re: [PATCH 2/2] drm/hisilicon: Make it compile again

Hi,

Quoted 4 lines · Daniel Vetter

I just broke the build :(

Note that the cleanup function is a bit confused: ade_data was never set as drvdata, and calling drm_crtc_cleanup directly is a bug - this

Yes, this is a bug. Thanks for pointing out this.

Quoted 6 lines

is called indirectly through drm_mode_config_cleanup, which calls into crtc->destroy, which already has the call to drm_crtc_cleanup. Which means we can just nuke it.

Aside: I have no idea why this driver depends upon ARM64. It doesn't build warning-free on 32bit, but otherwise it's perfectly fine.

Because this driver is written for ARM64 SoCs.

Thanks,
-xinliang

Quoted 66 lines
Cc Xinliang Liu <[email protected]>
Cc Xinwei Kong <[email protected]>
Cc Chen Feng <[email protected]>
Cc Sean Paul <[email protected]>
Fixes d25bcfb8c2e1 ("drm/hisilicon: Don't set drm_device->platformdev")
---
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 9 ++-------
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 4 ++--
 2 files changed, 4 insertions(+), 9 deletions(-)
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +2 -7
index 91188f33b1d9..c64c82cb7e71 100644
@@ -991,7 +991,7 @@ static int ade_dts_parse(struct platform_device *pdev, struct ade_hw_ctx *ctx)
 
 static int ade_drm_init(struct platform_device *pdev)
 {
-       struct drm_device *drm_dev = platform_get_drvdata(dev);
+       struct drm_device *dev = platform_get_drvdata(pdev);
        struct ade_data *ade;
        struct ade_hw_ctx *ctx;
        struct ade_crtc *acrtc;
@@ -1052,14 +1052,9 @@ static int ade_drm_init(struct platform_device *pdev)
 
 static void ade_drm_cleanup(struct platform_device *pdev)
 {
-       struct drm_device *drm_dev = platform_get_drvdata(dev);
-       struct ade_data *ade = platform_get_drvdata(pdev);
-       struct drm_crtc *crtc = &ade->acrtc.base;
-
-       drm_crtc_cleanup(crtc);
 }
 
 const struct kirin_dc_ops ade_dc_ops = {
        .init = ade_drm_init,
        .cleanup = ade_drm_cleanup
-;
+};
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +2 -3
index 6b0f9f6c16e1..b9b8c25da5e3 100644
@@ -103,7 +103,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
        kirin_drm_mode_config_init(dev);
 
        /* display controller init */
-       ret = dc_ops->init(to_platform_device(dev));
+       ret = dc_ops->init(to_platform_device(dev->dev));
        if (ret)
                goto err_mode_config_cleanup;
 
@@ -137,7 +137,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
 err_unbind_all:
        component_unbind_all(dev->dev, dev);
 err_dc_cleanup:
-       dc_ops->cleanup(dev);
+       dc_ops->cleanup(to_platform_device(dev->dev));
 err_mode_config_cleanup:
        drm_mode_config_cleanup(dev);
        devm_kfree(dev->dev, priv);
--

2.8.1

Quoted 4 lines

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

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

#3 lore raw

Re: [PATCH 2/2] drm/hisilicon: Make it compile again

Quoted 10 lines · Xinliang Liu

Hi,

Quoted 4 lines · Daniel Vetter

I just broke the build :(

Note that the cleanup function is a bit confused: ade_data was never set as drvdata, and calling drm_crtc_cleanup directly is a bug - this

Yes, this is a bug. Thanks for pointing out this.

Quoted 8 lines
Quoted 6 lines

is called indirectly through drm_mode_config_cleanup, which calls into crtc->destroy, which already has the call to drm_crtc_cleanup. Which means we can just nuke it.

Aside: I have no idea why this driver depends upon ARM64. It doesn't build warning-free on 32bit, but otherwise it's perfectly fine.

Because this driver is written for ARM64 SoCs.

It makes compile-testing harder, the same reasons why depending upon specific arm platforms is really annoying (but lukily that problem seems to have stopped being one for the drm subsystem at least). Depending on CONFIG_OF and other stuff that's really needed is perfectly fine, but imo depending upon specific platforms and stuff really isn't. -Daniel

Quoted 74 lines

Thanks,
-xinliang

Quoted 70 lines
Cc Xinliang Liu <[email protected]>
Cc Xinwei Kong <[email protected]>
Cc Chen Feng <[email protected]>
Cc Sean Paul <[email protected]>
Fixes d25bcfb8c2e1 ("drm/hisilicon: Don't set drm_device->platformdev")
---
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 9 ++-------
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 4 ++--
 2 files changed, 4 insertions(+), 9 deletions(-)
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +2 -7
index 91188f33b1d9..c64c82cb7e71 100644
@@ -991,7 +991,7 @@ static int ade_dts_parse(struct platform_device *pdev, struct ade_hw_ctx *ctx)
 
 static int ade_drm_init(struct platform_device *pdev)
 {
-       struct drm_device *drm_dev = platform_get_drvdata(dev);
+       struct drm_device *dev = platform_get_drvdata(pdev);
        struct ade_data *ade;
        struct ade_hw_ctx *ctx;
        struct ade_crtc *acrtc;
@@ -1052,14 +1052,9 @@ static int ade_drm_init(struct platform_device *pdev)
 
 static void ade_drm_cleanup(struct platform_device *pdev)
 {
-       struct drm_device *drm_dev = platform_get_drvdata(dev);
-       struct ade_data *ade = platform_get_drvdata(pdev);
-       struct drm_crtc *crtc = &ade->acrtc.base;
-
-       drm_crtc_cleanup(crtc);
 }
 
 const struct kirin_dc_ops ade_dc_ops = {
        .init = ade_drm_init,
        .cleanup = ade_drm_cleanup
-;
+};
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +2 -3
index 6b0f9f6c16e1..b9b8c25da5e3 100644
@@ -103,7 +103,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
        kirin_drm_mode_config_init(dev);
 
        /* display controller init */
-       ret = dc_ops->init(to_platform_device(dev));
+       ret = dc_ops->init(to_platform_device(dev->dev));
        if (ret)
                goto err_mode_config_cleanup;
 
@@ -137,7 +137,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
 err_unbind_all:
        component_unbind_all(dev->dev, dev);
 err_dc_cleanup:
-       dc_ops->cleanup(dev);
+       dc_ops->cleanup(to_platform_device(dev->dev));
 err_mode_config_cleanup:
        drm_mode_config_cleanup(dev);
        devm_kfree(dev->dev, priv);
--

2.8.1

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

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#4 lore raw

Re: [PATCH 2/2] drm/hisilicon: Make it compile again

Quoted 15 lines · Daniel Vetter
Quoted 14 lines · Xinliang Liu

Hi,

Quoted 4 lines · Daniel Vetter

I just broke the build :(

Note that the cleanup function is a bit confused: ade_data was never set as drvdata, and calling drm_crtc_cleanup directly is a bug - this

Yes, this is a bug. Thanks for pointing out this.

Quoted 4 lines

is called indirectly through drm_mode_config_cleanup, which calls into crtc->destroy, which already has the call to drm_crtc_cleanup. Which means we can just nuke it.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Aside: I have no idea why this driver depends upon ARM64. It doesn't build warning-free on 32bit, but otherwise it's perfectly fine.

Because this driver is written for ARM64 SoCs.

It makes compile-testing harder, the same reasons why depending upon

What compile-testing we will have? I just try to understand the problem.

Thanks,
-xinliang

Quoted 76 lines

specific arm platforms is really annoying (but lukily that problem seems to have stopped being one for the drm subsystem at least). Depending on CONFIG_OF and other stuff that's really needed is perfectly fine, but imo depending upon specific platforms and stuff really isn't. -Daniel

Quoted 70 lines

Thanks,
-xinliang

Quoted 66 lines
Cc Xinliang Liu <[email protected]>
Cc Xinwei Kong <[email protected]>
Cc Chen Feng <[email protected]>
Cc Sean Paul <[email protected]>
Fixes d25bcfb8c2e1 ("drm/hisilicon: Don't set drm_device->platformdev")
---
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 9 ++-------
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 4 ++--
 2 files changed, 4 insertions(+), 9 deletions(-)
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +2 -7
index 91188f33b1d9..c64c82cb7e71 100644
@@ -991,7 +991,7 @@ static int ade_dts_parse(struct platform_device *pdev, struct ade_hw_ctx *ctx)
 
 static int ade_drm_init(struct platform_device *pdev)
 {
-       struct drm_device *drm_dev = platform_get_drvdata(dev);
+       struct drm_device *dev = platform_get_drvdata(pdev);
        struct ade_data *ade;
        struct ade_hw_ctx *ctx;
        struct ade_crtc *acrtc;
@@ -1052,14 +1052,9 @@ static int ade_drm_init(struct platform_device *pdev)
 
 static void ade_drm_cleanup(struct platform_device *pdev)
 {
-       struct drm_device *drm_dev = platform_get_drvdata(dev);
-       struct ade_data *ade = platform_get_drvdata(pdev);
-       struct drm_crtc *crtc = &ade->acrtc.base;
-
-       drm_crtc_cleanup(crtc);
 }
 
 const struct kirin_dc_ops ade_dc_ops = {
        .init = ade_drm_init,
        .cleanup = ade_drm_cleanup
-;
+};
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +2 -3
index 6b0f9f6c16e1..b9b8c25da5e3 100644
@@ -103,7 +103,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
        kirin_drm_mode_config_init(dev);
 
        /* display controller init */
-       ret = dc_ops->init(to_platform_device(dev));
+       ret = dc_ops->init(to_platform_device(dev->dev));
        if (ret)
                goto err_mode_config_cleanup;
 
@@ -137,7 +137,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
 err_unbind_all:
        component_unbind_all(dev->dev, dev);
 err_dc_cleanup:
-       dc_ops->cleanup(dev);
+       dc_ops->cleanup(to_platform_device(dev->dev));
 err_mode_config_cleanup:
        drm_mode_config_cleanup(dev);
        devm_kfree(dev->dev, priv);
--

2.8.1

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines

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

--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

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

#5 lore raw

Re: [PATCH 2/2] drm/hisilicon: Make it compile again

Quoted 16 lines · Xinliang Liu
Quoted 15 lines · Daniel Vetter
Quoted 14 lines · Xinliang Liu

Hi,

Quoted 4 lines · Daniel Vetter

I just broke the build :(

Note that the cleanup function is a bit confused: ade_data was never set as drvdata, and calling drm_crtc_cleanup directly is a bug - this

Yes, this is a bug. Thanks for pointing out this.

Quoted 4 lines

is called indirectly through drm_mode_config_cleanup, which calls into crtc->destroy, which already has the call to drm_crtc_cleanup. Which means we can just nuke it.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Aside: I have no idea why this driver depends upon ARM64. It doesn't build warning-free on 32bit, but otherwise it's perfectly fine.

Because this driver is written for ARM64 SoCs.

It makes compile-testing harder, the same reasons why depending upon

What compile-testing we will have? I just try to understand the problem.

it is useful for others who don't have the hw to be able to compile test core changes (hence kconfig COMPILE_TEST option) to at least catch the sorts of problems that compilers can catch..

BR,
-R

Quoted 88 lines

Thanks,
-xinliang

Quoted 76 lines

specific arm platforms is really annoying (but lukily that problem seems to have stopped being one for the drm subsystem at least). Depending on CONFIG_OF and other stuff that's really needed is perfectly fine, but imo depending upon specific platforms and stuff really isn't. -Daniel

Quoted 70 lines

Thanks,
-xinliang

Quoted 66 lines
Cc Xinliang Liu <[email protected]>
Cc Xinwei Kong <[email protected]>
Cc Chen Feng <[email protected]>
Cc Sean Paul <[email protected]>
Fixes d25bcfb8c2e1 ("drm/hisilicon: Don't set drm_device->platformdev")
---
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 9 ++-------
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 4 ++--
 2 files changed, 4 insertions(+), 9 deletions(-)
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +2 -7
index 91188f33b1d9..c64c82cb7e71 100644
@@ -991,7 +991,7 @@ static int ade_dts_parse(struct platform_device *pdev, struct ade_hw_ctx *ctx)
 
 static int ade_drm_init(struct platform_device *pdev)
 {
-       struct drm_device *drm_dev = platform_get_drvdata(dev);
+       struct drm_device *dev = platform_get_drvdata(pdev);
        struct ade_data *ade;
        struct ade_hw_ctx *ctx;
        struct ade_crtc *acrtc;
@@ -1052,14 +1052,9 @@ static int ade_drm_init(struct platform_device *pdev)
 
 static void ade_drm_cleanup(struct platform_device *pdev)
 {
-       struct drm_device *drm_dev = platform_get_drvdata(dev);
-       struct ade_data *ade = platform_get_drvdata(pdev);
-       struct drm_crtc *crtc = &ade->acrtc.base;
-
-       drm_crtc_cleanup(crtc);
 }
 
 const struct kirin_dc_ops ade_dc_ops = {
        .init = ade_drm_init,
        .cleanup = ade_drm_cleanup
-;
+};
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +2 -3
index 6b0f9f6c16e1..b9b8c25da5e3 100644
@@ -103,7 +103,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
        kirin_drm_mode_config_init(dev);
 
        /* display controller init */
-       ret = dc_ops->init(to_platform_device(dev));
+       ret = dc_ops->init(to_platform_device(dev->dev));
        if (ret)
                goto err_mode_config_cleanup;
 
@@ -137,7 +137,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
 err_unbind_all:
        component_unbind_all(dev->dev, dev);
 err_dc_cleanup:
-       dc_ops->cleanup(dev);
+       dc_ops->cleanup(to_platform_device(dev->dev));
 err_mode_config_cleanup:
        drm_mode_config_cleanup(dev);
        devm_kfree(dev->dev, priv);
--

2.8.1

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines

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

--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

Quoted 4 lines

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

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

maintainer
#6 lore raw

Re: [PATCH 2/2] drm/hisilicon: Make it compile again

Hi,

Quoted 22 lines · Rob Clark
Quoted 21 lines · Xinliang Liu
Quoted 20 lines · Daniel Vetter
Quoted 18 lines · Xinliang Liu

Hi,

Quoted 4 lines · Daniel Vetter

I just broke the build :(

Note that the cleanup function is a bit confused: ade_data was never set as drvdata, and calling drm_crtc_cleanup directly is a bug - this

Yes, this is a bug. Thanks for pointing out this.

Quoted 6 lines

is called indirectly through drm_mode_config_cleanup, which calls into crtc->destroy, which already has the call to drm_crtc_cleanup. Which means we can just nuke it.

Aside: I have no idea why this driver depends upon ARM64. It doesn't build warning-free on 32bit, but otherwise it's perfectly fine.

Because this driver is written for ARM64 SoCs.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

It makes compile-testing harder, the same reasons why depending upon

What compile-testing we will have? I just try to understand the problem.

it is useful for others who don't have the hw to be able to compile test core changes (hence kconfig COMPILE_TEST option) to at least catch the sorts of problems that compilers can catch..

Understand! Thanks Rob.

-xinliang

Quoted 97 lines

BR,
-R

Quoted 92 lines

Thanks,
-xinliang

Quoted 76 lines

specific arm platforms is really annoying (but lukily that problem seems to have stopped being one for the drm subsystem at least). Depending on CONFIG_OF and other stuff that's really needed is perfectly fine, but imo depending upon specific platforms and stuff really isn't. -Daniel

Quoted 70 lines

Thanks,
-xinliang

Quoted 66 lines
Cc Xinliang Liu <[email protected]>
Cc Xinwei Kong <[email protected]>
Cc Chen Feng <[email protected]>
Cc Sean Paul <[email protected]>
Fixes d25bcfb8c2e1 ("drm/hisilicon: Don't set drm_device->platformdev")
---
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 9 ++-------
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 4 ++--
 2 files changed, 4 insertions(+), 9 deletions(-)
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +2 -7
index 91188f33b1d9..c64c82cb7e71 100644
@@ -991,7 +991,7 @@ static int ade_dts_parse(struct platform_device *pdev, struct ade_hw_ctx *ctx)
 
 static int ade_drm_init(struct platform_device *pdev)
 {
-       struct drm_device *drm_dev = platform_get_drvdata(dev);
+       struct drm_device *dev = platform_get_drvdata(pdev);
        struct ade_data *ade;
        struct ade_hw_ctx *ctx;
        struct ade_crtc *acrtc;
@@ -1052,14 +1052,9 @@ static int ade_drm_init(struct platform_device *pdev)
 
 static void ade_drm_cleanup(struct platform_device *pdev)
 {
-       struct drm_device *drm_dev = platform_get_drvdata(dev);
-       struct ade_data *ade = platform_get_drvdata(pdev);
-       struct drm_crtc *crtc = &ade->acrtc.base;
-
-       drm_crtc_cleanup(crtc);
 }
 
 const struct kirin_dc_ops ade_dc_ops = {
        .init = ade_drm_init,
        .cleanup = ade_drm_cleanup
-;
+};
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +2 -3
index 6b0f9f6c16e1..b9b8c25da5e3 100644
@@ -103,7 +103,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
        kirin_drm_mode_config_init(dev);
 
        /* display controller init */
-       ret = dc_ops->init(to_platform_device(dev));
+       ret = dc_ops->init(to_platform_device(dev->dev));
        if (ret)
                goto err_mode_config_cleanup;
 
@@ -137,7 +137,7 @@ static int kirin_drm_kms_init(struct drm_device *dev)
 err_unbind_all:
        component_unbind_all(dev->dev, dev);
 err_dc_cleanup:
-       dc_ops->cleanup(dev);
+       dc_ops->cleanup(to_platform_device(dev->dev));
 err_mode_config_cleanup:
        drm_mode_config_cleanup(dev);
        devm_kfree(dev->dev, priv);
--

2.8.1

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines

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

--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

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

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

#7 lore raw
In reply to Daniel Vetter
Quoted 9 lines · Daniel Vetter
Documentation/gpu/drm-kms.rst +1 -0
index d5ad60d3cf06..6544c74d250a 100644
@@ -389,6 +389,15 @@ connector and plane objects by calling the
 pointer to the target object, a pointer to the previously created
 property and an initial instance value.
 
+Property Types and Blob Property Support

Documentation/gpu/drm-kms.rst connector and plane objects by calling the · line 402

Quoted 10 lines
Documentation/gpu/drm-kms.rst +8 -0
+----------------------------------------
+
+.. kernel-doc:: include/drm/drm_property.h
+   :internal:
+
+.. kernel-doc:: drivers/gpu/drm/drm_property.c
+   :export:
+
 Blending and Z-Position properties
 ----------------------------------

Oops. :(

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