From patchwork Thu Oct 20 07:17:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TW91ZHkgSG8gKOS9leWul+WOnyk=?= X-Patchwork-Id: 398 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp110508wrs; Thu, 20 Oct 2022 00:19:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5cvxKyacQKAibKziYceAL/Ln6x7kinUP4+ne/Vnwcg91QGLTNUy144Zb24oKU/a5nM/Bbm X-Received: by 2002:a17:907:c18:b0:78d:8577:7c30 with SMTP id ga24-20020a1709070c1800b0078d85777c30mr9258139ejc.413.1666250380044; Thu, 20 Oct 2022 00:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666250380; cv=none; d=google.com; s=arc-20160816; b=onmGV9FFwW/terOWtoDaPyNFzr+nfHUtISP+urcpQXISQ0T3WYnsYc4UwSdgBFpifK ORTchANl5lf9wYOYnpTo9OGdIiT4J/PeF40LmBsAdsyKFNNTIy9WcSK/LhNv0FBUARnK en2OP0Dd4tfpusJdSP3ttkNgyWFesb8e2WCjH16PGBXSNJQjniTO0AJjU5Pa0mqcU/4m x8t0vIh25k2nWSx8zgl7zwnrZet4R2ARARcgcqquQo9thBCYLsVzgxznU4eVKPmh/w2X q4V4Hb/bEUe0VuFiRqskwc3flqHAC3pmCDiayEY5X1i9IkrZq7bckCvN88iYnoZJk1AI KOxA== 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 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.19.14; Thu, 20 Oct 2022 00:19:40 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747190158522286727?= X-GMAIL-MSGID: =?utf-8?q?1747190158522286727?= 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(-)