Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp444677rwi; Thu, 20 Oct 2022 00:20:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7wuazp6YZWlz6vLptuJbx3bhIIh6KiQgCzxWD778Wes9yA4vG4F3xxWJnPJCfVX1b6FeIJ X-Received: by 2002:a17:906:fe49:b0:73d:70c5:1a52 with SMTP id wz9-20020a170906fe4900b0073d70c51a52mr9861393ejb.469.1666250434643; Thu, 20 Oct 2022 00:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666250434; cv=none; d=google.com; s=arc-20160816; b=b5d+TRBrlUT+oDJHs/kOgDZ2lJV2tYEAiMKNA9vOGuzuMVm5ld6zgDuJsX07LfKj3+ elJN7be/UbqZm4E78BQjkzgpp2ONrVwituEWS5s4dfCy2BYz0u6ZyccN5ZM6ktsEXX8M 3gqqnWnlrPycxRuj3rq7T+fyaEyqhmlwGOzKdNgMjIyPeOdndkw1GGgc1u7ZbNt2KN9j P3LWEBTUtu1+kxMRznrS3Wsd5lZVhWRj0xhFxrFxQO7IeBWBoEZHM42AEFUeZqsbeZd2 L7VEibw725v6WIbM4nmc9kcMbyABS9QPd1MdW3gpIeg1PlaIW+TMCnTJW7x+RKwA8deE qNwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=k3wALfF9tSu/uQt3PB2kfmMFgLVgF9FHrguRjLAl7tE=; b=iFHjPaFWw13FCsbbfTXZSMdbIUQ3y92jJ1f+ZX3I6MIUVpw82vrhxQJa9LZfTxDQHg j+7k/xwN5vQgBTSe4Dt263GdSbpGxhzohxSQbhSD0FjuleSZALwvmnbcAlqUI3cft6Cn iwvrtbpqtTtLA3U/Grzr5Pet70dIlsT4Ru2tTpWvdIYbjwNo7unC4yq2viS9jYjFUJFq tvECsQ87zZFpfHOfkdErzQh5ZfzKlftvFIuUUo4jWy/RrysH6M6HjqGzILZC+fxFzG86 NmRXTIuuNf8zkYQxRcmmyu3APY0BA7SWiwfdOc76+IkW1nidfKclQGqYkqqS/bZgIXPo 6rDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PN3JbO9T; 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=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a1709066bc800b0073d61f9a7b6si12728663ejs.263.2022.10.20.00.20.07; Thu, 20 Oct 2022 00:20:34 -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=@mediatek.com header.s=dk header.b=PN3JbO9T; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbiJTHSv (ORCPT + 99 others); Thu, 20 Oct 2022 03:18:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbiJTHSd (ORCPT ); Thu, 20 Oct 2022 03:18:33 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 026081119CC; Thu, 20 Oct 2022 00:18:16 -0700 (PDT) X-UUID: c7ecf2bc78014888a779a2e7cd010958-20221020 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=k3wALfF9tSu/uQt3PB2kfmMFgLVgF9FHrguRjLAl7tE=; b=PN3JbO9TEs//MXcwtV9FqXF3SMT4WPkUuLg1gKf42gQPPMnLXKJBbcV1G9bHvda1kGQOQfYuEqire5GvncplIiy2sMidd7ebj8Y7QYM9+S4ZG2Al18M8elVF4gMcl8I3QX8jJeCy0ymmopFPvY5sD9DXozHOSXo7LUtDPosnUSQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:ee553859-6a14-4662-a602-68066d9113af,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:62cd327,CLOUDID:c2d065a4-ebb2-41a8-a87c-97702aaf2e20,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: c7ecf2bc78014888a779a2e7cd010958-20221020 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 285565856; Thu, 20 Oct 2022 15:18:02 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Thu, 20 Oct 2022 15:18:01 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 20 Oct 2022 15:18:01 +0800 From: Moudy Ho To: Mauro Carvalho Chehab , Matthias Brugger , Hans Verkuil CC: Chun-Kuang Hu , , , , , Moudy Ho Subject: [PATCH v3 0/3] Fix error handling for MDP3 Date: Thu, 20 Oct 2022 15:17:57 +0800 Message-ID: <20221020071800.20487-1-moudy.ho@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,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 Changes since v2: - Rebase on v6.1-rc1. - Merge with the following series: [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=683526 Changes since v1: - Rename goto label in mdp_comp_clock_on() from "err_unwind" to "err_revert" to make more readable. Hi, This series fixes some error handling in MDP3 in response to the bug report submitted by Dan Carpenter (Message ID = YxB1E00e8D6P4W2e@kili) Moudy Ho (3): media: platform: mtk-mdp3: fix error handling in mdp_cmdq_send() media: platform: mtk-mdp3: fix error handling about components clock_on media: platform: mtk-mdp3: fix error handling in mdp_probe() .../platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 51 ++++++++++--------- .../platform/mediatek/mdp3/mtk-mdp3-comp.c | 24 ++++++--- .../platform/mediatek/mdp3/mtk-mdp3-core.c | 15 +++--- 3 files changed, 53 insertions(+), 37 deletions(-) -- 2.18.0