[PATCH v3 10/11] [ARM] tegra: Add framebuffer driver
Jaya Kumar
jayakumar.lkml at gmail.com
Mon Jun 14 20:16:25 EDT 2010
On Tue, Jun 15, 2010 at 7:59 AM, Jaya Kumar <jayakumar.lkml at gmail.com> wrote:
> On Tue, Jun 15, 2010 at 5:10 AM, Erik Gilling <konkers at android.com> wrote:
>
>> + if (tegra_fb_wait_for_event(tegra_fb, HZ/10, DC_INT_FRAME_END))
>
> I still didn't follow how tegra_fb_activate is using the -ETIMEDOUT
> return value from the wait, it seems like it is just ignored. You are
> also doing stuff like HZ/10 and you might prefer to use
> msecs_to_jiffies.
>
I was unclear above. I mean the following code:
+ while (tegra_fb_readl(tegra_fb, DC_CMD_STATE_CONTROL) & 3) {
+ vsync_count++;
+ if (tegra_fb_wait_for_event(tegra_fb, HZ/10, DC_INT_FRAME_END))
+ break;
+ }
+ if (unlikely(vsync_count > 1))
+ pr_warning("%s: waited for %d vsyncs\n", __func__, vsync_count);
It seems to me like the timeout from wait_for_event isn't propagated
back upwards. Maybe it isn't needed but the way the code handles this
seems confusing to me.
Thanks,
jaya
More information about the linux-arm-kernel
mailing list