Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2930946rwb; Mon, 15 Aug 2022 14:16:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR4bdoXGrGIwIpbXE28UznRg6L/7yU0qr+zD5W4X5ajwvZQrujA3hy4I2KCQOxiM7g2o8Xr9 X-Received: by 2002:a50:ed82:0:b0:43d:5334:9d19 with SMTP id h2-20020a50ed82000000b0043d53349d19mr15909938edr.232.1660598106905; Mon, 15 Aug 2022 14:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598106; cv=none; d=google.com; s=arc-20160816; b=1K7fIVlqbBZSsG8WY6kdI/LX2mdCvCjX2UozL210zVNFhul9pUiCNGEVObPkXUxB/T zfYbE7ZmnpSo7aw8P6MpZ7FRKVByhpxSiAdClH8iy8WsvXcHK6x2x/j/hC60ZK/EVwKA TXV2OH+SZ201s5Sq+FsXP3m+4eQqZOgMoSeGosVXNbpT8CD7Inz3udF8F28Sn4dkPc1H 5d56EPIL21xRwlSuc8WmAQbTv4HMPl/juVFqO+iBg4FIxJbFIa53chCy8TrJwUkPszzw 8ArKjaNafqWNE4gS4SBItwM4AO+ryDZe6Z95oe4FJpiUz/x8pwA4xycQ1eSTIgIwpWT4 fj4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MlGBsdvoggaTrJGXszw1hcqGWXfq9XwHLVYgtykLcqg=; b=borcGFkijkikGE+E2jrLdB3aJfJO3KuOiJ4jE18EYOf6E3PIX6OJP1kuOU7zmVw+C5 rj3H88JFzEWopZlDmnNoJWj2lxpvNNqLsqZWeCehR+/HY8zlpsA4LaKOrpzzZITt/nuG rHkxNztoN5Ua9BLxu5IodcFxleofB3aGUzpqM8/MbbycMZdjTjyCRrFZ9CTlDqkjKZKa Yqaz7ogGdybXaeyhLL0Yy+pOW3Z+Jmt/Ch/Sf5UEvyXhq4K00FgWSnE1yrCgpk3BC05f xt4/ih+6urinvcDlJjZNoITDSBXXHbONdraciG2eHHxfyFqsEAOYywF9qqCz5m2nTB9j OiyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cgyNNkAV; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n22-20020a056402061600b0043d7872f6easi7916498edv.118.2022.08.15.14.14.37; Mon, 15 Aug 2022 14:15:06 -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=@linuxfoundation.org header.s=korg header.b=cgyNNkAV; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232419AbiHOVEC (ORCPT + 99 others); Mon, 15 Aug 2022 17:04:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347331AbiHOVBw (ORCPT ); Mon, 15 Aug 2022 17:01:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BA03C991A; Mon, 15 Aug 2022 12:13:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 96019B81106; Mon, 15 Aug 2022 19:13:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F260BC433D6; Mon, 15 Aug 2022 19:13:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590823; bh=HoKtzkTygzstL7GC29SCUfat8VCVZu8TXTYJkxcN2bg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cgyNNkAVQBYQFNtqm2LjCzqhfdqFYM7YwH2Mcy9mUnH4G32kMquKddmUxfuJ86D4t n1plHC1aqFci2wvPhEE6LYCZZsepdckyFXRHQwpjUW40xFW95s6WVRFhCN5Gm5Wkca 13RhUPE2w2ipBr1OGd2Kh26qmWWlEoa6eqa4g2UA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yunfei Dong , Chen-Yu Tsai , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.18 0382/1095] media: mediatek: vcodec: Fix non subdev architecture open power fail Date: Mon, 15 Aug 2022 19:56:21 +0200 Message-Id: <20220815180445.490635507@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Yunfei Dong [ Upstream commit 083f54a7c9c66496b9d9f3c50dfdca24e6aa7012 ] According to subdev_bitmap bit value to open hardware power, need to set subdev_bitmap value for non subdev architecture. Fixes: c05bada35f01 ("media: mtk-vcodec: Add to support multi hardware decode") Signed-off-by: Yunfei Dong Reviewed-by: Chen-Yu Tsai Tested-by: Chen-Yu Tsai Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c index bd1ee9901da0..d5c94845ea42 100644 --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c @@ -393,6 +393,8 @@ static int mtk_vcodec_probe(struct platform_device *pdev) mtk_v4l2_err("Main device of_platform_populate failed."); goto err_reg_cont; } + } else { + set_bit(MTK_VDEC_CORE, dev->subdev_bitmap); } ret = video_register_device(vfd_dec, VFL_TYPE_VIDEO, -1); -- 2.35.1