Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3600671pxb; Mon, 24 Jan 2022 13:14:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJymKMAnyvXqyWKl/XTi+UCewVNThF+m/v2xGKboqMmWiLd9e0wpANWsdkMiiWCVROdIgUCP X-Received: by 2002:a65:5c87:: with SMTP id a7mr13415261pgt.600.1643058841556; Mon, 24 Jan 2022 13:14:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058841; cv=none; d=google.com; s=arc-20160816; b=Q0aTyB3MfFtt4ZMt9FsuSu5yWvqxBoaOZQS9f1KdzqQmz7WmOgXTn+OTExyO1mBuS6 mCtzb8zG6xKDtTihK9xq24JsdoUQxSbwFhN+a48p+Herz8YOiZgQDZoGEN3+h5xHNEVA AzqmJfWBePpRrCw7jAmvNlkU7nsNSDewTuTkc8u1UJGwA8GHgFF6kIiEHywjiOYtNKYo /LWRX/aWcYitgCvT3VxlbTIbWw7xlBacD8OgmqK2A6/+qQSXo27AIMjsGLkwdRzwED6H CoKIojbuJcGua+zTazH66gLarsomwr+U8VWjq47RPtu0dLTNB7pKmIasF7ENp2SViXcM tLLA== 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=3yMsPF9JrdryLDS2hKsm9YcU+iRupsTbXeMqm0JcEt8=; b=CJKMdzbgui3/d5u96cyMiusVUA+sovJsVZxPCkbwSfdjgFLD98tD8TrIG31ACwDDxo FzHxUoIemqo9kxH4Mhd/OU+RrH7jDBMcWcFeYUMsb7sMQ6qNI36uR6Oz/3g7ANlSjOWb KL8Q2/YQgI7MawhI2PkXgzrc/Taa9MmUhnzE7cRMNJ1rcNV+0bMNekW1Rr4cwc3ds/mF IalaHwhKmXWduxAu4KUdbke8S75CnlDA1R1h7RcXgyuTudTH2Dj2OtDoXlWPgB4wo9Eo 2gsm1ubZAoI7m90poSIZQM0ATtPMpNkg90ioWsHnKmE0kgsBkr8W1rMrefpDqIwtaExI tcmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ITvyyPba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si14577788pgl.839.2022.01.24.13.13.48; Mon, 24 Jan 2022 13:14:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ITvyyPba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1350628AbiAXUi0 (ORCPT + 99 others); Mon, 24 Jan 2022 15:38:26 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:43302 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381004AbiAXURZ (ORCPT ); Mon, 24 Jan 2022 15:17:25 -0500 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 43E1961496; Mon, 24 Jan 2022 20:17:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05F8BC340E7; Mon, 24 Jan 2022 20:17:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055444; bh=RVQdDPDKOE/a1ZN4sGWxqjsyDozLHpHpTA/eJ4N7kSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ITvyyPba+AYw+0+70ijVqrUqu+Br+jzSdZLhCsvBRp9Jg91CN76ce8+hVNw0uP5n8 q7mWxNj+3Bj3FJe6OYEBvATT+FEz2lALnYOd/niAWgxmnDbJfrVql6q9MHI/cfGHdP 6DekfhFhAAxMNffkow622/S2NSYHhh/wD4QUB/Lo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tsuchiya Yuto , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.15 110/846] media: atomisp: fix inverted logic in buffers_needed() Date: Mon, 24 Jan 2022 19:33:47 +0100 Message-Id: <20220124184104.769509072@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tsuchiya Yuto [ Upstream commit e1921cd14640f0f4d1fad5eb8e448c58a536415d ] When config.mode is IA_CSS_INPUT_MODE_BUFFERED_SENSOR, it rather needs buffers. Fix it by inverting the return value. Fixes: 3c0538fbad9f ("media: atomisp: get rid of most checks for ISP2401 version") Signed-off-by: Tsuchiya Yuto Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/staging/media/atomisp/pci/sh_css_mipi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/sh_css_mipi.c b/drivers/staging/media/atomisp/pci/sh_css_mipi.c index 75489f7d75eec..483d40a467c74 100644 --- a/drivers/staging/media/atomisp/pci/sh_css_mipi.c +++ b/drivers/staging/media/atomisp/pci/sh_css_mipi.c @@ -374,17 +374,17 @@ static bool buffers_needed(struct ia_css_pipe *pipe) { if (!IS_ISP2401) { if (pipe->stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR) - return false; - else return true; + else + return false; } if (pipe->stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR || pipe->stream->config.mode == IA_CSS_INPUT_MODE_TPG || pipe->stream->config.mode == IA_CSS_INPUT_MODE_PRBS) - return false; + return true; - return true; + return false; } int -- 2.34.1