diff mbox series

[02/14] drm/kmb: Define driver date and major/minor version

Message ID 20210728003126.1425028-2-anitha.chrisanthus@intel.com (mailing list archive)
State New, archived
Headers show
Series [01/14] drm/kmb: Enable LCD DMA for low TVDDCV | expand

Commit Message

Chrisanthus, Anitha July 28, 2021, 12:31 a.m. UTC
From: Edmund Dea <edmund.j.dea@intel.com>

Added macros for date and version

Fixes: 7f7b96a8a0a1 ("drm/kmb: Add support for KeemBay Display")
Signed-off-by: Edmund Dea <edmund.j.dea@intel.com>
---
 drivers/gpu/drm/kmb/kmb_drv.c | 8 ++++----
 drivers/gpu/drm/kmb/kmb_drv.h | 5 +++++
 2 files changed, 9 insertions(+), 4 deletions(-)

Comments

Sam Ravnborg July 28, 2021, 7:06 a.m. UTC | #1
Hi Anitha,
On Tue, Jul 27, 2021 at 05:31:14PM -0700, Anitha Chrisanthus wrote:
> From: Edmund Dea <edmund.j.dea@intel.com>
> 
> Added macros for date and version
> 
> Fixes: 7f7b96a8a0a1 ("drm/kmb: Add support for KeemBay Display")
> Signed-off-by: Edmund Dea <edmund.j.dea@intel.com>
Your s-o-b is missing.

I find it of no use with macros here, as the figures are not used
anywhere else, but whatever.

With s-o-b fixed:
Acked-by: Sam Ravnborg <sam@ravnborg.org>

> ---
>  drivers/gpu/drm/kmb/kmb_drv.c | 8 ++++----
>  drivers/gpu/drm/kmb/kmb_drv.h | 5 +++++
>  2 files changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/kmb/kmb_drv.c b/drivers/gpu/drm/kmb/kmb_drv.c
> index c0b1c6f99249..f54392ec4fab 100644
> --- a/drivers/gpu/drm/kmb/kmb_drv.c
> +++ b/drivers/gpu/drm/kmb/kmb_drv.c
> @@ -425,10 +425,10 @@ static const struct drm_driver kmb_driver = {
>  	.fops = &fops,
>  	DRM_GEM_CMA_DRIVER_OPS_VMAP,
>  	.name = "kmb-drm",
> -	.desc = "KEEMBAY DISPLAY DRIVER ",
> -	.date = "20201008",
> -	.major = 1,
> -	.minor = 0,
> +	.desc = "KEEMBAY DISPLAY DRIVER",
> +	.date = DRIVER_DATE,
> +	.major = DRIVER_MAJOR,
> +	.minor = DRIVER_MINOR,
>  };
>  
>  static int kmb_remove(struct platform_device *pdev)
> diff --git a/drivers/gpu/drm/kmb/kmb_drv.h b/drivers/gpu/drm/kmb/kmb_drv.h
> index 02e806712a64..ebbaa5f422d5 100644
> --- a/drivers/gpu/drm/kmb/kmb_drv.h
> +++ b/drivers/gpu/drm/kmb/kmb_drv.h
> @@ -15,6 +15,11 @@
>  #define KMB_MAX_HEIGHT			1080 /*Max height in pixels */
>  #define KMB_MIN_WIDTH                   1920 /*Max width in pixels */
>  #define KMB_MIN_HEIGHT                  1080 /*Max height in pixels */
> +
> +#define DRIVER_DATE			"20210223"
> +#define DRIVER_MAJOR			1
> +#define DRIVER_MINOR			1
> +
>  #define KMB_LCD_DEFAULT_CLK		200000000
>  #define KMB_SYS_CLK_MHZ			500
>  
> -- 
> 2.25.1
Thomas Zimmermann Aug. 4, 2021, 6:13 p.m. UTC | #2
Hi,

just a friendly reminder that branches that end with -fixes are for 
fixes that are required in upstream ASAP. I found this patch in 
drm-misc-fixes. It's not important, so it should have gone into 
drm-misc-next instead.

Best regards
Thomas

