Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp652451pxb; Tue, 5 Apr 2022 17:23:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW7vp9g4+V8teFuJJ2nPhewV9SgNdl++1bjlkSAgqFx3DvadhMMpCp+YOO7m4rsWMOZvde X-Received: by 2002:a05:6a00:23d1:b0:4fb:228a:e9df with SMTP id g17-20020a056a0023d100b004fb228ae9dfmr6065906pfc.31.1649204623653; Tue, 05 Apr 2022 17:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649204623; cv=none; d=google.com; s=arc-20160816; b=vIOKQ6FxKzGoZHUJOU4GbaQ7OSVJA6E7tVSSF5dPYccpXM52ZHDjUgWTDwxwozgFeT CHI0q5G0EMb6N6bB5EqE+zMRmOWUMTMphbfj5w5Lf9xoqB+mWwgs28OF9mJSubzTi4TR hN9yF+IM33buL5yIrqsqFC1Tdz7OM1aVWNQLVdGO4BLBEqibalftv22qwSdy6+NJGX4g dI29McY8UGaCEcUjR+st4PcevhWaiVUPzTR/J75Kw0DixAvf2HH9/LPJ5UzihmQzMMC9 9QMLWRcaCeeTORpSHdNR+nUEYF2TNPGIt/czKWpSlHKv5vtr6M/cd0HVVEE2VJvEV1eA cKhg== 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=DjJvAi2rNej8q0AxN+qU3XNRfIFdtcrZqIM30dJAL2Q=; b=OlBWUmvUS1ZYg04NPP7k8CK1RTu8JQg4H8b8lHOe7Kkw0TrfcEokv6ks6s2OiV9HQO /CmJSVy3j8Vt3wCsRCwOmv18i5ZJSQgMQ1L7SZ3qFijv7dorVv/57hDGj/I6/R+YrODQ Xbs1AsBYW9oghsd1rlRcSOcPkoVmLRtaOY0OhH3nbHWh9wr1Psv55BiW8dW9RlFZmz/9 SjRlDyDPxXq1q6AyNURnyAaBc4vaXcW/hKHXWXgr2K0Dt7+gsMC2jQR8HRk/dWQf5h1z 1Ts0SFoA63L0er018wCWmkkmC94J+PDzRBrIj2NNTHsVZzWMRByksOPUqSgePDhuP3aa p9wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iX8Fxilo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id pi6-20020a17090b1e4600b001c640c0baccsi4134558pjb.165.2022.04.05.17.23.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 17:23:43 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iX8Fxilo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A3A27231909; Tue, 5 Apr 2022 17:10:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380984AbiDEMOT (ORCPT + 99 others); Tue, 5 Apr 2022 08:14:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244786AbiDEIwj (ORCPT ); Tue, 5 Apr 2022 04:52:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6741619C26; Tue, 5 Apr 2022 01:43:55 -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 094FBB81BC5; Tue, 5 Apr 2022 08:43:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68B53C385A1; Tue, 5 Apr 2022 08:43:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148232; bh=zQ6/cvteXtzMrMf4i1FbC9Lt4WLK1F3GHD9ApU9xZdM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iX8Fxiloz32+8hyibUMFb2+hw63q6XAGPg5rChzrUEgqktFQ4Vg/L2vpfe/rTIKvZ NS0/Vn920h4GcnQtBhg4oft1jFnBq+pl8MxtAlHKf2NQQDaAy8Z0MhpxAPwekSp8OB VVUu/R3gQJU8UxqMLGrp7q+orycSUA7fEyVUAcHQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Marek , Robert Foss , Julian Grahsl , Bryan ODonoghue , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.16 0282/1017] media: camss: vfe-170: fix "VFE halt timeout" error Date: Tue, 5 Apr 2022 09:19:55 +0200 Message-Id: <20220405070402.639652636@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Jonathan Marek [ Upstream commit 1ce8c48b06f249a9739e36c5d56883f6f49ce047 ] This function waits for halt_complete but doesn't do anything to cause it to complete, and always hits the "VFE halt timeout" error. Just delete this code for now. Fixes: 7319cdf189bb ("media: camss: Add support for VFE hardware version Titan 170") Signed-off-by: Jonathan Marek Reviewed-by: Robert Foss Tested-by: Julian Grahsl Tested-by: Bryan O'Donoghue Signed-off-by: Bryan O'Donoghue Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/qcom/camss/camss-vfe-170.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/media/platform/qcom/camss/camss-vfe-170.c b/drivers/media/platform/qcom/camss/camss-vfe-170.c index 5c083d70d495..af71dc659bb9 100644 --- a/drivers/media/platform/qcom/camss/camss-vfe-170.c +++ b/drivers/media/platform/qcom/camss/camss-vfe-170.c @@ -402,17 +402,7 @@ static irqreturn_t vfe_isr(int irq, void *dev) */ static int vfe_halt(struct vfe_device *vfe) { - unsigned long time; - - reinit_completion(&vfe->halt_complete); - - time = wait_for_completion_timeout(&vfe->halt_complete, - msecs_to_jiffies(VFE_HALT_TIMEOUT_MS)); - if (!time) { - dev_err(vfe->camss->dev, "VFE halt timeout\n"); - return -EIO; - } - + /* rely on vfe_disable_output() to stop the VFE */ return 0; } -- 2.34.1