fb: add early fb blank feature
v2 cover fb: add early fb blank feature
this patch adds early fb blank feature that a callback of lcd panel driver is called prior to specific fb driver's one. in case of MIPI-DSI based video mode LCD Panel, for lcd power off, the power off commands should be transferred to lcd panel with display and mipi-dsi controller enabled because the commands is set to lcd panel at vsync porch period. and in opposite case, the callback of fb driver should be called prior to lcd panel driver's one because of same issue. and also if fb_blank mode is changed to FB_BLANK_POWERDOWN then display controller would be off(clock disable) but lcd panel would be still on. at this time, you could see some issue like sparkling on lcd panel because video clock to be delivered to ldi module of lcd panel was disabled. this issue could occurs for all lcd panels.
the callback order is as the following:
at fb_blank function of fbmem.c
-> fb_notifier_call_chain(FB_EARLY_EVENT_BLANK)
-> lcd panel driver's early_set_power()
-> info->fbops->fb_blank()
-> spcefic fb driver's fb_blank()
-> fb_notifier_call_chain(FB_EVENT_BLANK)
-> lcd panel driver's set_power() -> fb_notifier_call_chain(FB_R_EARLY_EVENT_BLANK) ifinfo->fops->fb_blank() was failed.
fb_notifier_call_chain(FB_R_EARLY_EVENT_BLANK) would be called to revert the effects of previous FB_EARLY_EVENT_BLANK call. and note that if early_set_power() of lcd_ops is NULL then early fb blank callback would be ignored.
this patch is based on git repository below:git://github.com/schandinat/linux-2.6.git
branch: fbdev-next
commit-id: 2b7a905dd0d24d14a1099653ba63b7113a82fc54
Links to previous versions of the patchset:
v1: < http://lkml.indiana.edu/hypermail/linux/kernel/1109.1/00413.html >
Changelog v2:
fb: add fb early blank event instead of early_blank_mode variable.
fb notifier can know whether early blank mode is support or not
checking if early_set_power callback is NULL or not.
fb: add exception codes at fb_blank().
the effects of previous FB_EARLY_EVENT_BLANK call should be reverted
if info->fbops->fb_blank() was failed.
fb: add code clean.
Changelog RESEND:
fb: fixed condition.
this patch changes 'if (early_ret < 0)' to 'if (!early_ret)' offb_blank function.
these patch series are as the following:
[RESEND][PATCH v2 0/2] fb: add early fb blank feature.
introduce new early fb blank feature.
[RESEND][PATCH v2 1/2] lcd: add callbacks for early fb event blank support. [RESEND][PATCH v2 2/2] fb: add events for early fb event support.
Hi Andrew,
can you take care of this patch series?
It seems like Richard does no longer handle LCD/backlight stuff (why is he listed as maintainer?) and I really cannot say whether the patch to the LCD code is correct and therefore I do not intend to carry such a patch without any Ack. You can add an "Acked-by: Florian Tobias Schandinat <[email protected]>" to the fb patch 2/2 (well actually I think the order should be swapped as 1 does not compile without 2) but I ask you to handle it as well as it is useless without the other patch.
Thanks,
Florian Tobias Schandinat
Quoted 67 lines · Inki Dae
this patch adds early fb blank feature that a callback of lcd panel driver is called prior to specific fb driver's one. in case of MIPI-DSI based video mode LCD Panel, for lcd power off, the power off commands should be transferred to lcd panel with display and mipi-dsi controller enabled because the commands is set to lcd panel at vsync porch period. and in opposite case, the callback of fb driver should be called prior to lcd panel driver's one because of same issue. and also if
fb_blankmode is changed toFB_BLANK_POWERDOWNthen display controller would be off(clock disable) but lcd panel would be still on. at this time, you could see some issue like sparkling on lcd panel because video clock to be delivered to ldi module of lcd panel was disabled. this issue could occurs for all lcd panels.the callback order is as the following:
at
fb_blankfunction offbmem.c
->fb_notifier_call_chain(FB_EARLY_EVENT_BLANK)-> lcd panel driver's early_set_power() -> info->fbops->fb_blank() -> spcefic fb driver's fb_blank() -> fb_notifier_call_chain(FB_EVENT_BLANK) -> lcd panel driver's set_power()->
fb_notifier_call_chain(FB_R_EARLY_EVENT_BLANK)ifinfo->fops->fb_blank()was failed.
fb_notifier_call_chain(FB_R_EARLY_EVENT_BLANK)would be called to revert the effects of previousFB_EARLY_EVENT_BLANKcall. and note that ifearly_set_power()oflcd_opsis NULL then early fb blank callback would be ignored.this patch is based on git repository below:
git://github.com/schandinat/linux-2.6.git
branch: fbdev-next
commit-id:2b7a905dd0d24d14a1099653ba63b7113a82fc54Links to previous versions of the patchset:
v1: < http://lkml.indiana.edu/hypermail/linux/kernel/1109.1/00413.html >Changelog v2:
fb: add fb early blank event instead ofearly_blank_modevariable.
fb notifier can know whether early blank mode is support or not
checking ifearly_set_powercallback is NULL or not.fb: add exception codes at
fb_blank().
the effects of previousFB_EARLY_EVENT_BLANKcall should be reverted
ifinfo->fbops->fb_blank()was failed.fb: add code clean.
Changelog RESEND:
fb: fixed condition.
this patch changes 'if (early_ret< 0)' to 'if (!early_ret)' offb_blankfunction.these patch series are as the following:
[RESEND][PATCH v2 0/2] fb: add early fb blank feature.
introduce new early fb blank feature.
[RESEND][PATCH v2 1/2] lcd: add callbacks for early fb event blank support. [RESEND][PATCH v2 2/2] fb: add events for early fb event support.Signed-off-by Inki Dae <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi, Florian and Andrew.
Like below email threads, I had posted this patch last year but there is no any answer. as Florian mentioned, It seems like Richard does no longer handle LCD/backlight stuff so Andrew, could you please look into this patch set? And if there is no problem, please apply it to mainline.
Thanks,
Inki Dae.
Quoted 107 lines
-----Original Message-----
From: Florian Tobias Schandinat [mailto:[email protected]]
Sent: Sunday, October 30, 2011 8:24 PM
To: Andrew Morton
Cc: Inki Dae; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [RESENT][PATCH v2 0/2] fb: add early fb blank featureHi Andrew,
can you take care of this patch series?
It seems like Richard does no longer handle LCD/backlight stuff (why is he listed as maintainer?) and I really cannot say whether the patch to the LCD code
is correct and therefore I do not intend to carry such a patch without any Ack.
You can add an "Acked-by: Florian Tobias Schandinat <[email protected]>"
to the fb patch 2/2 (well actually I think the order should be swapped as 1 does
not compile without 2) but I ask you to handle it as well as it is useless without the other patch.Thanks,
Florian Tobias Schandinat
Quoted 1 line · Inki Dae
this patch adds early fb blank feature that a callback of lcd panel
driver
Quoted 1 line
is called prior to specific fb driver's one. in case of MIPI-DSI based
video
Quoted 4 lines
mode LCD Panel, for lcd power off, the power off commands should be transferred to lcd panel with display and mipi-dsi controller enabled because the commands is set to lcd panel at vsync porch period. and in opposite case, the callback of fb driver should be called prior to lcd
panel
Quoted 1 line
driver's one because of same issue. and also if
fb_blankmode is changedto
Quoted 1 line
FB_BLANK_POWERDOWNthen display controller would be off(clock disable)but
Quoted 2 lines
lcd panel would be still on. at this time, you could see some issue like sparkling on lcd panel because video clock to be delivered to ldi module
of
Quoted 11 lines
lcd panel was disabled. this issue could occurs for all lcd panels.
the callback order is as the following:
at
fb_blankfunction offbmem.c
->fb_notifier_call_chain(FB_EARLY_EVENT_BLANK)-> lcd panel driver's early_set_power() -> info->fbops->fb_blank() -> spcefic fb driver's fb_blank() -> fb_notifier_call_chain(FB_EVENT_BLANK) -> lcd panel driver's set_power()Quoted 4 lines
->
fb_notifier_call_chain(FB_R_EARLY_EVENT_BLANK)ifinfo->fops->fb_blank()was failed.
fb_notifier_call_chain(FB_R_EARLY_EVENT_BLANK)would be called to revertthe
Quoted 2 lines
effects of previous
FB_EARLY_EVENT_BLANKcall. and note that ifearly_set_power()oflcd_opsis NULL then early fb blank callback wouldbe
Quoted 10 lines
ignored.
this patch is based on git repository below:
git://github.com/schandinat/linux-2.6.git
branch: fbdev-next
commit-id:2b7a905dd0d24d14a1099653ba63b7113a82fc54Links to previous versions of the patchset:
v1: < http://lkml.indiana.edu/hypermail/linux/kernel/1109.1/00413.html >Quoted 7 lines
Changelog v2:
fb: add fb early blank event instead ofearly_blank_modevariable.
fb notifier can know whether early blank mode is support or not
checking ifearly_set_powercallback is NULL or not.fb: add exception codes at
fb_blank().
the effects of previousFB_EARLY_EVENT_BLANKcall should bereverted
Quoted 9 lines
if
info->fbops->fb_blank()was failed.fb: add code clean.
Changelog RESEND:
fb: fixed condition.
this patch changes 'if (early_ret< 0)' to 'if (!early_ret)' offb_blankfunction.Quoted 4 lines
these patch series are as the following:
[RESEND][PATCH v2 0/2] fb: add early fb blank feature.
introduce new early fb blank feature.
[RESEND][PATCH v2 1/2] lcd: add callbacks for early fb event blanksupport.
Quoted 7 lines
[RESEND][PATCH v2 2/2] fb: add events for early fb event support.
Signed-off-by Inki Dae <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev"in
Quoted 3 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html