login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
openbsd-tech
»
2010
»
October
»
18
Re: update pms driver
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Nicholas Marriott
Subject:
Re: update pms driver
Date: Monday, October 18, 2010 - 11:21 am
This seems is fine too. Cheers On Sun, Oct 17, 2010 at 05:38:32PM +0600, Alexandr Shadchin wrote:
quoted text
> On Sun, Oct 17, 2010 at 06:34:23AM -0400, Kenneth R Westerback wrote: > > On Sat, Oct 16, 2010 at 09:00:43PM +0600, Alexandr Shadchin wrote: > > > On Sat, Oct 16, 2010 at 03:42:10PM +0100, Nicholas Marriott wrote: > > > > pmsinput could have a newline after the return type like the rest, > > > > otherwise looks good for me. > > > > > > > > > > I agree, did not notice :) > > > Fixed > > > > > > -- > > > Alexandr Shadchin > > > > The diff diddn't compile due to ';' in pmsprobe(). Make sure you at least > > compile diffs, lest we start trusting you and committing without compiling > > ourselves! > > Right now wanted to write about this error. > I have two laptops. Second forgot to sync. I'll try to be more attentive. > > > > > Done. Next? :-). > > > > .... Ken > > Simplified pmsprobe(), no functional change. > > -- > Alexandr Shadchin > > Index: pms.c > =================================================================== > RCS file: /cvs/src/sys/dev/pckbc/pms.c,v > retrieving revision 1.10 > diff -u -p -r1.10 pms.c > --- pms.c 17 Oct 2010 10:32:00 -0000 1.10 > +++ pms.c 17 Oct 2010 11:30:24 -0000 > @@ -134,21 +134,10 @@ pmsprobe(struct device *parent, void *ma > /* reset the device */ > cmd[0] = PMS_RESET; > res = pckbc_poll_cmd(pa->pa_tag, pa->pa_slot, cmd, 1, 2, resp, 1); > - if (res) { > + if (res || resp[0] != PMS_RSTDONE || resp[1] != 0) { > #ifdef DEBUG > - printf("pmsprobe: reset error %d\n", res); > -#endif > - return (0); > - } > - if (resp[0] != PMS_RSTDONE) { > - printf("pmsprobe: reset response 0x%x\n", resp[0]); > - return (0); > - } > - > - /* get type number (0 = mouse) */ > - if (resp[1] != 0) { > -#ifdef DEBUG > - printf("pmsprobe: type 0x%x\n", resp[1]); > + printf("pms: reset error %d (response 0x%02x, type 0x%02x)\n", > + res, resp[0], resp[1]); > #endif > return (0); > }
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: update pms driver
, Alexandr Shadchin
, (Tue Oct 5, 8:15 am)
Re: update pms driver
, Nicholas Marriott
, (Tue Oct 5, 10:27 am)
Re: update pms driver
, Alexandr Shadchin
, (Thu Oct 7, 12:21 pm)
Re: update pms driver
, Alexandr Shadchin
, (Thu Oct 7, 12:28 pm)
Re: update pms driver
, Ian Darwin
, (Thu Oct 7, 1:40 pm)
Re: update pms driver
, Kenneth R Westerback
, (Tue Oct 12, 12:56 pm)
Re: update pms driver
, Nicholas Marriott
, (Sat Oct 16, 2:46 am)
Re: update pms driver
, Alexandr Shadchin
, (Sat Oct 16, 5:36 am)
Re: update pms driver
, Nicholas Marriott
, (Sat Oct 16, 7:42 am)
Re: update pms driver
, Alexandr Shadchin
, (Sat Oct 16, 8:00 am)
Re: update pms driver
, Alexandr Shadchin
, (Sun Oct 17, 4:38 am)
Re: update pms driver
, Nicholas Marriott
, (Mon Oct 18, 11:21 am)
Re: update pms driver
, Alexandr Shadchin
, (Tue Oct 19, 7:44 am)
Re: update pms driver
, Miod Vallat
, (Tue Oct 19, 1:03 pm)
Re: update pms driver
, Kenneth R Westerback
, (Tue Oct 19, 5:39 pm)
Re: update pms driver
, Alexandr Shadchin
, (Tue Oct 19, 11:59 pm)
Re: update pms driver
, Nicholas Marriott
, (Sat Oct 30, 5:34 pm)
Re: update pms driver
, Alexandr Shadchin
, (Sat Nov 6, 11:45 am)
Re: update pms driver
, Alexandr Shadchin
, (Wed Nov 17, 12:11 pm)
Re: update pms driver
, Nicholas Marriott
, (Mon Nov 22, 2:44 pm)
Re: update pms driver
, Alexandr Shadchin
, (Tue Nov 23, 4:10 am)
Re: update pms driver
, Nicholas Marriott
, (Mon Nov 29, 1:58 pm)
Re: update pms driver
, Alexandr Shadchin
, (Mon Nov 29, 2:43 pm)
Re: update pms driver
, Nicholas Marriott
, (Mon Nov 29, 3:08 pm)
Re: update pms driver
, Kevin Chadwick
, (Tue Nov 30, 5:16 am)
Re: update pms driver
, Alexandr Shadchin
, (Tue Nov 30, 9:33 am)
Re: update pms driver
, Mark Kettenis
, (Wed Dec 1, 3:33 am)
Re: update pms driver
, Alexandr Shadchin
, (Wed Dec 1, 5:14 am)
Re: update pms driver
, Nicholas Marriott
, (Mon Dec 6, 10:42 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
gi