From: "Hennerich, Michael" <Michael.Hennerich@analog.com> To: "Jiri Kosina" <jkosina@suse.cz>, "Dmitry Torokhov" <dmitry.torokhov@gmail.com> Cc: "Mike Frysinger" <vapier@gentoo.org>, <linux-input@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <uclinux-dist-devel@blackfin.uclinux.org>, "Bryan Wu" <cooloney@kernel.org> Subject: RE: [PATCH] input/keyboard: new driver for ADP5520 MFD PMICs Date: Tue, 22 Sep 2009 08:53:19 +0100 [thread overview] Message-ID: <8A42379416420646B9BFAC9682273B6D0DFAD237@limkexm3.ad.analog.com> (raw) In-Reply-To: <alpine.LRH.2.00.0909220933090.27145@twin.jikos.cz> >From: Jiri Kosina >Sent: Tuesday, September 22, 2009 9:33 AM > >On Mon, 21 Sep 2009, Dmitry Torokhov wrote: > >> > + if (event & KP_INT) { >> > + adp5520_read(dev->master, KP_INT_STAT_1, ®_val_low); >> > + adp5520_read(dev->master, KP_INT_STAT_2, ®_val_high); >> > + >> > + keymask = (reg_val_high << 8) | reg_val_low; >> > + /* Read twice to clear */ >> > + adp5520_read(dev->master, KP_INT_STAT_1, ®_val_low); >> > + adp5520_read(dev->master, KP_INT_STAT_2, ®_val_high); >> > + keymask |= (reg_val_high << 8) | reg_val_low; >> > + adp5520_keys_report_event(dev, keymask, 1); >> > + } >> > + >> > + if (event & KR_INT) { >> >> Why do you check the same condition twice? > >It actually doesn't seem to be the same condition (KP_INT vs. KR_INT), but >it's difficult to say, as these constants are apparently added in some >other patch I have no idea about. KP Key-Press versus Key-Release >And the same for other constants used in the code ... the patch seems to >be quite incomplete. The missing constants are in include/linux/mfd/adp5520.h This file was sent in a different patch, adding support for the Multi Function Device Core (drivers/mfd/adp5520.c) -Michael ------------------------------------------------------------------ ********* Analog Devices GmbH ** ***** Systems Engineering ** ** Wilhelm-Wagenfeld-Strasse 6 ** ***** D-80807 Munich ********* Germany Registergericht München HRB 40368, Geschäftsführer: Thomas Wessel, William A. Martin, Margaret K. Seif > >-- >Jiri Kosina >SUSE Labs, Novell Inc.
WARNING: multiple messages have this Message-ID (diff)
From: "Hennerich, Michael" <Michael.Hennerich@analog.com> To: Jiri Kosina <jkosina@suse.cz>, Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Mike Frysinger <vapier@gentoo.org>, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, uclinux-dist-devel@blackfin.uclinux.org, Bryan Wu <cooloney@kernel.org> Subject: RE: [PATCH] input/keyboard: new driver for ADP5520 MFD PMICs Date: Tue, 22 Sep 2009 08:53:19 +0100 [thread overview] Message-ID: <8A42379416420646B9BFAC9682273B6D0DFAD237@limkexm3.ad.analog.com> (raw) In-Reply-To: <alpine.LRH.2.00.0909220933090.27145@twin.jikos.cz> >From: Jiri Kosina >Sent: Tuesday, September 22, 2009 9:33 AM > >On Mon, 21 Sep 2009, Dmitry Torokhov wrote: > >> > + if (event & KP_INT) { >> > + adp5520_read(dev->master, KP_INT_STAT_1, ®_val_low); >> > + adp5520_read(dev->master, KP_INT_STAT_2, ®_val_high); >> > + >> > + keymask = (reg_val_high << 8) | reg_val_low; >> > + /* Read twice to clear */ >> > + adp5520_read(dev->master, KP_INT_STAT_1, ®_val_low); >> > + adp5520_read(dev->master, KP_INT_STAT_2, ®_val_high); >> > + keymask |= (reg_val_high << 8) | reg_val_low; >> > + adp5520_keys_report_event(dev, keymask, 1); >> > + } >> > + >> > + if (event & KR_INT) { >> >> Why do you check the same condition twice? > >It actually doesn't seem to be the same condition (KP_INT vs. KR_INT), but >it's difficult to say, as these constants are apparently added in some >other patch I have no idea about. KP Key-Press versus Key-Release >And the same for other constants used in the code ... the patch seems to >be quite incomplete. The missing constants are in include/linux/mfd/adp5520.h This file was sent in a different patch, adding support for the Multi Function Device Core (drivers/mfd/adp5520.c) -Michael ------------------------------------------------------------------ ********* Analog Devices GmbH ** ***** Systems Engineering ** ** Wilhelm-Wagenfeld-Strasse 6 ** ***** D-80807 Munich ********* Germany Registergericht München HRB 40368, Geschäftsführer: Thomas Wessel, William A. Martin, Margaret K. Seif > >-- >Jiri Kosina >SUSE Labs, Novell Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-09-22 7:53 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-09-17 18:24 [PATCH] input/keyboard: new driver for ADP5520 MFD PMICs Mike Frysinger 2009-09-20 6:30 ` Andrew Morton 2009-09-20 6:30 ` Andrew Morton 2009-09-20 22:40 ` [Uclinux-dist-devel] " Mike Frysinger 2009-09-20 22:40 ` Mike Frysinger 2009-09-21 4:04 ` Andrew Morton 2009-09-21 4:04 ` Andrew Morton 2009-09-21 13:40 ` Mike Frysinger 2009-09-21 13:40 ` Mike Frysinger 2009-09-21 18:23 ` [Uclinux-dist-devel] " Andrew Morton 2009-09-21 18:23 ` Andrew Morton 2009-09-22 5:59 ` Dmitry Torokhov 2009-09-22 7:33 ` Jiri Kosina 2009-09-22 7:53 ` Hennerich, Michael [this message] 2009-09-22 7:53 ` Hennerich, Michael 2009-09-22 7:56 ` Jiri Kosina 2009-09-22 14:21 ` Mike Frysinger 2009-09-22 15:06 ` Dmitry Torokhov 2009-09-23 5:15 ` [PATCH v2] " Mike Frysinger 2009-09-23 6:28 ` Dmitry Torokhov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=8A42379416420646B9BFAC9682273B6D0DFAD237@limkexm3.ad.analog.com \ --to=michael.hennerich@analog.com \ --cc=cooloney@kernel.org \ --cc=dmitry.torokhov@gmail.com \ --cc=jkosina@suse.cz \ --cc=linux-input@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=uclinux-dist-devel@blackfin.uclinux.org \ --cc=vapier@gentoo.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.