Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756993Ab0BDSOS (ORCPT ); Thu, 4 Feb 2010 13:14:18 -0500 Received: from mail-fx0-f220.google.com ([209.85.220.220]:35289 "EHLO mail-fx0-f220.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756780Ab0BDSOP (ORCPT ); Thu, 4 Feb 2010 13:14:15 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=X1SpX4YnEgbqC1BCmmt/0OnQoTT8XxAQ4Dz8AXfcQqC7YL4gGB9XFG5CqoYP7sUXkc g2lwjb4bkIndnszk9GaKg9mu4/7eQm+s520SXHaG52VjaQaP88vFvMtsnDmiOyzZObnb P1aACqDLOA+1PGW8vK7eSwvxvPhJGm0eC3Oo8= Date: Thu, 4 Feb 2010 10:14:04 -0800 From: Dmitry Torokhov To: Jiri Slaby Cc: Jiri Kosina , Antti Palosaari , mchehab@infradead.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, Pekka Sarnila , linux-input@vger.kernel.org Subject: Re: [PATCH 1/1] media: dvb-usb/af9015, fix disconnection crashes Message-ID: <20100204181404.GC10965@core.coreip.homeip.net> References: <1264007972-6261-1-git-send-email-jslaby@suse.cz> <4B5CDB53.6030009@iki.fi> <4B5D6098.7010700@gmail.com> <4B5DDDFB.5020907@iki.fi> <4B6AA211.1060707@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B6AA211.1060707@gmail.com> User-Agent: Mutt/1.5.20 (2009-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 807 Lines: 22 On Thu, Feb 04, 2010 at 11:31:45AM +0100, Jiri Slaby wrote: + > +static int dvb_event(struct hid_device *hdev, struct hid_field *field, > + struct hid_usage *usage, __s32 value) > +{ > + /* we won't get a "key up" event */ > + if (value) { > + input_event(field->hidinput->input, usage->type, usage->code, 1); > + input_event(field->hidinput->input, usage->type, usage->code, 0); Do not ever forget input_sync(), you need 2 of them here. With the latest changes to evdev, if you are using SIGIO you won't get wioken up until EV_SYN/SYN_REPORT. -- Dmitry -- 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/