Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp332104rwd; Thu, 8 Jun 2023 01:01:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7zgaIxe3LP9JQufEQnD4mMxhPrGxi5D38ovltSENX9iMzE3k9RyrzLpoZUzl7BU6np5sPw X-Received: by 2002:a05:6a20:3552:b0:10e:e9a1:35c9 with SMTP id f18-20020a056a20355200b0010ee9a135c9mr3167696pze.60.1686211298307; Thu, 08 Jun 2023 01:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686211298; cv=none; d=google.com; s=arc-20160816; b=wQAM+IcNuSqhFprukKI3LOrWMWaawGwWhLPufJ0T3uK5qJiEX340lalKmw/muqiavk KG/uXKCABAtIkZfjWaB8qK3Q8R2N4mtv3ZXV0CYTGaFJa5KmkC3vOUeHjgszUgpCNroL 0UcBc+epZdRRlEh94wKaVutPJswh/OWdqG0+dL2ejMYwHNF5FlgxfewC85MWfQh9/OKX /YTn92irkRZbsNIz7qnPoS5o8zn97uI1vVd8Itt/NGaTo5gorokbGbxq4SaYxKWfq2P7 RJK9caL0HnlWn3BNoeruutlVPEg5oCpq7Xt1AOYX4TouKXkkBvV8C7nkjdWgwQStjBMq mqOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=TJAXrDTd/Nz/J5muH2M5Mg9/zWBy269fM8uuL6rXc60=; b=PR9Dv+obvAKaSeW+t2A9L0WgGFkQQKgIaQ0Dr8ITQjRucQkYlwGp+J8baLRV5oxdIm U8hc+jlUnqYepgl7EdHZkTsGQFAAaUb146SXKORRTGKrEet8zdT9vLShMt/6ld3e/b+Q axAsNcz10Esfj/3NjOLbBXSnRzT+GzezwXPPZuV/Vg62Nd1pVWrODp62hrF8Yv4MkwDt 2IaRGFhNmnPGN72kn2HirOX+g/3QWLDxpTNTMepuWI6pfrbXoAeTUFwH/xGbhgVzCOYp b1LDZ8Dx6qqyEwBvbNpKmyGEJAsG414WwEt9tQStnlYYUEGnnvEUpqjxQ7xPLG9qt0X2 rXlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DNPvf1Gp; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020aa79702000000b00662af36de1fsi457341pfg.167.2023.06.08.01.01.26; Thu, 08 Jun 2023 01:01:38 -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=@chromium.org header.s=google header.b=DNPvf1Gp; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233009AbjFHHoA (ORCPT + 99 others); Thu, 8 Jun 2023 03:44:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbjFHHnw (ORCPT ); Thu, 8 Jun 2023 03:43:52 -0400 Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8482B1BF9 for ; Thu, 8 Jun 2023 00:43:48 -0700 (PDT) Received: by mail-ua1-x931.google.com with SMTP id a1e0cc1a2514c-783f88ce557so113801241.3 for ; Thu, 08 Jun 2023 00:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1686210227; x=1688802227; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TJAXrDTd/Nz/J5muH2M5Mg9/zWBy269fM8uuL6rXc60=; b=DNPvf1GpogmxzgQvbWz98Sw8cq32qUMrFI5mTw675XCXzXY808txVThkEsqsrADeel F9nHLSSzDUyCasRGlwJSX1tNIXVd+1YibbRWCEnNHcT1edFxru9LzT0SLrcjT0XqJhgq 2uuPMP/rkP/DseGIkYrv0+Ucp9yJhSlN8zNb0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686210227; x=1688802227; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TJAXrDTd/Nz/J5muH2M5Mg9/zWBy269fM8uuL6rXc60=; b=gRomP7nJ0NzayVlN6Dow0iXN/i89IlsnYRoYR3VXrUX+qXwhTGhxtG/fOgkn6lEGbV YnBTtm+jeJ0bVOdZ6j70NUl2MUhxJf28VejCokmaQ1dQORWVpmahZAp68KagIhlJ/1HZ HrxnFNfKcv9xa4tf6Pj07xagUkUvdYp51GShBGaKImxsXrn4/7EGrnN/pnIw/XClmOZA FKk21Erw97B1CAz90QqKpqhYSObMRLa8rn5h7+r/rpK5t6bBzrFvgtjhKI3uI11OPg3o +pcB8B8/ta6Kw9Iy20bDeWgScQDXcDAhawYT2Zkqk6XD4+ge1h09SUG4Y0e8M3R29eu4 qrfw== X-Gm-Message-State: AC+VfDwPDT2jC/kS7jGrwHELYqyw3C5Bf1gOuu0Reh6VT/cS1V1bsZ8b WrDY0Hl74jug7zarOQfEuYAUBHzYIVi9DeADlu2u+w== X-Received: by 2002:a05:6102:104:b0:43b:2a58:8eb5 with SMTP id z4-20020a056102010400b0043b2a588eb5mr1781203vsq.20.1686210227541; Thu, 08 Jun 2023 00:43:47 -0700 (PDT) MIME-Version: 1.0 References: <20230607205714.510012-1-nfraprado@collabora.com> <20230607205714.510012-5-nfraprado@collabora.com> In-Reply-To: <20230607205714.510012-5-nfraprado@collabora.com> From: Chen-Yu Tsai Date: Thu, 8 Jun 2023 15:43:36 +0800 Message-ID: Subject: Re: [PATCH v2 4/5] clk: mediatek: mt8183: Add CLK_VDEC_ACTIVE to vdec To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Cc: Matthias Brugger , Hans Verkuil , kernel@collabora.com, AngeloGioacchino Del Regno , Conor Dooley , Krzysztof Kozlowski , Michael Turquette , Miles Chen , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Thu, Jun 8, 2023 at 4:57=E2=80=AFAM N=C3=ADcolas F. R. A. Prado wrote: > > Add the CLK_VDEC_ACTIVE clock to the vdec clock driver. This clock is > enabled by the VPU once it starts decoding. > > Signed-off-by: N=C3=ADcolas F. R. A. Prado > > --- > > Changes in v2: > - Added CLK_IGNORE_UNUSED flag > > drivers/clk/mediatek/clk-mt8183-vdec.c | 5 +++++ > include/dt-bindings/clock/mt8183-clk.h | 3 ++- > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/mediatek/clk-mt8183-vdec.c b/drivers/clk/mediate= k/clk-mt8183-vdec.c > index 513b7956cbea..03c4f1acfdb8 100644 > --- a/drivers/clk/mediatek/clk-mt8183-vdec.c > +++ b/drivers/clk/mediatek/clk-mt8183-vdec.c > @@ -27,6 +27,10 @@ static const struct mtk_gate_regs vdec1_cg_regs =3D { > GATE_MTK(_id, _name, _parent, &vdec0_cg_regs, _shift, \ > &mtk_clk_gate_ops_setclr_inv) > > +#define GATE_VDEC0(_id, _name, _parent, _shift) \ > + GATE_MTK_FLAGS(_id, _name, _parent, &vdec0_cg_regs, _shift, \ > + &mtk_clk_gate_ops_setclr, CLK_IGNORE_UNUSED) I think what you want is a read-only gate clock only used for reading back the status. The ops would only have .is_enabled. ChenYu