Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2984730imu; Mon, 19 Nov 2018 09:00:11 -0800 (PST) X-Google-Smtp-Source: AJdET5cCyWE+C6vKRcYzhu38/KisfIhRWlO6amYyXz/FK95Oh+X2JGgVQZNasMXqW3Xx6Kwmg5Ey X-Received: by 2002:a63:5026:: with SMTP id e38mr20846864pgb.123.1542646811456; Mon, 19 Nov 2018 09:00:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542646811; cv=none; d=google.com; s=arc-20160816; b=vY5xxXar2jmxoFQs4eQSUiUU08WNkuqZscc4SPJwBjGLFoeLTMKUM3ufZeUCsjrKAW GL6fe3hqBPwxKMrugurZpnoRz33mFTJ2ftRkv7c867oDzzsQ+c/347NBPejScJ0H1rJE kwl1eRuP+qsww23ZssbTcssHOVjZdMixKb2CDhx9KQqLThkssLJnCzxmv59ZhmcKVSM+ HJnMHE8aRQ3PlfiblWQOBZRGovUTXySwyV611JcquBwy50CXF4Bo/EZa037q+TI2IDjQ Z6QnABTZTaWld/VpFYfPv/bwifuJ6ivGv6hE+ccFcSa50NncpgHllnTbqaxbT929oky0 xcZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ws462gaq/6ugdMo5xrQVUoxHZKAanp/rvH+IG4J1Ghg=; b=JtJJWl1eGSCoCLZkKuup/lZm6zQzzoZRb8XG/XPxmt3kaGSGa6f/xi3ZeNjLiUO51a paRv4Vpvc4HbOzxAn3OGK6hg+w8wmOxbnNUXjV5zw5FeWc4PPh2vweKNI3sw2KhAtf1g NxKMeHi5QZBWuw054EBVeazanDEyT2SkFiDgIm7Q4R7WB+1O15ATMWJt8cGFCCY5RBkD 4QsBiru7k1rw7pUWjz1JhrNO+lUuMX7ljLoWzw7wEEUqFEnBTcOAaxVXOiEYnQy6cau0 jAUtOx7B7TyyVW+mpttxwsXJQGxezcfgLCCnE+McSQjTjMHgNYCkn5YkvWR/LGly4mTL Ckig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=I6HU+Cf9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 28si18776848pgw.364.2018.11.19.08.59.56; Mon, 19 Nov 2018 09:00:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=I6HU+Cf9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405067AbeKTDXc (ORCPT + 99 others); Mon, 19 Nov 2018 22:23:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:35568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404341AbeKTDXb (ORCPT ); Mon, 19 Nov 2018 22:23:31 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 55082214E0; Mon, 19 Nov 2018 16:59:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542646755; bh=tmc7RQzsWnGuVthlpPqUy7AEn5bmWu/WV86Q7XWPnuE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I6HU+Cf9156gDvOF6q/rlwbzeYU+rouB11Kbya2gJDzbfikMU1Igv63n30s58zjsK tApNsv1O6yGyZaLVVsOuv6bpHh1nNJRhHsyFmsIYG3hdW1T48uAvOKz7K+gBty0B51 sH3ROvqKoEdLxonhxLgOfzBixCM2WWxWGMAl77rM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mauro Carvalho Chehab Subject: [PATCH 4.4 079/160] media: em28xx: make v4l2-compliance happier by starting sequence on zero Date: Mon, 19 Nov 2018 17:28:38 +0100 Message-Id: <20181119162638.931763270@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162630.031306128@linuxfoundation.org> References: <20181119162630.031306128@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mauro Carvalho Chehab commit afeaade90db4c5dab93f326d9582be1d5954a198 upstream. The v4l2-compliance tool complains if a video doesn't start with a zero sequence number. While this shouldn't cause any real problem for apps, let's make it happier, in order to better check the v4l2-compliance differences before and after patchsets. This is actually an old issue. It is there since at least its videobuf2 conversion, e. g. changeset 3829fadc461 ("[media] em28xx: convert to videobuf2"), if VB1 wouldn't suffer from the same issue. Cc: stable@vger.kernel.org Fixes: d3829fadc461 ("[media] em28xx: convert to videobuf2") Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/usb/em28xx/em28xx-video.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/media/usb/em28xx/em28xx-video.c +++ b/drivers/media/usb/em28xx/em28xx-video.c @@ -1149,6 +1149,8 @@ static void em28xx_ctrl_notify(struct v4 { struct em28xx *dev = priv; + dev->v4l2->field_count = 0; + /* * In the case of non-AC97 volume controls, we still need * to do some setups at em28xx, in order to mute/unmute