Thread (43 messages) 43 messages, 9 authors, 2009-01-10

Re: [RFC 2.6.27 1/1] gpiolib: add support for batch set of pins

From: David Brownell <hidden>
Date: 2008-12-29 20:36:51
Also in: lkml

On Sunday 28 December 2008, Ben Nizette wrote:
quoted
quoted
gpio_set_batch(DB0, value, 0xFFFF, 16)

which has the nice performance benefit of skipping all the bit
counting in the most common use case scenario.
but has the requirement that the driver know exactly the board level 
impmentation details (something that doesn't sound generic).
The original use case for these batch operations was in a fastpath -
setting data lines on a framebuffer.
And the rationale for generalizing them was to let such fastpaths
stop being board-specific hacks.  :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help