Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2468441rda; Wed, 25 Oct 2023 03:49:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIo/9TygUOaS6UQ6z0VPgpRkgYlGjD4oi7P4jvjR2FHNosIKgNSjkFJ5oQFB2YQmCvZpPH X-Received: by 2002:a0d:ea84:0:b0:5a7:bbca:8c9e with SMTP id t126-20020a0dea84000000b005a7bbca8c9emr14888017ywe.7.1698230993486; Wed, 25 Oct 2023 03:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698230993; cv=none; d=google.com; s=arc-20160816; b=Vexsnb1MHH2B0h4MlrtDRXmpzAaz7lzr72JBGG/4ttF//1mpCJQt5lpJMxJnA5GIjo n6diI1U12/dpI9NE9TQftNi/7zPMu51S8zAX8iO3OIZC0lJCUzAbVT0LCuQ5B9tlZ5+o Pudxit2vp1CVwEIM1YPw0G/pD8FvFUoNgtxNFlAF8E+zYfmMDE3Q1G2Yt6dzXVaNMxW0 VQacn6YUWDY9Uu+bOLeSR3CDrMbymgcvGWqAeaJYI4xFh/aG/kU6W2Wd46NpBWFCMCRu SpalQcnWAqQGwH6Xw9ENd2FFc1yy9xsU9+p9WECQozfhumen43CG9b2nKL5iGSNUbgEz vfaw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=dDSYRXKFo9Q8DK6w8Xqr/McePTA17zRpRnPw6IcBodY=; fh=PrbqFa1CXOv5HqFj4txvxLUhts8W1/Qsov4L0vVsOUY=; b=tOs09YHbVXcIo3LxvCYOYpUPQqf4YaVejInQ6MXcF4lYRlq96RFjPq2K4qT2z1Qg7c WtiMFRP0qXGwez01okxcyRu607qQUrQKDLsUHQoASuSxwG0MJzkC7eTqpHDAj+O21vlk kD9xncVUnDVXW7MskVaziAiiFdMxjv+t4Ebm9YhQAINTehMsYILj2Mfqa+8cjiPk4YGc +BgqgR6bYFveKZ6WA/LggN3BmtsSkizqU8xf801q9sxTUckQMoWX+kwpPXuxKqDEqjT9 aLLwE4eo1ctuLTzyZz9Hef3FXfKJdXU4KEqslVvNmgXePcc6E6GMIgjUpsJtAn8kC5SK uIgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="XMHQ/lu2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b20-20020a0dd914000000b0058dbca2d04asi11142841ywe.313.2023.10.25.03.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 03:49:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="XMHQ/lu2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3AFDC80E713B; Wed, 25 Oct 2023 03:49:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232789AbjJYKtv (ORCPT + 99 others); Wed, 25 Oct 2023 06:49:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232076AbjJYKtt (ORCPT ); Wed, 25 Oct 2023 06:49:49 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A168BBB for ; Wed, 25 Oct 2023 03:49:46 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id ADE27660731F; Wed, 25 Oct 2023 11:49:44 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698230985; bh=9Tz11dV1gF0knOECb4CmRHRhrmCR7btgyLRsf9oipxs=; h=From:To:Cc:Subject:Date:From; b=XMHQ/lu2klLU+B4oEWjXysMybAukvNjzrEsnN9hr53/HTq1YluCERrAL2wjoeNi74 l+FI7+M9qp+Fk3wBaZYqgI0JdLG0ZKj5hDYGBSYITpDGD6z2ILDTH/ERfv8lh++DUd evnPHO/MQhGpG2xJUOz/SKqre0ZipRzs5IXbbhPdx72nKGsfv5B9xDka9LjM7ZLEcm WgB/7Hw44JxYkEhHvaulUumQl3tCmQqduHEbWjy8hgqSf84Flsj5warXCP31p63nq5 M7zPPqiCAgwQshKuzoJ0I8RbMWEtUsKFUrTBXSJamJnGftGE2U9eccewFQYKfmkOAH 14SkEm/DXGrAg== From: AngeloGioacchino Del Regno To: chunkuang.hu@kernel.org Cc: p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, ck.hu@mediatek.com, nfraprado@collabora.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH] drm: mediatek: mtk_disp_gamma: Fix breakage due to merge issue Date: Wed, 25 Oct 2023 12:49:40 +0200 Message-ID: <20231025104940.140605-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 03:49:52 -0700 (PDT) While the commit that was sent to the mailing lists was fine, something happened during merge and the mtk_gamma_set() function got broken as a writel() was turned into a readl(). Fix that by changing that back to the expected writel(). Fixes: a6b39cd248f3 ("drm/mediatek: De-commonize disp_aal/disp_gamma gamma_set functions") Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_gamma.c b/drivers/gpu/drm/mediatek/mtk_disp_gamma.c index 2fada9d6c95f..52c752bc5f41 100644 --- a/drivers/gpu/drm/mediatek/mtk_disp_gamma.c +++ b/drivers/gpu/drm/mediatek/mtk_disp_gamma.c @@ -203,7 +203,7 @@ void mtk_gamma_set(struct device *dev, struct drm_crtc_state *state) /* Disable RELAY mode to pass the processed image */ cfg_val &= ~GAMMA_RELAY_MODE; - cfg_val = readl(gamma->regs + DISP_GAMMA_CFG); + writel(cfg_val, gamma->regs + DISP_GAMMA_CFG); } void mtk_gamma_config(struct device *dev, unsigned int w, -- 2.42.0