All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andrey Yurovsky" <andrey@cozybit.com>
To: "Dan Williams" <dcbw@redhat.com>
Cc: "Angel Roman" <angel.roman@mdesystems.com>,
	"Colin McCabe" <colin@cozybit.com>,
	linux-wireless@vger.kernel.org, libertas-dev@lists.infradead.org
Subject: Re: [PATCH 3/3] libertas: if_spi, driver for libertas GSPI devices
Date: Tue, 16 Dec 2008 10:08:39 -0800	[thread overview]
Message-ID: <45e8e6c40812161008t3c0e04adge22382dd4b6f13f9@mail.gmail.com> (raw)
In-Reply-To: <1229449129.7307.51.camel@localhost.localdomain>

On Tue, Dec 16, 2008 at 9:38 AM, Dan Williams <dcbw@redhat.com> wrote:
> On Mon, 2008-12-15 at 22:44 -0500, Angel Roman wrote:
>> Hi Colin,
>>
>> I have support for the gspi as well. I've been trying to get in contact
>> with Dan Williams in order to contribute it to the list.
>
> Sorry about that... it's in my queue and I'll try to get to do some
> review in the next few days.  Doing the new interface isn't a ton of
> code, and I'd expect both yours and Colin's drivers to be quite similar
> as there's only a few ways this thing can be done :)
>
> The submission process is basically just like Colin did; generate a
> series of patches of your latest code (split into independent patches if
> possible) based on a kernel version (ideally the latest kernel version
> or better yet, wireless-testing.git) and then post it to linux-wireless
> and maybe cc libertas-dev as well.

We've been working/testing against a kernel that's pretty close to
upstream and then also against wireless-testing to make this driver
upstream-friendly and hopefully easy to merge.  If you have access to
a Blackfin development board, you can also clone our tree with the
driver integrated:
http://git.cozybit.com/
however it should be simple enough to build for other embedded platforms.

> Is there a generic SPI layer that could be used for the board-specific
> bits too, rather than putting that stuff in the libertas tree?  I assume
> that the SPI bus is more or less generic on your hardware (ie you could
> put something else on the other end instead of the 8686), and thus it
> would be better if we could figure out way not to put some much board
> specific logic into the libertas driver itself.

The exception is the GPIO-based chip select signal that the '8686
requires, we otherwise use the generic SPI layer.  The protocol
requires the host to assert the CS# line and then hold it low for the
entire transaction (which can be of arbitrary length).  Most SPI host
controllers cannot do this and therefore a plain GPIO is used.  The
board-specific config for this is not much different from configuring
your SPI chips in your mach-xxxx/board.c

-- 
Andrey Yurovsky
cozybit Inc.

  parent reply	other threads:[~2008-12-16 18:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-16  3:27 [PATCH 0/3] libertas: driver for GSPI devices Colin McCabe
2008-12-16  3:27 ` [PATCH 1/3] libertas: Fix alignment issues in libertas core Colin McCabe
2008-12-16  3:27   ` [PATCH 2/3] libertas: Update libertas core with GSPI constants Colin McCabe
2008-12-16  3:27     ` [PATCH 3/3] libertas: if_spi, driver for libertas GSPI devices Colin McCabe
2008-12-16  3:44       ` Angel Roman
2008-12-16 17:38         ` Dan Williams
2008-12-16 18:05           ` Angel Roman
2008-12-16 18:08           ` Andrey Yurovsky [this message]
2008-12-19 16:08       ` Harald Welte
2008-12-19 16:31         ` Andrey Yurovsky
2008-12-19 16:57           ` Peter Wippich
2008-12-19 18:17             ` Andrey Yurovsky
2008-12-23 20:25             ` Colin McCabe
2008-12-16 15:56 ` [PATCH 0/3] libertas: driver for " Peter Wippich
2008-12-16 16:56   ` Andrey Yurovsky
2008-12-17 11:09     ` Peter Wippich

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=45e8e6c40812161008t3c0e04adge22382dd4b6f13f9@mail.gmail.com \
    --to=andrey@cozybit.com \
    --cc=angel.roman@mdesystems.com \
    --cc=colin@cozybit.com \
    --cc=dcbw@redhat.com \
    --cc=libertas-dev@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.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: link
Be 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.