Skip to contentSkip to conversation

staging: sm7xx: Use kernel framebuffer mode setting

PATCH Superseded Javier M. Mellid 3 participants 6 messages May 6, 2011 – May 7, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: sm7xx: Use kernel framebuffer mode setting

This patch implements dynamic framebuffer mode setting.

Previous code works with mode setting in a hard code way. Previous hard code configuration is used as default configuration if dynamic mode setting or boot mode setting (via sm712vga_setup) is not used.

Tested with SM712 supporting 1024x600x16 as default hardware resolution.

Changes:

- Implement fb_check_var and fb_set_par callbacks
- Remove __maybe_unused decorator in function being used (sm712vga_setup)
- Minor cleanup on initialization structs related with mode settings
- Updated author copyright
- Updated TODO file

---
 drivers/staging/sm7xx/TODO     |    1 -
 drivers/staging/sm7xx/smtcfb.c |  112 +++++++++++++++++++++++++---------------
 2 files changed, 71 insertions(+), 42 deletions(-)
drivers/staging/sm7xx/TODO +0 -1
index a66d9e4..9750516 100644
@@ -4,7 +4,6 @@ TODO:
 - use kernel coding style
 - checkpatch.pl clean
 - refine the code and remove unused code
-- use kernel framebuffer mode setting instead of hard code
 - move it to drivers/video/sm7xx/ or make it be drivers/video/sm7xxfb.c
 
 Please send any patches to Greg Kroah-Hartman <[email protected]> and
drivers/staging/sm7xx/smtcfb.c +71 -41

161 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 16 lines · Javier M. Mellid

This patch implements dynamic framebuffer mode setting.

Previous code works with mode setting in a hard code way. Previous hard code configuration is used as default configuration if dynamic mode setting or boot mode setting (via sm712vga_setup) is not used.

Tested with SM712 supporting 1024x600x16 as default hardware resolution.

Changes:

- Implement fb_check_var and fb_set_par callbacks
- Remove __maybe_unused decorator in function being used (sm712vga_setup)
- Minor cleanup on initialization structs related with mode settings
- Updated author copyright
- Updated TODO file

Quoted 3 lines
---
 drivers/staging/sm7xx/TODO     |    1 -

This applies with fuzz, this leads me to believe that you didn't test this on the latest linux-next tree, right?

What did you make this patch against?

thanks,

greg k-h

#2 lore raw
Quoted 17 lines · Greg KH
Quoted 16 lines · Javier M. Mellid

This patch implements dynamic framebuffer mode setting.

Previous code works with mode setting in a hard code way. Previous hard code configuration is used as default configuration if dynamic mode setting or boot mode setting (via sm712vga_setup) is not used.

Tested with SM712 supporting 1024x600x16 as default hardware resolution.

Changes:

- Implement fb_check_var and fb_set_par callbacks
- Remove __maybe_unused decorator in function being used (sm712vga_setup)
- Minor cleanup on initialization structs related with mode settings
- Updated author copyright
- Updated TODO file

Quoted 8 lines
Quoted 3 lines
---
  drivers/staging/sm7xx/TODO     |    1 -

This applies with fuzz, this leads me to believe that you didn't test this on the latest linux-next tree, right?

What did you make this patch against?

Sorry, I didn't know. I made this patch against
linux-2.6 (bfd412db9e7b0d8f7b9c09d12d07aa2ac785f1d0) as I did with previous patches.

Testing was about creating, applying, compiling and running patch with kernel built from linux-2.6

Do you need a new patch against linux-next's master? I can redo this patch.

Sorry for the inconvenience.

javi

#3 lore raw
Quoted 27 lines · Javier Muñoz
Quoted 17 lines · Greg KH
Quoted 16 lines · Javier M. Mellid

This patch implements dynamic framebuffer mode setting.

Previous code works with mode setting in a hard code way. Previous hard code configuration is used as default configuration if dynamic mode setting or boot mode setting (via sm712vga_setup) is not used.

Tested with SM712 supporting 1024x600x16 as default hardware resolution.

Changes:

- Implement fb_check_var and fb_set_par callbacks
- Remove __maybe_unused decorator in function being used (sm712vga_setup)
- Minor cleanup on initialization structs related with mode settings
- Updated author copyright
- Updated TODO file

Quoted 8 lines
Quoted 3 lines
---
 drivers/staging/sm7xx/TODO     |    1 -

This applies with fuzz, this leads me to believe that you didn't test this on the latest linux-next tree, right?

What did you make this patch against?

Quoted 8 lines

