Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2641571pxa; Mon, 17 Aug 2020 15:14:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7EOEhK45mA/NOsasJBK5TSwav0cULsG6R1kX2amqy6yZg8OVKlJxH7EHdRHmiu9WTyeoJ X-Received: by 2002:aa7:d58b:: with SMTP id r11mr16483896edq.302.1597702463866; Mon, 17 Aug 2020 15:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597702463; cv=none; d=google.com; s=arc-20160816; b=RJKBx7XtWpUT4BR3b4SMeB7+4v7DSmYzi7NFjOfYGdwo5K2oRqq/HI1hWG57vibqCw HG/TnzrfBx1+iAyNqAw9+1ma8KDdmOdWoJquxvr08yVNF1o2Wd0NCMqY4tRDcVoQAF3G UJ9nA2WJ8ZE0xesP/k8mYS9f72g7243nxSWfkNXXPehDIWkTpL0HBkXDz7tpw7Bp0aMl ezM6LY3zlUlj+KiZ+at8cS0jDsFYjPJO8j8fVy4PmxBMQ80kB1ngTCSwoUyRMxmG4998 PYx8cqfDENUeWtXOudBTtLE0fzqS4+lUE9s4NK6ZPnz0ulxn6VMonkkBdSZtshT8SSad 9c/w== 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=F/p2sZ3Xgio+fLUfrkLCzzCjXFi/vjKmrIthbvzbuFs=; b=BkEegplmyeqoCUbkthTaxnqbg34tTgBErno3Dsc+tqlkBxkzMvQpnUh52rw7xFA38N SZcB+UOlYqzKzS21gaJhQGioI7O5C6VorUOEJ+FAkA0UUeS8UYReVICwB4WoCXekbeOt 6DnP9lP9IKGgJHtIWI8hAf/VPml5nX7cjpc6B4DL3U9HUTe++Zl7ZHEETY15ZF/HJuGo RRtG+Zs2f41rYyru31mD3rUZoGqolBB3JVPGYyJYqbbSzj1hKKSR+diMA3GOw01Tmn7/ RBuYFYbu21gVWy/UYNHxXiP1ydiPQoNyeC8FgZHGU2tpJ9rq7pDiSNo/dXI5BecnXG8E squA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oSNjH4Up; 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 r26si7162025ejb.363.2020.08.17.15.13.59; Mon, 17 Aug 2020 15:14:23 -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=oSNjH4Up; 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 S2389209AbgHQQ4r (ORCPT + 99 others); Mon, 17 Aug 2020 12:56:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:51982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388294AbgHQQEW (ORCPT ); Mon, 17 Aug 2020 12:04:22 -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 0241A20748; Mon, 17 Aug 2020 16:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680257; bh=Og6BRER/IdheScylKyPnxC2vtten3NIln1YWxKEmPpQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oSNjH4Up325TXLBlza73L7RjbLsl9lB7EzKuF+ULtGG2UpN5TNNzeQLZjVsOfZ+gr 8ntORpEjxgZSMYZGoF7Ju8Pg2n5KgGNGwIaCZCAiAHSpZSlpPjiqDOWt4cuHGS8swA pVkEi8aNHp2OwG2ESJCOZFf+J02gpJrvG3qk1IYU= 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.4 114/270] drm/mipi: use dcs write for mipi_dsi_dcs_set_tear_scanline Date: Mon, 17 Aug 2020 17:15:15 +0200 Message-Id: <20200817143801.451201771@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@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 bd2498bbd74ac..b99f96dcc6f1e 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c @@ -1029,11 +1029,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