Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753185AbbGORAB (ORCPT ); Wed, 15 Jul 2015 13:00:01 -0400 Received: from mail-ig0-f180.google.com ([209.85.213.180]:35464 "EHLO mail-ig0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751502AbbGORAA (ORCPT ); Wed, 15 Jul 2015 13:00:00 -0400 Date: Wed, 15 Jul 2015 09:59:54 -0700 From: Dmitry Torokhov To: cpaul@redhat.com Cc: Benjamin Tissoires , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Hans de Goede , Andreas Mohr Subject: Re: [PATCH v5] i8042: Add unmask_kbd_data option Message-ID: <20150715165954.GA19828@dtor-ws> References: <20150627203543.GA31870@rhlx01.hs-esslingen.de> <1435852008-4509-1-git-send-email-cpaul@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435852008-4509-1-git-send-email-cpaul@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 961 Lines: 33 Hi Stephen, On Thu, Jul 02, 2015 at 11:46:48AM -0400, cpaul@redhat.com wrote: > +static int i8042_kbd_bind_notifier(struct notifier_block *nb, > + unsigned long action, void *data) > +{ > + struct device *dev = data; > + struct serio *serio = to_serio_port(dev); > + struct i8042_port *port = serio->port_data; > + > + if (serio != i8042_ports[I8042_KBD_PORT_NO].serio) > + return 0; > + > + switch (action) { > + case BUS_NOTIFY_BOUND_DRIVER: > + port->driver_bound = true; > + break; > + > + case BUS_NOTIFY_UNBOUND_DRIVER: I think it should be BUS_NOTIFY_UNBIND_DRIVER so that we see the KBD data as it goes through driver cleanup. Yell if you disagree, or I'll change it locally. Thanks. -- 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/