Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp885283pxt; Fri, 6 Aug 2021 16:59:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD43bB26F78ri5AUNpvZchZR6wsv9+xSK+QN00qh+VOLNqzh+XCfqEbjD6bPG1hk36YOBT X-Received: by 2002:a05:6e02:c62:: with SMTP id f2mr454692ilj.157.1628294348414; Fri, 06 Aug 2021 16:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628294348; cv=none; d=google.com; s=arc-20160816; b=u1d2uYGE7dazny6uZEQMGvz0H3dVQvWIE3d0wmahtuJcV+KCk/BtHBxDUf5XW3e0FM SlW2miZ/s2NbRpUuHeAbzAAQ1xuvhAJ243T3cgW1zFyBMxD/hXotmzL9O4aQgVcIYjC1 Q6P0uymOjLRS6dSGdfUOnCGCSRWRML/M19HLrFHlODIQmBsJAOHKffLX7TQjHUSGoXqv WhreOLkIij/OynsqqDosmSHkUBhymdKJH8n2grwG5sPXFJvMju4yXpI5LQBtUakD65rm tpranlDD/S+75rTEfSFSf1Ht2ysKY8WO0Tv469L6NC1E4wp6S8sDa1sqXjllr0SIDRSq rtNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=15u39C9AU1dfDs5j3hpj9y2GMV/sXbsMsRSxsZ2u198=; b=Wr3pHaFa6amlLnnT9cEIbdK5p6MK4iyiafsQn8AERbzjaVNg5dO5v5jgY0aagd+sXz oXNbDR6YRYCze1gWOj9NiIMmEhgznBtlGFIRXwOGOKcgFQy/3q7BpsZT9wrWUZirRMka ZyzLge/OrnjaKJvKeYFE7IT4D7HkNEANVbU20tdp+Jz2sK5ChYLjn1qTHGs5A4GyVAqu dI8RD37DO/NCF6iJ4PUjVxG+DUdQei5vP0nqtf7NXLg0GAiD3NZ0+YybshtXvHm3Tl3u Kv91Nl7W/wn+pDGcmyLcVFBOuAhghmWqVs2vKNjs+E+8PLtt3xoolAZAMPy3avx6FfE2 rx1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qehl2nYG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l10si10220076jap.106.2021.08.06.16.58.57; Fri, 06 Aug 2021 16:59:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qehl2nYG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241832AbhHFRth (ORCPT + 99 others); Fri, 6 Aug 2021 13:49:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:36712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231776AbhHFRtg (ORCPT ); Fri, 6 Aug 2021 13:49:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A8F1610E7; Fri, 6 Aug 2021 17:49:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628272160; bh=T7XbKNjz6J9bdpleiSzEHZfZGDNL3V/Rt8lKFm7vdVI=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=qehl2nYGu56NQ47YvZFb3tco6q5uF6+RgLz1Kn3KSngor7+15bJVjupCtFsHtlJm5 Jgniw7UjdxMvraFBDsq0orNLK92elvMPSHcGjXwkvMA+6fiVbHRqoYqwjc21b+awvV /pbrbeMp6W1j4eN3+GBjqMpOTRhW0DFMkiPReSNTSxyBEuKYi/CC0Jacy6WEGThrdH tPl/XiPEJxNKmoHE2GN/ndBSeBB64dLJsSgWzq5M4odHaFpnZK9wddB5lxSV552tt4 k3pGnMXJs13mqRPLQvDtprHOE5jMpGMNF4US0eUt02ghnSVyTw8g+2++lz3J2LXC4L mpkbSXSuftc0g== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1627972461-2627-5-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1627972461-2627-1-git-send-email-hsin-hsiung.wang@mediatek.com> <1627972461-2627-5-git-send-email-hsin-hsiung.wang@mediatek.com> Subject: Re: [PATCH v10 4/5] spmi: mediatek: Add support for MT8195 From: Stephen Boyd Cc: Hsin-Hsiung Wang , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, Project_Global_Chrome_Upstream_Group@mediatek.com, Henry Chen To: Hsin-Hsiung Wang , Matthias Brugger , Rob Herring Date: Fri, 06 Aug 2021 10:49:19 -0700 Message-ID: <162827215909.1975443.852277412377742323@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Hsin-Hsiung Wang (2021-08-02 23:34:20) > From: Henry Chen >=20 > Add spmi support for MT8195. >=20 > Signed-off-by: Henry Chen Missing Signed-off-by from hsin-hsiung.wang here > --- > changes since v9: > - No change. > --- > drivers/spmi/spmi-mtk-pmif.c | 90 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 90 insertions(+) >=20 > diff --git a/drivers/spmi/spmi-mtk-pmif.c b/drivers/spmi/spmi-mtk-pmif.c > index 94c45d46ab0c..0c320801c9d5 100644 > --- a/drivers/spmi/spmi-mtk-pmif.c > +++ b/drivers/spmi/spmi-mtk-pmif.c > @@ -348,6 +427,14 @@ static const struct pmif_data mt6873_pmif_arb =3D { > .soc_chan =3D 2, > }; > =20 > +static const struct pmif_data mt8195_pmif_arb[] =3D { This is an array of type pmif_data. > + { > + .regs =3D mt8195_regs, > + .spmimst_regs =3D mt8195_spmi_regs, > + .soc_chan =3D 2, > + }, > +}; > + > static int mtk_spmi_probe(struct platform_device *pdev) > { > struct pmif *arb; > @@ -444,6 +531,9 @@ static const struct of_device_id mtk_spmi_match_table= [] =3D { > { > .compatible =3D "mediatek,mt6873-spmi", > .data =3D &mt6873_pmif_arb, mt6873_pmif_arb is not an array, see the context header above. How does this work? Has this been tested? > + }, { > + .compatible =3D "mediatek,mt8195-spmi", > + .data =3D &mt8195_pmif_arb, > }, { > /* sentinel */ > }, > --=20 > 2.18.0 >