Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp830899rwb; Mon, 26 Sep 2022 06:27:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66f7u9Y/93i5GcLFMY7BB/2h8Vhr/cTQxupmId05AXS4LWmyaYUko72OlrDPjDRrrcqzpc X-Received: by 2002:a17:907:6d0d:b0:782:6d35:dbdd with SMTP id sa13-20020a1709076d0d00b007826d35dbddmr16938827ejc.30.1664198860973; Mon, 26 Sep 2022 06:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664198860; cv=none; d=google.com; s=arc-20160816; b=NtL16VKHhAciko8p3KsRZCi+XtV9lUbS/wT5fhRD+wslHGmZTZFUqI6SZqq4jR4Q8E qjQkpGXhCzM40lp9KE8H1uJn42QKPHix+F7neTM4TJcqOzzt/DW6a4MprXlsFmoMONOP yPWxT/xqMKEU0wQyJEDqNlEY9vi5/caQX5jXfPCzQZ1Ovr5kzT/KD8xnvlwy7pyVrXv2 9TogliJyNj5SemJp3Eu6yakGx+X7sbbISL2ZTdpYv6FINvioQSn4L8xIae7/E1olHR3X UVL4jCtC25USt6Va4UIeR7cKd6y+ughAan2kE64crg9JpfHTRFRyrmkynr8o0D8Qiylj o90w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BCA2iQBShqlnhnVxpNwMLDrmu+RxW+ubvkqYzmyk8Xw=; b=D2Uq6CHlsNcCb0pwy2vXee9rx5N9zaFqXJxNqP6Gv3jrFEEalDK5a0tu9NYFBGTP1R Jvj7eDi0myEOXEnuwD9tMeFlrifNr/H3mD8Dwq+FYMmgGais313SE0fkE2LNrieGb1P1 Bp2Q//gl2+9awSeFfsoB6muB5bkLql2ADwoLQN1kVuF8qLBgh9Y4wD97E1+bLgK4DLMf 2n1oHhQHnMdUDKbaqFDE6V89qGkdsmwQ8+0Na9vv3gtK7UWn/9mxB4lq4OHyiApA6t7B 20f47m7z/K0p6aUuTdEX30dOVS5f8QkvKCla/UbZ6NEJIQ/4uza9O6OvUD85gjzOEctV f68w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tLyUSJz8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn6-20020a17090794c600b0077cb9bc7918si15527634ejc.30.2022.09.26.06.27.01; Mon, 26 Sep 2022 06:27:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tLyUSJz8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238517AbiIZLqA (ORCPT + 99 others); Mon, 26 Sep 2022 07:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238393AbiIZLnT (ORCPT ); Mon, 26 Sep 2022 07:43:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CD4072B44; Mon, 26 Sep 2022 03:46:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DD75360BB7; Mon, 26 Sep 2022 10:46:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1302C433C1; Mon, 26 Sep 2022 10:46:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664189177; bh=MhokY/H6jfSXEfkQdM9jnFl2MffCeSY9uW8BvSqVvUc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tLyUSJz8L+JKxXxhV2qbAsxp6wRBty3VJ8pwmOo4zU59xT74g8VxpxFQiZfbPI1gM qXb93YWT2ZfNAgQipGVj+LF0WnVomrkTUBJTuiezrcGlE9WlMJ2E5+YrVYy0h8EPJE gmsiu9jOD8Q6Y92uAOTxociSBCPmKXssevpmj2LU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yongqiang Niu , Allen-KH Cheng , Matthias Brugger , Chun-Kuang Hu , Sasha Levin Subject: [PATCH 5.19 097/207] drm/mediatek: Fix wrong dither settings Date: Mon, 26 Sep 2022 12:11:26 +0200 Message-Id: <20220926100810.938068386@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100806.522017616@linuxfoundation.org> References: <20220926100806.522017616@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Allen-KH Cheng [ Upstream commit 87fd9294e63e8fa7532b5e65b534c3001c654ef8 ] The width and height arguments in the cmdq packet for mtk_dither_config() are inverted. We fix the incorrect width and height for dither settings in mtk_dither_config(). Fixes: 73d3724745db ("drm/mediatek: Adjust to the alphabetic order for mediatek-drm") Co-developed-by: Yongqiang Niu Signed-off-by: Yongqiang Niu Signed-off-by: Allen-KH Cheng Reviewed-by: Matthias Brugger Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220908141205.18256-1-allen-kh.cheng@mediatek.com/ Signed-off-by: Chun-Kuang Hu Signed-off-by: Sasha Levin --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index 5d7504a72b11..e244aa408d9d 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c @@ -151,7 +151,7 @@ static void mtk_dither_config(struct device *dev, unsigned int w, { struct mtk_ddp_comp_dev *priv = dev_get_drvdata(dev); - mtk_ddp_write(cmdq_pkt, h << 16 | w, &priv->cmdq_reg, priv->regs, DISP_REG_DITHER_SIZE); + mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs, DISP_REG_DITHER_SIZE); mtk_ddp_write(cmdq_pkt, DITHER_RELAY_MODE, &priv->cmdq_reg, priv->regs, DISP_REG_DITHER_CFG); mtk_dither_set_common(priv->regs, &priv->cmdq_reg, bpc, DISP_REG_DITHER_CFG, -- 2.35.1