- 15 7月, 2008 34 次提交
-
-
由 Harald Welte 提交于
Bugfix to ensure DMA channel allocated is freed on exit. Signed-off-by: NBen Dooks <ben-linux@fluff.org> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Harald Welte 提交于
This patch is a workaround of some S3C2410 MMC chip bug Signed-off-by: NBen Dooks <ben-linux@fluff.org> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Thomas Kleffel 提交于
This is the latest S3C MMC/SD driver by Thomas Kleffel with cleanups as suggested by AKPM done by Ben Dooks. Signed-off-by: NBen Dooks <ben-linux@fluff.org> Signed-off-by: NThomas Kleffel <tk@maintech.de> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
Be a bit more robust and fall back to PIO if someone is feeding us bogus addresses. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
Add support for the scatter-gather DMA mode present on newer controllers. As the mode requires 32-bit alignment, non-aligned chunks are handled by using a bounce buffer. Also add some new quirks to handle controllers that have bugs in the ADMA engine. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
The upcoming JMicron chips will have solved all the currently known bugs, so don't penalize them for older problems. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Manuel Lauss 提交于
The MMC core provides a carddetect poll feature, time to remove the driver's own implementation of it. Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Manuel Lauss 提交于
Don't process an MMC request if no card is present. Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Manuel Lauss 提交于
Clean up the codebase, no functional changes. - merge the au1xmmc.h header contents into the driver file, - indentation, spelling and style fixes. Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Manuel Lauss 提交于
Wire up the SD controllers' SDIO IRQ capability. Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Manuel Lauss 提交于
Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Manuel Lauss 提交于
Remove the DB1200 board-specific functions (card present, read-only, activity LED methods) and instead add platform data which is passed to the driver. This also allows for platforms to implement other carddetect schemes (e.g. dedicated irq) without having to pollute the driver code. The poll timer (used for pb1200) is kept for compatibility. With the board-specific stuff gone, the driver's ->probe() code can be cleaned up considerably. Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Ville Syrjala 提交于
The byte mode support fails to clear the byte mode bit in the command register, possibly leaving byte mode enabled with the counters programmed in non-byte mode. Signed-off-by: NVille Syrjala <syrjala@sci.fi> Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Ville Syrjala 提交于
According to the documentation the AT91SAM9261 MCI shares the block size limitations of the AT91RM9200 MCI. Also the errata documentation for AT91RM9200 and AT91SAM9261 state that stream commands are not supported. This has not been tested on actual hardware. Signed-off-by: NVille Syrjala <syrjala@sci.fi> Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Ville Syrjala 提交于
AT91SAM926[0/3] PDC must write at least 12 bytes. The code compiles and runs but the actual condition for this erratum did not trigger in my tests so it's unclear if it actually works as intended. Signed-off-by: NVille Syrjala <syrjala@sci.fi> Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Nicolas Ferre 提交于
In at91_mci_completed_command() function, this patch distinguishes command error and data error. It reports it in the corresponding error field. Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Nicolas Ferre 提交于
Reading AT91_MCI_SR again at the end of transfer can corrupt the error reporting. Some fields in the SR register are read-and-clear. Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Eric Benard 提交于
Enable SDIO interrupt handling. Signed-off-by: NEric Benard <ebenard@free.fr> Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Nicolas Ferre 提交于
at91_mci is capable of multiwrite. Enable it before it disappears. Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Nicolas Ferre 提交于
Modify bytes_xfered value after a write. That will report, as accurately as possible, the amount of sectors that are effectively written. This update introduces the check of the busy signal given by the card. Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Marc Pignat 提交于
The at91 mci controller internal state machine seems to often crash. This can be fixed by resetting the controller after each command for at91rm9200 and by setting the MCI_BLKR register on at91sam926*. Signed-off-by: NMarc Pignat <marc.pignat@hevs.ch> Signed-off-by: NHans J Koch <hjk@linutronix.de> Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Marc Pignat 提交于
Detect command timeout (or mci controller hangs). Signed-off-by: NMarc Pignat <marc.pignat@hevs.ch> Signed-off-by: NHans J Koch <hjk@linutronix.de> Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Marc Pignat 提交于
Implement transfer with size not modulo 4 for at91sam9*. Please note that the at91rm9200 simply can't handle this. Signed-off-by: NMarc Pignat <marc.pignat@hevs.ch> Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Anton Vorontsov 提交于
Now get_ro() callback must return 0/1 values for its logical states, and negative errno values in case of error. If particular host instance doesn't support RO/WP switch, it should return -ENOSYS. This patch changes some hosts in two ways: 1. Now functions should be smart to not return negative values in "RO asserted" case (particularly gpio_ calls could return negative values for the outermost GPIOs). Also, board code usually passes get_ro() callbacks that directly return gpioreg & bit result, so at91_mci, imxmmc, pxamci and mmc_spi's get_ro() handlers need take special care when returning platform's values to the mmc core. 2. In case of host instance didn't implement get_ro() callback, it should really return -ENOSYS and let the mmc core decide what to do about it (mmc core thinks the same way as the hosts, so it isn't functional change). Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Anton Vorontsov 提交于
This patch adds new platform data variable "caps", so platforms could pass theirs capabilities into MMC core (for example, platforms without interrupt on the CD line will most probably want to pass MMC_CAP_NEEDS_POLL). New platform get_cd() callback provided to optimize polling. Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
The Ricoh controllers cannot handle unaligned data blocks. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
Gracefully handle when the device is suddenly removed. Do a test read and avoid any further access if that read returns -1. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
JMicron chips sometimes have two interfaces to work around limitations in Microsoft's sdhci driver. This patch allows us to use either interface. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
Some of the JMicron chips requires us to manually enable the power output stages of the chip. Add the necessary hooks and functions to manage this. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
Give the quirk for broken timeout handling a better chance of handling more controllers by simply classifying the system as broken and setting a fixed value. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
Extend the quirks handling in the PCI driver to be able to have callbacks and not just flags. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
Remove the quirk to force DMA on the Ricoh and TI controllers as it is no longer needed. The only bug they have is that they use an incorrect PCI interface value, and that is not respected anymore. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
The SDHCI interface is not PCI specific, yet the Linux driver was intimitely connected to the PCI bus. This patch properly separates the PCI specific portion from the bus independent code. This patch is based on work by Ben Dooks but he did not have time to complete it. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
由 Pierre Ossman 提交于
The specification is insufficiently strict when it comes to how the hardware should update the block count register, making it useless for checking transfer progress. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
-
- 07 7月, 2008 1 次提交
-
-
由 Philipp Zabel 提交于
The pxa27x DMA controller defaults to 64-bit alignment. This caused the SCR reads to fail (and, depending on card type, error out) when card->raw_scr was not aligned on a 8-byte boundary. For performance reasons all scatter-gather addresses passed to pxamci_request should be aligned on 8-byte boundaries, but if this can't be guaranteed, byte aligned DMA transfers in the have to be enabled in the controller to get correct behaviour. Signed-off-by: NPhilipp Zabel <philipp.zabel@gmail.com> Signed-off-by: NPierre Ossman <drzeus@drzeus.cx> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
- 05 7月, 2008 4 次提交
-
-
由 Sascha Hauer 提交于
This patch introduces the clock API for i.MX and converts all in-Kernel drivers to use it. Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
-
由 Pierre Ossman 提交于
Even the newer ENE controllers have bugs in their DMA engine that make it too dangerous to use. Disable it until someone has figured out under which conditions it corrupts data. This has caused problems at least once, and can be found as bug report 10925 in the kernel bugzilla. Signed-off-by: NPierre Ossman <drzeus@drzeus.cx> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
由 Andres Salomon 提交于
The CaFe chip has a hardware bug that ends up with us getting a timeout value that's too small, causing the following sorts of problems: [ 60.525138] mmcblk0: error -110 transferring data [ 60.531477] end_request: I/O error, dev mmcblk0, sector 1484353 [ 60.533371] Buffer I/O error on device mmcblk0p2, logical block 181632 [ 60.533371] lost page write due to I/O error on mmcblk0p2 Presumably this is an off-by-one error in the hardware. Incrementing the timeout count value that we stuff into the TIMEOUT_CONTROL register gets us a value that works. This bug was originally discovered by Pierre Ossman, I believe. [thanks to Robert Millan for proving that this was still a problem] Signed-off-by: NAndres Salomon <dilinger@debian.org> Cc: Pierre Ossman <drzeus-list@drzeus.cx> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
由 Andres Salomon 提交于
This has been sitting around unloved for way too long.. The Marvell CaFe chip's SD implementation chokes during card insertion if one attempts to set the voltage and power up in the same SDHCI_POWER_CONTROL register write. This adds a quirk that does that particular dance in two steps. It also adds an entry to pci_ids.h for the CaFe chip's SD device. Signed-off-by: NAndres Salomon <dilinger@debian.org> Cc: Pierre Ossman <drzeus-list@drzeus.cx> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
- 03 7月, 2008 1 次提交
-
-
由 Paulius Zaleckas 提交于
imx_dma_request_by_prio can return channel number by itself. No need to supply variable address through parameters. Also converted all drivers using this function. Signed-off-by: NPaulius Zaleckas <paulius.zaleckas@teltonika.lt> Acked-by: NSascha Hauer <s.hauer@pengutronix.de> Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
-