Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7473101rwd; Tue, 20 Jun 2023 01:32:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72TSXMqzXEV5R53wCeQbwckpoz3Y+nrgr6MSvY+L5w17RvO27ZQtdJBoRAeon2GomtP3c2 X-Received: by 2002:a05:6358:514e:b0:12f:2573:45b4 with SMTP id 14-20020a056358514e00b0012f257345b4mr5709306rwj.26.1687249951066; Tue, 20 Jun 2023 01:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687249951; cv=none; d=google.com; s=arc-20160816; b=ooXoTwA3ykKjyNGr3+jUYX2VdTUSc6gc+00jaM7AMx/yW+YZOFYV1Uvs7BUHNxHBxI VvyQ/08lNexwMBlv3BaPuHxb+J2FeGw2kVnhMJAi0VXg0Ff49Kcw+P3PdZUyd7K16tEJ xzDnz+bcFxK4CuaPFxMEXpCWKJl82ZBi7AvNEFw6w6LDo712buG5S/3BM8FdbMOelm8f +kakdQwGr92s5rkHohY1+1z2kFaguHMA/MI5l8RxCAFdSHC0GwZKhJVmkyRIAKqFTrsb p7tFzoFiku2l7MiE7jhGF85ghiH15Fq7d50tHvvx7JD++snmkUn3KJcM4IYAzxtLqcHm H5Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EHSKFoVsiXspD3/vsMgmsKXbXGD6LR/mYW6uVES6yFE=; b=yRLcuZUZcdEndyaxflLgrtNx8JZ5xa50NUNeS+dyZsjA1SknkAqe8+Lf3uIgLFgdXC pauArt853C4hLeIn6WNWqVTbADX2pf/6OhXzWmabANQWYJ+NjHQM17bcjA9lxYTs2q1I QYtmRSM/vKXxjZM5u8WpiP7hPDMyRN+dMYiUH8i4o9+AkpINPP2Tuz2D/6Q88z0BCPFH r/zpdG12bMczdIv6X/u7x12eHa/Bv99g1BSSOy8zPES76mYz4caIAVbU6X9b+IFFCqNx PGTg/9xGyOOBt3FggkqUPiGjNRMEwn2ZYvfinU8qL9W6vM+bY1yt8EM6GK+M+DI/fv58 zIpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TftgeGNo; 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=QUARANTINE sp=QUARANTINE 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 y184-20020a638ac1000000b00553854417ddsi1275566pgd.416.2023.06.20.01.32.16; Tue, 20 Jun 2023 01:32:31 -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=TftgeGNo; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbjFTHoP (ORCPT + 99 others); Tue, 20 Jun 2023 03:44:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231211AbjFTHnu (ORCPT ); Tue, 20 Jun 2023 03:43:50 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4467B1A7; Tue, 20 Jun 2023 00:43:34 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2] (unknown [IPv6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0AFB76602242; Tue, 20 Jun 2023 08:43:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1687247012; bh=EC8RhzFWNfZy8dsFV1foY8bZFeIESKFCvug6BRbkaM4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=TftgeGNohO/Odsdn5+P1zsXb/c8PQ0woD+hT9C6E3W9ZsWetSg9p0OyphKpMUW2rS X4ykNveWTI6bl20mE+4JQuaRiplDGBmFS5fmjbOKFrw+ytqmdy0B1jxX720MzaM9fr aVdRuKgy8fJxCISIkC4nZ1MiZxGSzOyLROJZ3myx7/CEicEKmFHVMJOFVuS91EOknS gNn6JchPQHztYffsRduIzUGiVNXzmncGd99n/qvbeoSk2dGRTlX8gC1P6EpiUMjVko ucxqyx2+brkr2P+kPhyiJYODrlAYk2FgdWXC+Dx4gwrl9gGCS4DMtz7hIiuB0rypcr QbCPhEUjUb4fQ== Message-ID: <88d39014-fd06-d801-fa10-387e1aa24e15@collabora.com> Date: Tue, 20 Jun 2023 09:43:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v3 4/6] media: mediatek: vcodec: Define address for VDEC_HW_ACTIVE To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Matthias Brugger , Hans Verkuil Cc: kernel@collabora.com, Andrew-CT Chen , Mauro Carvalho Chehab , Tiffany Lin , Yunfei Dong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20230620000349.2122191-1-nfraprado@collabora.com> <20230620000349.2122191-5-nfraprado@collabora.com> Content-Language: en-US From: AngeloGioacchino Del Regno In-Reply-To: <20230620000349.2122191-5-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Il 20/06/23 02:03, NĂ­colas F. R. A. Prado ha scritto: > The VDEC_HW_ACTIVE bit is located at offset 0, bit 4 of the VDECSYS > iospace. Only the mask was previously defined, with the address being > implicit. Explicitly define the address, and append a '_MASK' suffix to > the mask, to make accesses to this bit clearer. > > This commit brings no functional change. > > Signed-off-by: NĂ­colas F. R. A. Prado > > --- > > Changes in v3: > - Added this commit > > drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c | 4 ++-- > drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c | 4 ++-- > drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.h | 3 ++- > 3 files changed, 6 insertions(+), 5 deletions(-) > ..snip.. > diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.h b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.h > index 36faa8d9d681..caa2d0a48a90 100644 > --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.h > +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.h > @@ -12,7 +12,8 @@ > > #include "mtk_vcodec_drv.h" > > -#define VDEC_HW_ACTIVE 0x10 > +#define VDEC_HW_ACTIVE_ADDR 0x0 > +#define VDEC_HW_ACTIVE_MASK 0x10 #define VDEC_HW_ACTIVE_MASK BIT(4) ...because it's a bit, as you wrote in the commit description :-) Cheers, Angelo > #define VDEC_IRQ_CFG 0x11 > #define VDEC_IRQ_CLR 0x10 > #define VDEC_IRQ_CFG_REG 0xa4