18 Oct, 2007
1 commit
-
A small MMC driver cleanup.
Use the defined AT91_MCI_ERRORS in at91_mci_completed_command() instead
of specifying all the error bits individually.Signed-off-by: Andrew Victor
Signed-off-by: Nicolas Ferre
Signed-off-by: Pierre Ossman
17 Oct, 2007
2 commits
-
AFAICS, fallout from repacing include of blkdev.h with include of bio.h.
Signed-off-by: Al Viro
Signed-off-by: Linus Torvalds -
Make the SPI framework and drivers stop using class_device. Update docs
accordingly ... highlighting just which sysfs paths should be
"safe"/stable.Signed-off-by: Tony Jones
Signed-off-by: David Brownell
Cc: Greg KH
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
16 Oct, 2007
1 commit
-
* 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (95 commits)
[ARM] 4578/1: CM-x270: PCMCIA support
[ARM] 4577/1: ITE 8152 PCI bridge support
[ARM] 4576/1: CM-X270 machine support
[ARM] pxa: Avoid pxa_gpio_mode() in gpio_direction_{in,out}put()
[ARM] pxa: move pxa_set_mode() from pxa2xx_mainstone.c to mainstone.c
[ARM] pxa: move pxa_set_mode() from pxa2xx_lubbock.c to lubbock.c
[ARM] pxa: Make cpu_is_pxaXXX dependent on configuration symbols
[ARM] pxa: PXA3xx base support
[NET] smc91x: fix PXA DMA support code
[SERIAL] Fix console initialisation ordering
[ARM] pxa: tidy up arch/arm/mach-pxa/Makefile
[ARM] Update arch/arm/Kconfig for drivers/Kconfig changes
[ARM] 4600/1: fix kernel build failure with build-id-supporting binutils
[ARM] 4599/1: Preserve ATAG list for use with kexec (2.6.23)
[ARM] Rename consistent_sync() as dma_cache_maint()
[ARM] 4572/1: ep93xx: add cirrus logic edb9307 support
[ARM] 4596/1: S3C2412: Correct IRQs for SDI+CF and add decoding support
[ARM] 4595/1: ns9xxx: define registers as void __iomem * instead of volatile u32
[ARM] 4594/1: ns9xxx: use the new gpio functions
[ARM] 4593/1: ns9xxx: implement generic clockevents
...
15 Oct, 2007
1 commit
-
Make sure the mmc_spi driver can build without CONFIG_BLOCK.
Issue noted by "Avuton Olrich" and randconfig.While that won't be a common configuration, sometimes embedded
boards use SDIO to interface WLAN or Bluetooth chips (vs some
parallel interface), and don't provide an MMC/SD socket for use
with flash memory cards.Signed-off-by: David Brownell
Signed-off-by: Linus Torvalds
13 Oct, 2007
1 commit
-
Signed-off-by: Russell King
12 Oct, 2007
1 commit
-
Using weight32() to determine if a value is a power of 2 is a rather
heavi weight solution. The classic idiom is (x & (x - 1)) == 0, but
the kernel already provide a is_power_of_2 function for it.Signed-off-by: Nicolas Pitre
Signed-off-by: Pierre Ossman
11 Oct, 2007
1 commit
-
The PXA has two transmit FIFOes, each32 byte deep. when one FIFO is
full and the other one has been transmitted, they are automatically
swapped and DMA is triggered for another 32 byte burst. However, when
there is less than 32 bytes left to send, the FIFO swap has to be done
manually. This is required for some SDIO transfers which are not
required to be multiples of 32 bytes.A DMA completion interrupt is set for each descriptor which length isn't
a multiple of 32 in order to force the FIFO swap. While at it, the DMA
interrupt handler has been made a bit more resilient against errors.Signed-off-by: Nicolas Pitre
Signed-off-by: Pierre Ossman
04 Oct, 2007
5 commits
-
The forcedma and nodma module parameters can be replaced with the quirks
parameter, so remove the redundancy.Signed-off-by: Pierre Ossman
-
Some controllers like ENE712 can't work properly with DMA mode,
add this quirk to force these kinds of HW work with PIO modeSigned-off-by: Feng Tang
Signed-off-by: Pierre Ossman -
Many host controllers don't fully follow the PCI spec to claim
whether they support DMA in PCI class register. Leave the driver
to judge it from the Capability register, quirks and module parameterSigned-off-by: Feng Tang
Signed-off-by: Pierre Ossman -
Signed-off-by: Nicolas Pitre
Signed-off-by: Pierre Ossman -
Thanks to Matt Domsch and Rezwanul Kabir at Dell, we know how to disable the
MMC controller on the multi-function Ricoh R5C832. The MMC controller needs
to be disabled or it will steal MMC cards from the SD controller where they
would otherwise be supported by the Linux SDHCI driver.Signed-off-by: Philipl Langdale
Signed-off-by: Pierre Ossman
26 Sep, 2007
4 commits
-
Again, only available from PXA27x.
Signed-off-by: Bridge Wu
Signed-off-by: Nicolas Pitre
Signed-off-by: Pierre Ossman -
From PXA27x, it is possible to do 4-bit data transfers.
Signed-off-by: Bridge Wu
Signed-off-by: Nicolas Pitre
Signed-off-by: Pierre Ossman -
From PXA27x, it is possible to do 2048-byte block transfers.
Signed-off-by: Nicolas Pitre
Signed-off-by: Pierre Ossman -
Pending interrupts should be determined from both I_REG and I_MASK
registers.Signed-off-by: Bridge Wu
Signed-off-by: Nicolas Pitre
Signed-off-by: Pierre Ossman
25 Sep, 2007
1 commit
-
The patch enables to define MMC host get_ro() method through platform data.
Signed-off-by: Pavel Pisa
Signed-off-by: Pierre Ossman
24 Sep, 2007
3 commits
-
This is the latest version of the MMC-over-SPI support. It works
on 2.6.23-rc2 plus git-mmc (from rc1-mm2), along with the preceding
patches which teach the rest of the MMC stack about SPI.The main issue of note is that sometimes cards need to be power cycled
to recover after certain faults. Also, it may sometimes be necessary
to disable CRCs. ("modprobe mmc_core use_spi_crc=n")Signed-off-by: David Brownell
Cc: mikael.starvik@axis.com,
Cc: Hans-Peter Nilsson
Cc: Jan Nikitenko
Cc: Mike Lavender
Signed-off-by: Pierre Ossman -
Add support for relaying the sdio interrupt signal from the card.
Signed-off-by: Pierre Ossman
-
This kind of transfer is not supported, so don't advertise it and make it
fail early.Signed-off-by: Marc Pignat
Signed-off-by: Pierre Ossman
23 Sep, 2007
3 commits
-
The MMC_DATA_MULTI flag never had a proper definition of what it
means, so remove it and let the drivers check the block count in
the request.Signed-off-by: Pierre Ossman
-
Remove the BYTEBLOCK capability and let the broken hosts fail the
requests with -EINVAL instead.Signed-off-by: Pierre Ossman
-
Convert the MMC layer to use standard error codes and not its own,
incompatible values.Signed-off-by: Pierre Ossman
11 Sep, 2007
1 commit
-
This patch fixes a bug in AT91 mmc host driver, that enables the wakeup
from suspend on card detection pin even if the card detect pin is not
available (==0). If not card detection pin is defined, IRQ0 == FIQ gets
enabled and if some activity is present on that pin, the system gets a
FIQ request, that causes a crash.Signed-off-by: Anti Sullin
Signed-off-by: Nicolas Ferre
Signed-off-by: Pierre Ossman
23 Aug, 2007
4 commits
-
When we get unexpected interrupts, also print which interrupt it was.
Signed-off-by: Pierre Ossman
-
It is fully legal for a controller to start issuing data related
interrupts before it has signalled that the command has completed.
Make sure the driver actually can handle this.Signed-off-by: Pierre Ossman
-
Some SDHC cards report an invalid maximum block size, in these cases
assume they support block sizes up to 512 bytes instead of returning
an error.Signed-off-by: David Vrabel
Signed-off-by: Pierre Ossman -
The block count register shouldn't be trusted for single block transfers,
so avoid using it completely when calculating transferred bytes.Signed-off-by: Pierre Ossman
09 Aug, 2007
2 commits
-
Some cleanup with whitespace/tab at the end of lines.
Signed-off-by: Nicolas Ferre
Signed-off-by: Pierre Ossman -
This patch fixes the following section mismatch warnings
...
WARNING: vmlinux.o(.init.text+0x29d40): Section mismatch: reference to .exit.text:wbsd_release_resources (between 'wbsd_init' and 'wbsd_probe')
WARNING: vmlinux.o(.init.text+0x29d49): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
WARNING: vmlinux.o(.init.text+0x29f28): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')...
Signed-off-by: Gabriel Craciunescu
Acked-by: Sam Ravnborg
Signed-off-by: Pierre Ossman
26 Jul, 2007
4 commits
-
Remove the extra debugging output that now is properly printed
by the core.Signed-off-by: Pierre Ossman
-
Make sure all headers in the files reflect their true position
in the tree.Signed-off-by: Pierre Ossman
-
Added its pci_id and implemented a quirk for it because this
controller needs to reset cmd and data when setting ios.Signed-off-by: Leandro Dorileo
Signed-off-by: Otavio Salvador
Signed-off-by: Pierre Ossman -
Some controllers signal "command complete" even on failures (which
they are allowed to do according to the spec). Make sure we check
the error bits first so we don't get any false positives.Signed-off-by: Pierre Ossman
21 Jul, 2007
2 commits
-
The controller has a bit indicating that one of the higher bits (the
error bits) are set. A previous bug caused this bit to be masked, but
since that bug has been fixed we have to clear it explicictly.Signed-off-by: Pierre Ossman
-
This piece of code enable the system to be wake-up by a card insertion or removal.
Signed-off-by: Marc Pignat
Signed-off-by: Nicolas Ferre
Signed-off-by: Pierre Ossman
13 Jul, 2007
1 commit
-
* 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (50 commits)
[ARM] sa1100: remove boot time RTC initialisation
[ARM] sa1100: stop doing our own rtc management over suspend
[ARM] 4474/1: Do not check the PSR_F_BIT in valid_user_regs
[ARM] 4473/2: Take the HWCAP definitions out of the elf.h file
[ARM] pxa: move platform devices to separate header file
[ARM] pxa: move device registration into CPU-specific file
[ARM] pxa: remove boot time RTC initialisation
[ARM] pxa: stop doing our own rtc management over suspend
[ARM] 4451/1: pxa: make dma.c generic and remove cpu specific dma code
[ARM] 4450/1: pxa: add pxa25x_init_irq() and pxa27x_init_irq()
[ARM] 4440/1: PXA: enable the checking of ICIP2 for IRQs
[ARM] 4438/1: PXA: remove #ifdef .. #endif from pxa_gpio_demux_handler()
[ARM] 4437/1: PXA: move the GPIO IRQ initialization code to pxa_init_irq_gpio()
[ARM] 4436/1: PXA: move low IRQ initialization code to pxa_init_irq_low()
[ARM] 4435/1: PXA: remove PXA_INTERNAL_IRQS
[ARM] 4434/1: PXA: remove PXA_IRQ_SKIP
[ARM] pxa: Fix PXA27x suspend type validation, remove pxa_pm_prepare()
[ARM] pxa: move pm_ops structure into CPU specific files
[ARM] pxa: introduce cpu_is_pxaXXX macros
[ARM] pxa: remove MMC register defines from pxa-regs.h
...
12 Jul, 2007
1 commit
-
pxamci.h redefines the MMC registers differently so they can be used
with ioremap. Remove the incompatible definitions from pxa-regs.h.Signed-off-by: Russell King
10 Jul, 2007
1 commit
-
Fixes hanging using multi block operations (seen during CMD25).
Follows closely the datasheet flowcharts.This piece of code handles better big file writing. I had to take care
of the notbusy signal during write (at91_mci_handle_cmdrdy function) and
to rearrange the AT91_MCI_ENDRX and AT91_MCI_RXBUFF flag usage.Signed-off-by: Nicolas Ferre
Signed-off-by: Pierre Ossman