Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1938039rwb; Fri, 19 Aug 2022 12:03:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Zr69Owm//FqPSI5YPuDBFCdt5Vm/5YXP1d+G7g8Edat71+VrHlWg5vqs0TCB2bI5Z48YJ X-Received: by 2002:a05:6a00:b87:b0:52f:35bc:f904 with SMTP id g7-20020a056a000b8700b0052f35bcf904mr9158469pfj.74.1660935796842; Fri, 19 Aug 2022 12:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660935796; cv=none; d=google.com; s=arc-20160816; b=SZ8nJdT/Qsd9d+zh7DJPG/frJVjBqGKyrJMf3CCjn7FSLP/rFghzpca5lnkY937/PV QMZYmr12mZIHzwfvKcQgpU7RHXgs9Uhwps1z342Uiceu2kZf6JQFmsfUjZ9CImUE7lV3 58D+8UYuI+VBSa7kf+7LCvPijRdhqQiqZkzNaNiEV0rDk8D77+zpDsvqQaCs90oi8+3P iVz/LUZsjnPplRu120hlzhs3nuc2bEadSO72ujLD+BWD1EvPkHFlyiMXrlx+EoExdTml XR0droqFMI4WJo3BKC+Zzk+dvteo6M3kjPj83eJKV/PbFtRms28/zIbMfMlCFKdtaobO 9Hyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ldPR8SPOd9mlNUaQYSK+Gq96cyHsu+cvJybydre7Q38=; b=G+speIZRUzfIvEnVmrNchM/rqH6L6uB6LGwVM3WFEVZ+ap4NjI9GpldxjZ4Z61ON+V bb8F9ka2R5AZrF0u7ksCtV/dCgOUnWdFW+AfZJ4bcWOMpWERA1ecpCEdv3c2IUl25nwW tF2JQVANRua/1RrrWCVb65809eU4GkX2gJsv04F0pCL43QO5M4TuvORL08cce7w4TcTg uB1NzcB29PJW44VN4lPlLXLvWeksWIhaiZrCvrBqQ3KEyu/NQPiFB8EwAs7uMKyC0luV RO2fGgJE+NjX3qzSzU0Tu0ZrOeLTUoJoCIETzyaBa45Mcx9hBneSgQPDJuR6Fm1C0ovg OihA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NnetjEoq; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020a170902ccc500b0016d9d416df3si4469797ple.574.2022.08.19.12.03.02; Fri, 19 Aug 2022 12:03:16 -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=@collabora.com header.s=mail header.b=NnetjEoq; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349924AbiHSSyK (ORCPT + 99 others); Fri, 19 Aug 2022 14:54:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349705AbiHSSyJ (ORCPT ); Fri, 19 Aug 2022 14:54:09 -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 6E64BA5731 for ; Fri, 19 Aug 2022 11:54:07 -0700 (PDT) Received: from notapiano (unknown [70.107.189.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 240DC6601DC5; Fri, 19 Aug 2022 19:54:04 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1660935245; bh=K0YLkb0y8E7IJjuV74dUqvmMPhGIIPSjh8y+QKSzuUo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NnetjEoq0ZAPXfWQ9ci9nv05AU+ZorGb7w0REYn9xsxSKYfG+1B4H7QoC6Ee2r3oo eHx9NNBXej7nZ7pvMxtwRVBkhVA+/gvbWUmAk4NvzaifkQNUyfdZ8MGZtDWsif7nGk CS1hzqBGqDlZdmPpzSNFQ4A2CIMJYO+qPZHVIOlHRd8K/GLCzpVKAUnu9z5ZUEXTKp I55hbtVYs7VwTxzDdPQ4oJN830xsylunDdRgCia0JXtMqGElmaG9ctyR1FxGrWCWqK RMyvuMFRD9Gbx+8K3NfvyF1oRrlsi/12sDrqsHUM0v14tBtHfkwjVBs9/4z9fML1jU TR6pxUAL4Ojfw== Date: Fri, 19 Aug 2022 14:54:00 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: xinlei.lee@mediatek.com Cc: chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, matthias.bgg@gmail.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com, Jitao Shi Subject: Re: [PATCH v2,1/2] soc: mediatek: Add mmsys func to adapt to dpi output for MT8186 Message-ID: <20220819185400.aokd53xln6rmc3xk@notapiano> References: <1659693461-27057-1-git-send-email-xinlei.lee@mediatek.com> <1659693461-27057-2-git-send-email-xinlei.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1659693461-27057-2-git-send-email-xinlei.lee@mediatek.com> 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, T_SCC_BODY_TEXT_LINE 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 Hi Xinlei, On Fri, Aug 05, 2022 at 05:57:40PM +0800, xinlei.lee@mediatek.com wrote: > From: Xinlei Lee > > Add mmsys func to manipulate dpi output format config for MT8186. func -> function config -> configuration > > Signed-off-by: Jitao Shi Same thing about the co-developed-by. > Signed-off-by: Xinlei Lee > > --- > drivers/soc/mediatek/mt8186-mmsys.h | 1 + > drivers/soc/mediatek/mtk-mmsys.c | 8 ++++++++ > include/linux/soc/mediatek/mtk-mmsys.h | 3 +++ > 3 files changed, 12 insertions(+) > > diff --git a/drivers/soc/mediatek/mt8186-mmsys.h b/drivers/soc/mediatek/mt8186-mmsys.h > index eb1ad9c37a9c..620c062e4893 100644 > --- a/drivers/soc/mediatek/mt8186-mmsys.h > +++ b/drivers/soc/mediatek/mt8186-mmsys.h > @@ -3,6 +3,7 @@ > #ifndef __SOC_MEDIATEK_MT8186_MMSYS_H > #define __SOC_MEDIATEK_MT8186_MMSYS_H > > +#define MT8186_DPI_OUTPUT_FORMAT 0X400 0x400 (lowercase "x") > #define MT8186_MMSYS_OVL_CON 0xF04 > #define MT8186_MMSYS_OVL0_CON_MASK 0x3 > #define MT8186_MMSYS_OVL0_2L_CON_MASK 0xC > diff --git a/drivers/soc/mediatek/mtk-mmsys.c b/drivers/soc/mediatek/mtk-mmsys.c > index 9bbf0103b225..0e71a3296046 100644 > --- a/drivers/soc/mediatek/mtk-mmsys.c > +++ b/drivers/soc/mediatek/mtk-mmsys.c > @@ -252,6 +252,14 @@ void mtk_mmsys_ddp_disconnect(struct device *dev, > } > EXPORT_SYMBOL_GPL(mtk_mmsys_ddp_disconnect); > > +void mtk_mmsys_ddp_dpi_confing(struct device *dev, u32 mask, u32 val, confing -> config But I'd add something to the name to indicate it handles specifically the format: mtk_mmsys_ddp_dpi_fmt_config Thanks, N?colas