Am 28.07.21 um 02:31 schrieb Anitha Chrisanthus:
> From: Edmund Dea <edmund.j.dea@intel.com>
> 
> Added macros for date and version
> 
> Fixes: 7f7b96a8a0a1 ("drm/kmb: Add support for KeemBay Display")
> Signed-off-by: Edmund Dea <edmund.j.dea@intel.com>
> ---
>   drivers/gpu/drm/kmb/kmb_drv.c | 8 ++++----
>   drivers/gpu/drm/kmb/kmb_drv.h | 5 +++++
>   2 files changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/kmb/kmb_drv.c b/drivers/gpu/drm/kmb/kmb_drv.c
> index c0b1c6f99249..f54392ec4fab 100644
> --- a/drivers/gpu/drm/kmb/kmb_drv.c
> +++ b/drivers/gpu/drm/kmb/kmb_drv.c
> @@ -425,10 +425,10 @@ static const struct drm_driver kmb_driver = {
>   	.fops = &fops,
>   	DRM_GEM_CMA_DRIVER_OPS_VMAP,
>   	.name = "kmb-drm",
> -	.desc = "KEEMBAY DISPLAY DRIVER ",
> -	.date = "20201008",
> -	.major = 1,
> -	.minor = 0,
> +	.desc = "KEEMBAY DISPLAY DRIVER",
> +	.date = DRIVER_DATE,
> +	.major = DRIVER_MAJOR,
> +	.minor = DRIVER_MINOR,
>   };
>   
>   static int kmb_remove(struct platform_device *pdev)
> diff --git a/drivers/gpu/drm/kmb/kmb_drv.h b/drivers/gpu/drm/kmb/kmb_drv.h
> index 02e806712a64..ebbaa5f422d5 100644
> --- a/drivers/gpu/drm/kmb/kmb_drv.h
> +++ b/drivers/gpu/drm/kmb/kmb_drv.h
> @@ -15,6 +15,11 @@
>   #define KMB_MAX_HEIGHT			1080 /*Max height in pixels */
>   #define KMB_MIN_WIDTH                   1920 /*Max width in pixels */
>   #define KMB_MIN_HEIGHT                  1080 /*Max height in pixels */
> +
> +#define DRIVER_DATE			"20210223"
> +#define DRIVER_MAJOR			1
> +#define DRIVER_MINOR			1
> +
>   #define KMB_LCD_DEFAULT_CLK		200000000
>   #define KMB_SYS_CLK_MHZ			500
>   
>
Chrisanthus, Anitha Aug. 5, 2021, 11:53 p.m. UTC | #3
Thanks Thomas, I'll keep this in mind for the next patch.

