[<prev] [next>] [day] [month] [year] [list]
Message-ID: <f155664a-b612-0293-49d3-3ecbcb154f84@gmail.com>
Date: Mon, 25 Apr 2022 12:46:33 +0200
From: Matthias Brugger <matthias.bgg@...il.com>
To: "jason-jh.lin" <jason-jh.lin@...iatek.com>,
Chun-Kuang Hu <chunkuang.hu@...nel.org>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
Cc: linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
CK Hu <ck.hu@...iatek.com>,
Rex-BC Chen <rex-bc.chen@...iatek.com>,
Nancy Lin <nancy.lin@...iatek.com>,
Singo Chang <singo.chang@...iatek.com>,
Project_Global_Chrome_Upstream_Group@...iatek.com
Subject: Re: [PATCH] soc: mediatek: mutex: remove mt8195 MOD0 and SOF0
definition
On 25/04/2022 05:45, jason-jh.lin wrote:
> From: "Jason-JH.Lin" <jason-jh.lin@...iatek.com>
>
> Using mt8183 MDO0 and SOF0 definition instead of creating new one for
> mt8195.
>
> Fixes: 8fdb61f1933a ("soc: mediatek: add mtk-mutex support for mt8195 vdosys0")
> Signed-off-by: Jason-JH.Lin <jason-jh.lin@...iatek.com>
Applied thanks!
> ---
> drivers/soc/mediatek/mtk-mutex.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c
> index 9184684baf1d..981d56967e7a 100644
> --- a/drivers/soc/mediatek/mtk-mutex.c
> +++ b/drivers/soc/mediatek/mtk-mutex.c
> @@ -17,9 +17,6 @@
> #define MT8183_MUTEX0_MOD0 0x30
> #define MT8183_MUTEX0_SOF0 0x2c
>
> -#define MT8195_DISP_MUTEX0_MOD0 0x30
> -#define MT8195_DISP_MUTEX0_SOF 0x2c
> -
> #define DISP_REG_MUTEX_EN(n) (0x20 + 0x20 * (n))
> #define DISP_REG_MUTEX(n) (0x24 + 0x20 * (n))
> #define DISP_REG_MUTEX_RST(n) (0x28 + 0x20 * (n))
> @@ -422,8 +419,8 @@ static const struct mtk_mutex_data mt8192_mutex_driver_data = {
> static const struct mtk_mutex_data mt8195_mutex_driver_data = {
> .mutex_mod = mt8195_mutex_mod,
> .mutex_sof = mt8195_mutex_sof,
> - .mutex_mod_reg = MT8195_DISP_MUTEX0_MOD0,
> - .mutex_sof_reg = MT8195_DISP_MUTEX0_SOF,
> + .mutex_mod_reg = MT8183_MUTEX0_MOD0,
> + .mutex_sof_reg = MT8183_MUTEX0_SOF0,
> };
>
> struct mtk_mutex *mtk_mutex_get(struct device *dev)
Powered by blists - more mailing lists