Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Brownell
Date: Monday, July 21, 2008 - 1:49 pm

On Monday 14 July 2008, Ben Nizette wrote:

Yes, that's how some of the early mmc-spi work was done.  ;)



ISTR a patch for that, sitting somewhere in my mailbox waiting
for review cycles.  I've sent examples of such stuff around
before too.

I've held back submitting a spi-gpio driver until I could come
up with a way to configure it which would let the GPIO calls
get inlined ... because otherwise, there's a nasty speed penalty.

It's the difference between a function call per GPIO operation
and an instruction per GPIO operation.  Consider that each SPI
clock cycle requires four such operations, and GPIO function
calls often take 30 instructions ... there's a big penalty to
the non-inlined bitbangers, which is only partly addressed by
having those function calls sitting in I-cache.

- Dave
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add dynamic MMC-over-SPI-GPIO driver, Michael Buesch, (Mon Jul 14, 12:09 pm)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, Andrew Morton, (Mon Jul 14, 1:54 pm)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, Ben Nizette, (Mon Jul 14, 10:06 pm)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, Michael Buesch, (Tue Jul 15, 5:58 am)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, Michael Buesch, (Tue Jul 15, 6:00 am)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, Michael Buesch, (Tue Jul 15, 10:42 am)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, David Brownell, (Mon Jul 21, 1:49 pm)