Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751660AbaBZI5z (ORCPT ); Wed, 26 Feb 2014 03:57:55 -0500 Received: from moutng.kundenserver.de ([212.227.17.24]:61150 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbaBZI5y (ORCPT ); Wed, 26 Feb 2014 03:57:54 -0500 From: Arnd Bergmann To: Hans Verkuil Subject: Re: [PATCH, RFC 08/30] [media] arv: fix sleep_on race Date: Wed, 26 Feb 2014 09:57:39 +0100 User-Agent: KMail/1.12.2 (Linux/3.8.0-22-generic; KDE/4.3.2; x86_64; ; ) Cc: linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org References: <1388664474-1710039-1-git-send-email-arnd@arndb.de> <52D90B42.90206@xs4all.nl> <52F4A486.30100@xs4all.nl> In-Reply-To: <52F4A486.30100@xs4all.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201402260957.40068.arnd@arndb.de> X-Provags-ID: V02:K0:6Zfxn+y/DAC/SR2aHVeY/hcbNrZrxFfSXaLuzxRZ6h9 XX/O7dy1IWksLdaP/ROs/x6RwIQhU7ozIEs6OlJ1qREMB2Ul+t 1AIp0G1YnwjprWn8YSU4s6J2xmmaguh4cg1PmeaEXGN+UAuebD s9katFe5uPlVMSVfEz6iVIbZ0p5xiaeH8qxoaJ+cJxt3pUlf1A bH1iUKYmOImLlsMVtfo9VOI9OIqxeyX6WTpi79honGqni04o4X GwcD8BAiCko88hsq4UwKE0jZcHrZZQfh4rdkWKzj28pziEZ60Q CS2osm1W1dzSu3M5o/myp/koOD1ua6F7H+mN1joOl9oRz8Ds4N 8dhLc0h5i8AufG0fFaMU= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 07 February 2014, Hans Verkuil wrote: > On 01/17/2014 11:51 AM, Hans Verkuil wrote: > >> diff --git a/drivers/media/platform/arv.c b/drivers/media/platform/arv.c > >> index e346d32d..32f6d70 100644 > >> --- a/drivers/media/platform/arv.c > >> +++ b/drivers/media/platform/arv.c > >> @@ -307,11 +307,11 @@ static ssize_t ar_read(struct file *file, char *buf, size_t count, loff_t *ppos) > >> /* > >> * Okay, kick AR LSI to invoke an interrupt > >> */ > >> - ar->start_capture = 0; > >> + ar->start_capture = -1; > > > > start_capture is defined as an unsigned. Can you make a new patch that changes > > the type of start_capture to int? > > > > Otherwise it looks fine. Sorry for the delay. I've updated the patch now and will send it out today with the other remaining ones. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/