> -----Original Message-----
> From: dri-devel <dri-devel-bounces@lists.freedesktop.org> On Behalf Of
> Thomas Zimmermann
> Sent: Wednesday, August 4, 2021 11:13 AM
> To: Chrisanthus, Anitha <anitha.chrisanthus@intel.com>; dri-
> devel@lists.freedesktop.org; Dea, Edmund J <edmund.j.dea@intel.com>
> Subject: Re: [PATCH 02/14] drm/kmb: Define driver date and major/minor
> version
> 
> Hi,
> 
> just a friendly reminder that branches that end with -fixes are for
> fixes that are required in upstream ASAP. I found this patch in
> drm-misc-fixes. It's not important, so it should have gone into
> drm-misc-next instead.
> 
> Best regards
> Thomas
> 
> Am 28.07.21 um 02:31 schrieb Anitha Chrisanthus:
> > From: Edmund Dea <edmund.j.dea@intel.com>
> >
> > Added macros for date and version
> >
> > Fixes: 7f7b96a8a0a1 ("drm/kmb: Add support for KeemBay Display")
> > Signed-off-by: Edmund Dea <edmund.j.dea@intel.com>
> > ---
> >   drivers/gpu/drm/kmb/kmb_drv.c | 8 ++++----
> >   drivers/gpu/drm/kmb/kmb_drv.h | 5 +++++
> >   2 files changed, 9 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/kmb/kmb_drv.c
> b/drivers/gpu/drm/kmb/kmb_drv.c
> > index c0b1c6f99249..f54392ec4fab 100644
> > --- a/drivers/gpu/drm/kmb/kmb_drv.c
> > +++ b/drivers/gpu/drm/kmb/kmb_drv.c
> > @@ -425,10 +425,10 @@ static const struct drm_driver kmb_driver = {
> >   	.fops = &fops,
> >   	DRM_GEM_CMA_DRIVER_OPS_VMAP,
> >   	.name = "kmb-drm",
> > -	.desc = "KEEMBAY DISPLAY DRIVER ",
> > -	.date = "20201008",
> > -	.major = 1,
> > -	.minor = 0,
> > +	.desc = "KEEMBAY DISPLAY DRIVER",
> > +	.date = DRIVER_DATE,
> > +	.major = DRIVER_MAJOR,
> > +	.minor = DRIVER_MINOR,
> >   };
> >
> >   static int kmb_remove(struct platform_device *pdev)
> > diff --git a/drivers/gpu/drm/kmb/kmb_drv.h
> b/drivers/gpu/drm/kmb/kmb_drv.h
> > index 02e806712a64..ebbaa5f422d5 100644
> > --- a/drivers/gpu/drm/kmb/kmb_drv.h
> > +++ b/drivers/gpu/drm/kmb/kmb_drv.h
> > @@ -15,6 +15,11 @@
> >   #define KMB_MAX_HEIGHT			1080 /*Max height in pixels */
> >   #define KMB_MIN_WIDTH                   1920 /*Max width in pixels */
> >   #define KMB_MIN_HEIGHT                  1080 /*Max height in pixels */
> > +
> > +#define DRIVER_DATE			"20210223"
> > +#define DRIVER_MAJOR			1
> > +#define DRIVER_MINOR			1
> > +
> >   #define KMB_LCD_DEFAULT_CLK		200000000
> >   #define KMB_SYS_CLK_MHZ			500
> >
> >
> 
> --
> Thomas Zimmermann
> Graphics Driver Developer
> SUSE Software Solutions Germany GmbH
> Maxfeldstr. 5, 90409 Nürnberg, Germany
> (HRB 36809, AG Nürnberg)
> Geschäftsführer: Felix Imendörffer
diff mbox series

Patch

diff --git a/drivers/gpu/drm/kmb/kmb_drv.c b/drivers/gpu/drm/kmb/kmb_drv.c
index c0b1c6f99249..f54392ec4fab 100644
--- a/drivers/gpu/drm/kmb/kmb_drv.c
+++ b/drivers/gpu/drm/kmb/kmb_drv.c
@@ -425,10 +425,10 @@  static const struct drm_driver kmb_driver = {
 	.fops = &fops,
 	DRM_GEM_CMA_DRIVER_OPS_VMAP,
 	.name = "kmb-drm",
-	.desc = "KEEMBAY DISPLAY DRIVER ",
-	.date = "20201008",
-	.major = 1,
-	.minor = 0,
+	.desc = "KEEMBAY DISPLAY DRIVER",
+	.date = DRIVER_DATE,
+	.major = DRIVER_MAJOR,
+	.minor = DRIVER_MINOR,
 };
 
 static int kmb_remove(struct platform_device *pdev)
diff --git a/drivers/gpu/drm/kmb/kmb_drv.h b/drivers/gpu/drm/kmb/kmb_drv.h
index 02e806712a64..ebbaa5f422d5 100644
--- a/drivers/gpu/drm/kmb/kmb_drv.h
+++ b/drivers/gpu/drm/kmb/kmb_drv.h
@@ -15,6 +15,11 @@ 
 #define KMB_MAX_HEIGHT			1080 /*Max height in pixels */
 #define KMB_MIN_WIDTH                   1920 /*Max width in pixels */
 #define KMB_MIN_HEIGHT                  1080 /*Max height in pixels */
+
+#define DRIVER_DATE			"20210223"
+#define DRIVER_MAJOR			1
+#define DRIVER_MINOR			1
+
 #define KMB_LCD_DEFAULT_CLK		200000000
 #define KMB_SYS_CLK_MHZ			500