Sorry, I didn't know. I made this patch against linux-2.6 (bfd412db9e7b0d8f7b9c09d12d07aa2ac785f1d0) as I did with previous patches.

Testing was about creating, applying, compiling and running patch with kernel built from linux-2.6

Do you need a new patch against linux-next's master? I can redo this patch.

Yes, please always make patches against linux-next as it includes any other pending patches that are in my tree.

thanks,

greg k-h

#5 lore raw

PATCH RESEND 1/1 staging: sm7xx: Use kernel framebuffer mode setting

In reply to Javier M. Mellid

This patch implements dynamic framebuffer mode setting.

Previous code works with mode setting in a hard code way. Previous hard code configuration is used as default configuration if dynamic mode setting or boot mode setting (via sm712vga_setup) is not used.

Tested with SM712 supporting 1024x600x16 as default hardware resolution.

Changes:

- Implement fb_check_var and fb_set_par callbacks
- Remove __maybe_unused decorator in function being used (sm712vga_setup)
- Minor cleanup on initialization structs related with mode settings
- Updated author copyright
- Updated TODO file

---
 drivers/staging/sm7xx/TODO     |    1 -
 drivers/staging/sm7xx/smtcfb.c |  112 +++++++++++++++++++++++++---------------
 2 files changed, 71 insertions(+), 42 deletions(-)
drivers/staging/sm7xx/TODO +0 -1
index b0f5318..7304021 100644
@@ -3,7 +3,6 @@ TODO:
 - 2D acceleration support
 - use kernel coding style
 - refine the code and remove unused code
-- use kernel framebuffer mode setting instead of hard code
 - move it to drivers/video/sm7xx/ or make it be drivers/video/sm7xxfb.c
 
 Please send any patches to Greg Kroah-Hartman <[email protected]> and
drivers/staging/sm7xx/smtcfb.c +71 -41

161 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#4 lore raw
In reply to Greg KH
Quoted 4 lines · Greg KH
Quoted 3 lines · Javier Muñoz
Quoted 2 lines · Greg KH
Quoted 1 line · Javier M. Mellid

This patch implements dynamic framebuffer mode setting.

[...]

Quoted 10 lines
Quoted 10 lines
Quoted 5 lines

This applies with fuzz, this leads me to believe that you didn't test this on the latest linux-next tree, right?

What did you make this patch against?

Sorry, I didn't know. I made this patch against linux-2.6 (bfd412db9e7b0d8f7b9c09d12d07aa2ac785f1d0) as I did with previous patches.

Quoted 7 lines
Quoted 4 lines

Testing was about creating, applying, compiling and running patch with kernel built from linux-2.6

Do you need a new patch against linux-next's master? I can redo this patch.

Yes, please always make patches against linux-next as it includes any other pending patches that are in my tree.

OK, just resending a new patch made against linux-next. Please, let me know if it applies seamless.

Thanks!

javi

Quoted 1 line

From 544f73e7e6f5e4e42f4384f82ee9b4bffe889efb Mon Sep 17 00:00:00 2001

From: Javier M. Mellid <[email protected]>
Date: Sat, 7 May 2011 01:57:43 +0200
Subject: [PATCH] staging: sm7xx: Use kernel framebuffer mode setting

This patch implements dynamic framebuffer mode setting.

Previous code works with mode setting in a hard code way. Previous hard code configuration is used as default configuration if dynamic mode setting or boot mode setting (via sm712vga_setup) is not used.

Tested with SM712 supporting 1024x600x16 as default hardware resolution.

Changes:

- Implement fb_check_var and fb_set_par callbacks
- Remove __maybe_unused decorator in function being used (sm712vga_setup)
- Minor cleanup on initialization structs related with mode settings
- Updated author copyright
- Updated TODO file

---
 drivers/staging/sm7xx/TODO     |    1 -
 drivers/staging/sm7xx/smtcfb.c |  112 +++++++++++++++++++++++++---------------
 2 files changed, 71 insertions(+), 42 deletions(-)
drivers/staging/sm7xx/TODO +0 -1
index b0f5318..7304021 100644
@@ -3,7 +3,6 @@ TODO:
 - 2D acceleration support
 - use kernel coding style
 - refine the code and remove unused code
-- use kernel framebuffer mode setting instead of hard code
 - move it to drivers/video/sm7xx/ or make it be drivers/video/sm7xxfb.c
 
 Please send any patches to Greg Kroah-Hartman <[email protected]> and
drivers/staging/sm7xx/smtcfb.c +71 -41

161 lines not on this page · raw message

Signature · 1 line
1.7.4.1