login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
5
Re: [PATCHv3 15/16] pps: add parallel port PPS client
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Alexander Gordeev
Subject:
Re: [PATCHv3 15/16] pps: add parallel port PPS client
Date: Thursday, August 5, 2010 - 5:48 am
В Wed, 4 Aug 2010 16:34:30 -0700 Andrew Morton <akpm@linux-foundation.org> пишет:
quoted text
> On Thu, 5 Aug 2010 01:06:52 +0400 > Alexander Gordeev <lasaine@lvk.cs.msu.su> wrote: > > > Add parallel port PPS client. It uses a standard method for capturing > > timestamps for assert edge transitions: getting a timestamp soon after > > an interrupt has happened. This is not a very precise source of time > > information due to interrupt handling delays. However, timestamps for > > clear edge transitions are much more precise because the interrupt > > handler continuously polls hardware port until the transition is done. > > Hardware port operations require only about 1us so the maximum error > > should not exceed this value. This was my primary goal when developing > > this client. > > Clear edge capture could be disabled using clear_wait parameter. > > > > > > ... > > > > + > > +#define SIGNAL_IS_SET(port) \ > > + ((port->ops->read_status(port) & PARPORT_STATUS_ACK) != 0) > > This could (and hence should) be implemented in a regular old C > function.
Ok, thanks!
quoted text
> > > > ... > > > > +{ > > + struct pps_client_pp *device; > > + struct pps_source_info info = { > > + .name = DRVNAME, > > + .path = "", > > + .mode = PPS_CAPTUREBOTH | \ > > + PPS_OFFSETASSERT | PPS_OFFSETCLEAR | \ > > + PPS_ECHOASSERT | PPS_ECHOCLEAR | \ > > + PPS_CANWAIT | PPS_TSFMT_TSPEC, > > + .echo = pps_echo, > > + .owner = THIS_MODULE, > > + .dev = NULL > > + }; > > + > > + device = kzalloc(sizeof(struct pps_client_pp), GFP_KERNEL); > > + if (!device) { > > + pr_err(DRVNAME ": memory allocation failed, not attaching\n"); > > + return; > > eww. parport_driver.attach() returns void so there's no way to > propagate the error code back. That sucks a bit.
IMHO, the whole parport thing currently sucks quite a bit. -- Alexander
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCHv3 00/16] pps: several fixes and improvements
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 01/16] pps: trivial fixes
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 03/16] pps: fix race in PPS_FETCH handler
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 04/16] pps: unify timestamp gathering
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 06/16] pps: convert printk/pr_* to dev_*
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 07/16] pps: move idr stuff to pps.c
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 08/16] pps: add async PPS event handler
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 09/16] pps: don't disable interrupts when using s ...
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 10/16] pps: use BUG_ON for kernel API safety checks
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 11/16] pps: simplify conditions a bit
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 13/16] pps: capture MONOTONIC_RAW timestamps as well
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 14/16] pps: add kernel consumer support
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 15/16] pps: add parallel port PPS client
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
[PATCHv3 16/16] pps: add parallel port PPS signal generator
, Alexander Gordeev
, (Wed Aug 4, 2:06 pm)
Re: [PATCHv3 13/16] pps: capture MONOTONIC_RAW timestamps ...
, john stultz
, (Wed Aug 4, 4:03 pm)
Re: [PATCHv3 13/16] pps: capture MONOTONIC_RAW timestamps ...
, Andrew Morton
, (Wed Aug 4, 4:29 pm)
Re: [PATCHv3 15/16] pps: add parallel port PPS client
, Andrew Morton
, (Wed Aug 4, 4:34 pm)
Re: [PATCHv3 16/16] pps: add parallel port PPS signal gene ...
, Andrew Morton
, (Wed Aug 4, 4:38 pm)
Re: [PATCHv3 03/16] pps: fix race in PPS_FETCH handler
, Vitezslav Samel
, (Wed Aug 4, 10:19 pm)
Re: [PATCHv3 01/16] pps: trivial fixes
, Rodolfo Giometti
, (Thu Aug 5, 1:57 am)
Re: [PATCHv3 03/16] pps: fix race in PPS_FETCH handler
, Rodolfo Giometti
, (Thu Aug 5, 2:15 am)
Re: [PATCHv3 04/16] pps: unify timestamp gathering
, Rodolfo Giometti
, (Thu Aug 5, 2:17 am)
Re: [PATCHv3 03/16] pps: fix race in PPS_FETCH handler
, Alexander Gordeev
, (Thu Aug 5, 3:19 am)
Re: [PATCHv3 03/16] pps: fix race in PPS_FETCH handler
, Vitezslav Samel
, (Thu Aug 5, 4:07 am)
Re: [PATCHv3 13/16] pps: capture MONOTONIC_RAW timestamps ...
, Alexander Gordeev
, (Thu Aug 5, 5:16 am)
Re: [PATCHv3 13/16] pps: capture MONOTONIC_RAW timestamps ...
, Alexander Gordeev
, (Thu Aug 5, 5:29 am)
Re: [PATCHv3 15/16] pps: add parallel port PPS client
, Alexander Gordeev
, (Thu Aug 5, 5:48 am)
Re: [PATCHv3 03/16] pps: fix race in PPS_FETCH handler
, Alexander Gordeev
, (Thu Aug 5, 7:31 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Colin Cross
[PATCH 12/21] ARM: tegra: Add suspend and hotplug support
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Colocation donated by:
Syndicate