<div><div dir="auto">Emil,</div></div><div dir="auto"><br></div><div dir="auto">Reply inline</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 5 May 2020 at 9:35 PM, Emil Velikov <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com" target="_blank">emil.velikov@collabora.com</a>><br>
<br>
The helper uses the MIPI_DCS_SET_TEAR_SCANLINE, although it's currently<br>
using the generic write. This does not look right.<br>
<br>
Perhaps some platforms don't distinguish between the two writers?<br>
<br>
Cc: Robert Chiras <<a href="mailto:robert.chiras@nxp.com" target="_blank">robert.chiras@nxp.com</a>><br>
Cc: Vinay Simha BN <<a href="mailto:simhavcs@gmail.com" target="_blank">simhavcs@gmail.com</a>><br>
Cc: Jani Nikula <<a href="mailto:jani.nikula@intel.com" target="_blank">jani.nikula@intel.com</a>><br>
Cc: Thierry Reding <<a href="mailto:treding@nvidia.com" target="_blank">treding@nvidia.com</a>><br>
Fixes: e83950816367 ("drm/dsi: Implement set tear scanline")<br>
Signed-off-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com" target="_blank">emil.velikov@collabora.com</a>><br>
---<br>
Robert, can you please test this against the only user - the Raydium<br>
RM67191 panel driver that you introduced.<br>
<br>
Thanks<br>
<br>
Vinay, can you confirm if this is a genuine typo or there's something<br>
really subtle happening.</blockquote><div dir="auto">this has been tested on nexus 7 with jdi panel. I did not understand what is the typo here?</div><div dir="auto">We need to use DC’s write instead of generic write?</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
---<br>
drivers/gpu/drm/drm_mipi_dsi.c | 6 +++---<br>
1 file changed, 3 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c<br>
index b96d5b4629d7..07102d8da58f 100644<br>
--- a/drivers/gpu/drm/drm_mipi_dsi.c<br>
+++ b/drivers/gpu/drm/drm_mipi_dsi.c<br>
@@ -1082,11 +1082,11 @@ EXPORT_SYMBOL(mipi_dsi_dcs_set_pixel_format);<br>
*/<br>
int mipi_dsi_dcs_set_tear_scanline(struct mipi_dsi_device *dsi, u16 scanline)<br>
{<br>
- u8 payload[3] = { MIPI_DCS_SET_TEAR_SCANLINE, scanline >> 8,<br>
- scanline & 0xff };<br>
+ u8 payload[2] = { scanline >> 8, scanline & 0xff };<br>
ssize_t err;<br>
<br>
- err = mipi_dsi_generic_write(dsi, payload, sizeof(payload));<br>
+ err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_TEAR_SCANLINE, payload,<br>
+ sizeof(payload));<br>
if (err < 0)<br>
return err;<br>
<br>
-- <br>
2.25.1<br>
<br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">regards,<br>vinaysimha</div>