linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Colin McCabe" <colin@cozybit.com>
To: "Peter Wippich" <pewi@gw-instruments.de>
Cc: "Andrey Yurovsky" <andrey@cozybit.com>,
	"Harald Welte" <laforge@gnumonks.org>,
	linux-wireless@vger.kernel.org,
	"Stefan Schmidt" <stefan@datenfreihafen.org>,
	libertas-dev@lists.infradead.org
Subject: Re: [PATCH 3/3] libertas: if_spi, driver for libertas GSPI devices
Date: Tue, 23 Dec 2008 12:25:40 -0800	[thread overview]
Message-ID: <314b98fa0812231225x2bf6f3faudeedfa65adbc1cb0@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.63.0812191745460.18864@redbean.intranet.gw-instruments.de>

Hi Peter,

If you look in include/linux/spi/spi.h, there is a comment that says:
/*
 * likely need more hooks for more protocol options affecting how
 * the controller talks to each chip, like:
 *  - memory packing (12 bit samples into low bits, others zeroed)
 *  - priority
 *  - drop chipselect after each word
 *  - chipselect delays
 *  - ...
 */

So the chip select features that our hardware needs (don't drop
chipselect after each word, busy-waits during the transaction) are not
yet part of the generic SPI layer. But they are "TBD."

I agree that we should move them into the generic SPI layer. Maybe
I'll come up with a patch to the SPI layer itself to do exactly that,
once I get back from vacation.

cheers,
Colin.


On Fri, Dec 19, 2008 at 8:57 AM, Peter Wippich <pewi@gw-instruments.de> wrote:
>
> Hi Andrey,
>
>> The '8686 requires us to assert CS# and then hold it asserted for the
>> entire transaction.  The transaction is an arbitrary number of SPI
>> transfers.  Most host controllers cannot do this (they'll toggle CS#
>> between individual transactions) and therefore we chose to not use the
>> controller CS# line and use a GPIO.  Can you suggest a different way
>> to do this given the current SPI framework?
>
> This can be handled by the SPI driver. See pxa2xx_spi.c as an example.
> Look for cs_control() to get the picture.....
> Perhaps this should go to the general driver and not be handled by the
> chip specific code. Seems a problem general enough.
>
> Chears,
>
> Peter
>

  parent reply	other threads:[~2008-12-23 20:25 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
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 [this message]
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=314b98fa0812231225x2bf6f3faudeedfa65adbc1cb0@mail.gmail.com \
    --to=colin@cozybit.com \
    --cc=andrey@cozybit.com \
    --cc=laforge@gnumonks.org \
    --cc=libertas-dev@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pewi@gw-instruments.de \
    --cc=stefan@datenfreihafen.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).