From: Holger Schurig Date: Tue, 1 Apr 2008 12:50:43 +0000 (+0200) Subject: libertas: convert libertas driver to use an event/cmdresp queue X-Git-Tag: v2.6.26-rc1~1138^2~9^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7919b89c8276d657976d4d4d6b7cb58ea1aa08c3;p=pandora-kernel.git libertas: convert libertas driver to use an event/cmdresp queue This patch (co-developed by Dan Williams and Holger Schurig) uses a kfifo object for events and a swapping buffer scheme for the command response to preserve the zero-copy semantics of the CF driver and keep memory usage low. The main thread should only ever touch the buffer indexed by priv->resp_idx, while the interface code is free to write to the second buffer, then swap priv->resp_idx under the driver spinlock. The firmware specs only permit one in-flight command, so there will only ever be one command response to process at a time. Signed-off-by: Holger Schurig Signed-off-by: Dan Williams Signed-off-by: John W. Linville --- Reading git-diff-tree failed