Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1038759pxm; Wed, 23 Feb 2022 16:33:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4xzHp2TsXdJsUcAgiQIyBERoT2YNP4qKcFWM59jfYhhGUhHIxyTG7N7BIxc/svO9M425r X-Received: by 2002:a63:64a:0:b0:36c:6d40:5688 with SMTP id 71-20020a63064a000000b0036c6d405688mr278046pgg.554.1645662826971; Wed, 23 Feb 2022 16:33:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645662826; cv=none; d=google.com; s=arc-20160816; b=iQSL0eaTXaPUW9RKV91S7n0p7Bd9pzFN+f5w6LV87iCYdRJwh8wQy5eDfeQClhoGsx KYWu8OYK0Ufuo2ejjcTbXzTZy3OnF7z115JLttWlBXw6eVwe155IzaSCbPM7TML17w65 f8OB8bS2p9MC6CCZujupM98o3efMOWz2iw+244BjAVhf4s4wmREzRc5kezjpqVFcqFOL 0ALCKMd8PpVElyjKewtFgGzn8KU7oJnjs0p5Onm6DiuYkYnVnFO/pUrU33Vk6a/GVbGb rVo9U4H2dnb/a5d9Aw29u8B9HYZM4xi+deMdFxwLL0e4002Ap8Gf4OvdSloThEt7SDEV pYQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8r89JRzx+JAQBKEKOCpQ6M3hBoFCPhPIso89wmIwzWA=; b=x0fOHS7I7/zI2n83ybJka6Z213MipQg3tFcytY6fXq5rr1Nn3oI5XVza6k6I3mR8K/ emN7h3a+ZAOiW+I6GbCwrx0x9udFc4dz6WQaeOwaRkTNzhimAWsL7cVY90enGUbapgut LxOhB1oP0xk/wpIoPF2J6Abfv4NHdAXndLvtXs3vggcbWrGzYfblZmlRSZ3jWyANuwrR Q7/s34Ni8IvaPmuDj4JMq3rCJ22Y9gB4vwP8nrG0A+IWB1EZ7P4KP0OqSPMjx27MyRNh klIj8zBRe71hP093aJE0tCI8ypftWsKSY9ujwSFk3sO1X0Oa1XABlFC+bRshiUoyoECB ShfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h12si1019215plo.280.2022.02.23.16.33.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 16:33:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BBCB08AE66; Wed, 23 Feb 2022 16:32:55 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243197AbiBWRG0 (ORCPT + 99 others); Wed, 23 Feb 2022 12:06:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243188AbiBWRGY (ORCPT ); Wed, 23 Feb 2022 12:06:24 -0500 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79DB55372C; Wed, 23 Feb 2022 09:05:56 -0800 (PST) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id 14AB31C000A; Wed, 23 Feb 2022 17:05:52 +0000 (UTC) Date: Wed, 23 Feb 2022 18:05:51 +0100 From: Jacopo Mondi To: Eugen Hristev Cc: linux-media@vger.kernel.org, hverkuil-cisco@xs4all.nl, nicolas.ferre@microchip.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, claudiu.beznea@microchip.com, Hans Verkuil Subject: Re: [PATCH v5 02/13] media: atmel: atmel-isc-base: replace is_streaming call in s_fmt_vid_cap Message-ID: <20220223170551.6wbehkwjsddfzg5h@uno.localdomain> References: <20220217135645.1427466-1-eugen.hristev@microchip.com> <20220217135645.1427466-3-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220217135645.1427466-3-eugen.hristev@microchip.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 Hi Eugen On Thu, Feb 17, 2022 at 03:56:34PM +0200, Eugen Hristev wrote: > In s_fmt_vid_cap, we should check if vb2_is_busy and return EBUSY, > not check if it's streaming to return the busy state. > > Suggested-by: Hans Verkuil > Signed-off-by: Eugen Hristev Reviewed-by: Jacopo Mondi Thanks j > --- > drivers/media/platform/atmel/atmel-isc-base.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel-isc-base.c > index d2cc6c99984f..67b4a2323fed 100644 > --- a/drivers/media/platform/atmel/atmel-isc-base.c > +++ b/drivers/media/platform/atmel/atmel-isc-base.c > @@ -1029,7 +1029,7 @@ static int isc_s_fmt_vid_cap(struct file *file, void *priv, > { > struct isc_device *isc = video_drvdata(file); > > - if (vb2_is_streaming(&isc->vb2_vidq)) > + if (vb2_is_busy(&isc->vb2_vidq)) > return -EBUSY; > > return isc_set_fmt(isc, f); > -- > 2.25.1 >