Re: [PATCH v9 1/5] drm/sun4i: sun6i_mipi_dsi: Fix hsync_porch overflow

2019-03-06 Thread Jagan Teki
On Mon, Mar 4, 2019 at 9:24 PM Maxime Ripard wrote: > > On Sun, Mar 03, 2019 at 11:05:23PM +0530, Jagan Teki wrote: > > Loop N1 instruction delay for burst mode devices are computed > > based on horizontal sync and porch timing values. > > > > The current driver is using u16 type for computing

Re: [PATCH v9 1/5] drm/sun4i: sun6i_mipi_dsi: Fix hsync_porch overflow

2019-03-04 Thread Maxime Ripard
On Sun, Mar 03, 2019 at 11:05:23PM +0530, Jagan Teki wrote: > Loop N1 instruction delay for burst mode devices are computed > based on horizontal sync and porch timing values. > > The current driver is using u16 type for computing this hsync_porch > value, which would failed to fit within the u16

[PATCH v9 1/5] drm/sun4i: sun6i_mipi_dsi: Fix hsync_porch overflow

2019-03-03 Thread Jagan Teki
Loop N1 instruction delay for burst mode devices are computed based on horizontal sync and porch timing values. The current driver is using u16 type for computing this hsync_porch value, which would failed to fit within the u16 type for large sync and porch timings devices. This would result in