Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2657862pxa; Mon, 17 Aug 2020 15:44:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOKKOB5RqKNNfQdCN/q9ZORXTwcT5f3i5DEMYSf+JhFwZ3x5Oo3YupBMn+i8wXF/xgYqOe X-Received: by 2002:a17:906:a1d7:: with SMTP id bx23mr17715004ejb.273.1597704257976; Mon, 17 Aug 2020 15:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597704257; cv=none; d=google.com; s=arc-20160816; b=kz3bwOjf0EycrT545DROULDyDWnws5Zq35tpsNRSBozjx7/nRwZn311GgTfm6C4iaD lUTP7WEqtrV72HobWEvL2rhP43+cAqJnPxvaPMHpuVQCvEeSyLh9ibnTG7xOo1FeCGDX o0d8h+0WW3dG7Fqx2/Fcc13VlF0jP7jONjlCPLajqecIU1bTsDnm8yj68XjR/OVrlvyR VIwxQnhgP7yAhXQq1a3StriqM9TVC0cf3uv8xLIHAnnie9QyRdfphcx7i0DY8J2DH38i q6HFVf2AqXYu73YjL2WOo8hqTbvMxltiznMPtABV2xfE7L2YKZGPxT8rkzfHkVYw3X5A dIuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zm1kcIB14CNIr1pu9Tt+NERPSq1vF+kDxJIKakPad3s=; b=iIlK819nJixjEePK/Pp1sMAv9T3FEfGvdgvLx8qNz6zO3nMtTRhrnRqA139LLRnbnM 7cWm13iqD5KlBB1yRWW7CZ+hBSEGYedoe1VJwGAutAjVwUa5BjK1w6ERUit3FA41/Jmo 9pi4nyBk6PcV1udyPd3s5s6RVWdr6T1TcNL0uiwIkzwnZ57UmiGTXr1Nywu7ShiOFmv1 T5UKlmKvWYceNHhm8MFAr6q0ED28hWkSLiyy+vNDwPtnac4eB7WdD203bcupvDL4OHfq NVg94MxL1ONcTFQfdUin9ycQOgjeYvRF1AShwxRouPBm7e8q3V4y89Ghg44S/RweuzjF VaPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UcfqzE2G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si12445925edt.52.2020.08.17.15.43.54; Mon, 17 Aug 2020 15:44:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UcfqzE2G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403852AbgHQTAH (ORCPT + 99 others); Mon, 17 Aug 2020 15:00:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:60412 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730849AbgHQPsR (ORCPT ); Mon, 17 Aug 2020 11:48:17 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 18DC92075B; Mon, 17 Aug 2020 15:48:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597679295; bh=Ev2MKrV3RTdHkwWtyN15qSAmclYuXz3Qy4/2nqB5rpE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UcfqzE2GQ0WSExMMMq7uCOMmNHVmGJlFbyrG3Q+os0hz7JYf3cZJ7Ps/2c8yjIavi SrG0Rf5ofrhIm8VQ9JdSzcTw31nIbae6vewRzmlT5/Vn/YwAR35lUaf+/vnYNM54sV Vy0mqcpLk9EJ9qL5psgeDXf8i94v3h9ZtwKy8pyM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robert Chiras , Vinay Simha BN , Jani Nikula , Thierry Reding , Emil Velikov , Sam Ravnborg , Sasha Levin Subject: [PATCH 5.7 163/393] drm/mipi: use dcs write for mipi_dsi_dcs_set_tear_scanline Date: Mon, 17 Aug 2020 17:13:33 +0200 Message-Id: <20200817143827.524032519@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143819.579311991@linuxfoundation.org> References: <20200817143819.579311991@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Emil Velikov [ Upstream commit 7a05c3b6d24b8460b3cec436cf1d33fac43c8450 ] The helper uses the MIPI_DCS_SET_TEAR_SCANLINE, although it's currently using the generic write. This does not look right. Perhaps some platforms don't distinguish between the two writers? Cc: Robert Chiras Cc: Vinay Simha BN Cc: Jani Nikula Cc: Thierry Reding Fixes: e83950816367 ("drm/dsi: Implement set tear scanline") Signed-off-by: Emil Velikov Reviewed-by: Thierry Reding Signed-off-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20200505160329.2976059-3-emil.l.velikov@gmail.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_mipi_dsi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index 55531895dde6d..37b03fefbdf6f 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c @@ -1082,11 +1082,11 @@ EXPORT_SYMBOL(mipi_dsi_dcs_set_pixel_format); */ int mipi_dsi_dcs_set_tear_scanline(struct mipi_dsi_device *dsi, u16 scanline) { - u8 payload[3] = { MIPI_DCS_SET_TEAR_SCANLINE, scanline >> 8, - scanline & 0xff }; + u8 payload[2] = { scanline >> 8, scanline & 0xff }; ssize_t err; - err = mipi_dsi_generic_write(dsi, payload, sizeof(payload)); + err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_TEAR_SCANLINE, payload, + sizeof(payload)); if (err < 0) return err; -- 2.25.1