Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3044417rwb; Mon, 15 Aug 2022 16:48:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR7UR1aYDchDS0Uexh8GTP5GZzzXZv83cNjgAdtXo+qfsHYmuF7nuOYn+D6alrRH3/KxG4KQ X-Received: by 2002:a17:902:da89:b0:170:a235:5993 with SMTP id j9-20020a170902da8900b00170a2355993mr18830535plx.94.1660607292334; Mon, 15 Aug 2022 16:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660607292; cv=none; d=google.com; s=arc-20160816; b=SJso94FJ6TqGP2Rt79PxlhovHA9vhnujrqSgPnwFB6zoPSLi7/OTSeBHGqQwfbuEx6 TWCTGnzaL4FpRJ2q1I1LK1q0/pT67BinvC2mYyzshADRUroLAtFhNoOh4JLGPJuhcAMJ MrnqP/xM8jRsXAZQKh5y66tWz6OTyYjlpkxnJ3/DXlps8ZscvEAwIOd518KoGYoI/uyI dg0qN1WwMmuU70XuSQdsS/SETIKkLvL3G9JoR+nOJMwlV3VPNjHLdIT0rLZFE9Owwr6q J4dH+7LLAAUwIAeR+mKkGW9PeDdWHP4GHK6zaGN3QkdxMxBYEArabuh4/u5MrLut4s5J J3SA== 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=2/LjMfQVbGfDLFusmRD6HQ8XpKwCZt5m5YUHjYrbJ4I=; b=YmOLcnKE/BHk5faPj9CeFgV8XIAFSjdaxCHbSypBT4ZOCDJHYcEXYZ3Otj0oVv5OQk ewS0Kxd3qlJI3kJ+fGZnzL8snJScn88nqNLMGgwjt94Twh+7puPogAJltJQWi57wTah5 fXvs6DEgO4ut6BF+fxN1Emx3jqCxAmOnH0HV7fcUGbUwFaZKHqHXCELYO2gbsteTrM4l IF+x0gdt5WT1ivd5tvToXj/wt8Wyn+DsV1FDl5aRmLrrHdlreIyr43CYUDcM476+lUNd 1QxtEAP1zpsJdo7lIPaKDtJyNvlIkzna8rk7WruVLW+e6jIPlIb0z3sc/sloexsX0Nkm v4TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=y2tBSokM; 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 134-20020a63018c000000b0041296d838c6si11105740pgb.105.2022.08.15.16.48.00; Mon, 15 Aug 2022 16:48:12 -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=y2tBSokM; 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 S1354533AbiHOXpt (ORCPT + 99 others); Mon, 15 Aug 2022 19:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354306AbiHOXlu (ORCPT ); Mon, 15 Aug 2022 19:41:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32F0E2BB1E; Mon, 15 Aug 2022 13:12:03 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C3FB860B9B; Mon, 15 Aug 2022 20:12:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C697FC433D6; Mon, 15 Aug 2022 20:12:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594322; bh=WwVJv/m6SIj3U5ym2807dfymP7Wgx7pdU7xSjgNIU38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y2tBSokME5AXd44j5CH+9aF0LvDu8EPAplZ7zXqSS+Kd3iQ+ddr52BIrFj+6PIYRU ergnKsvBwGn90WDaM60xfPOjBr2ua5Gn2bucfVu0fb21/W7TQjOsUISLCnPQAHII6c 0iWZDfpW0NIT4tL7sb748KV5AF0jSbanwat8AydM= 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.19 0405/1157] media: mediatek: vcodec: Fix non subdev architecture open power fail Date: Mon, 15 Aug 2022 19:56:01 +0200 Message-Id: <20220815180455.862791814@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 95a53385a61c..99d7b15f2b9d 100644 --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c @@ -388,6 +388,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