Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752509AbbGORQN (ORCPT ); Wed, 15 Jul 2015 13:16:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41519 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751732AbbGORQM (ORCPT ); Wed, 15 Jul 2015 13:16:12 -0400 Message-ID: <1436980570.10553.0.camel@redhat.com> Subject: Re: [PATCH v5] i8042: Add unmask_kbd_data option From: Stephen Chandler Paul To: Dmitry Torokhov Cc: Benjamin Tissoires , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Hans de Goede , Andreas Mohr Date: Wed, 15 Jul 2015 13:16:10 -0400 In-Reply-To: <20150715165954.GA19828@dtor-ws> References: <20150627203543.GA31870@rhlx01.hs-esslingen.de> <1435852008-4509-1-git-send-email-cpaul@redhat.com> <20150715165954.GA19828@dtor-ws> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1116 Lines: 38 On Wed, 2015-07-15 at 09:59 -0700, Dmitry Torokhov wrote: > 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. Sounds good to me Cheers, Stephen Chandler Paul > > Thanks. > -- 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/