[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7a6522ef-7cf7-808f-8be4-07cf5567d18a@collabora.com>
Date: Tue, 17 Jan 2023 13:49:44 +0100
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: Alexandre Mergnat <amergnat@...libre.com>,
Rob Herring <robh+dt@...nel.org>,
Qii Wang <qii.wang@...iatek.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Matthias Brugger <matthias.bgg@...il.com>
Cc: linux-i2c@...r.kernel.org, Rob Herring <robh@...nel.org>,
Fabien Parent <fparent@...libre.com>,
linux-arm-kernel@...ts.infradead.org,
Kevin Hilman <khilman@...libre.com>,
linux-kernel@...r.kernel.org, linux-mediatek@...ts.infradead.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH 4/4] i2c: i2c-mt65xx: add MT8365 SoC support
Il 17/01/23 09:49, Alexandre Mergnat ha scritto:
> From: Fabien Parent <fparent@...libre.com>
>
> Add support for I2C on MT8365 SoCs.
>
> Signed-off-by: Fabien Parent <fparent@...libre.com>
> Signed-off-by: Alexandre Mergnat <amergnat@...libre.com>
> ---
> drivers/i2c/busses/i2c-mt65xx.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c
> index d80e59340d97..2c9dbb42861a 100644
> --- a/drivers/i2c/busses/i2c-mt65xx.c
> +++ b/drivers/i2c/busses/i2c-mt65xx.c
> @@ -511,6 +511,19 @@ static const struct mtk_i2c_compatible mt8192_compat = {
> .max_dma_support = 36,
> };
>
> +static const struct mtk_i2c_compatible mt8365_compat = {
This is exactly the same as mt8168_compat... so you can avoid adding this one
and you can also avoid adding the compatible to this driver.
This means that you can get it working with a devicetree declaring
compatible = "mediatek,mt8365-i2c", "mediatek,mt8168-i2c";
like you're already doing and without any addition to this driver at all.
So, you can drop this commit.
Regards,
Angelo
Powered by blists - more mailing lists