summaryrefslogtreecommitdiff
path: root/sys/dev/sdmmc
AgeCommit message (Collapse)Author
2007-06-19better debug outputUwe Stuehler
2007-06-06Oops, dispatch packets to the correct hci_input_xxx() functionUwe Stuehler
2007-06-06Let it compile with SBT_DEBUGUwe Stuehler
2007-06-03Implement transmission of ACL and SCO packetsUwe Stuehler
2007-06-02split up large CMD53 reads and writesUwe Stuehler
2007-06-02retry reading HCI packets a few times before giving upUwe Stuehler
2007-05-31don't print debug messagesUwe Stuehler
2007-05-31Clean up and fix sbt_write_packet()Uwe Stuehler
2007-05-31An SDIO Bluetooth driver, only initial bits and therefore not enabled yetUwe Stuehler
2007-05-31Add SDIO card interrupt handling codeUwe Stuehler
2007-05-26Bug fixes and initial card interrupt support in sdhcUwe Stuehler
- Fix data transfers where c_datalen is not a multiple of 4 - Fix the handling of MMC commands with c_datalen < c_blklen - Change the order of register writes in sdhc_start_command() and only write block count if we transfer multiple blocks - Enable the SDIO card interrupt (but don't acknowledge it yet)
2007-05-26Wait until an I/O function becomes ready after enabling it, and makeUwe Stuehler
sdmmc_io_rw_extended() non-incremental, by default.
2007-05-26Use M_TEMP, not M_DEVBUF for temporary memoryUwe Stuehler
2007-05-11regenMarcus Glocker
2007-05-11Add vendor and product; AboCom Systems, Inc. SDW11G.Marcus Glocker
2007-04-11((cast)ptr)++ is not a valid lvalue, despite being tolerated by gcc, soMiod Vallat
replace the post-increment with a proper statement. ok uwe@
2007-03-24Dump command and response when debugging is enabledUwe Stuehler
2007-03-18Define MMC_STOP_TRANSMISSION command (CMD12)Uwe Stuehler
2007-03-18DHC automatically sends a CMD12 after multiple-block transfers, but otherUwe Stuehler
controllers don't. Put in a temporary hack for pxammc on Zaurus.
2007-03-18Support the PXA27x SD/SDIO/MMC controller on ZaurusUwe Stuehler
We use the suggested workaround for the problem E40 in the PXA27x errata sheet. Unfortunately this limits the bus speed to 9.75Mhz.
2007-01-31Workaround for the problem where the SD card reader stops responding afterClaudio Jeker
a card is ejected. Problem identified and patch provided by Matthew R. Dempsky < mrd at alkemio dot org >: > According to the Simplified SD Host Controller spec, this change > shouldn't affect anything. All of the bits in the Software Reset > register are labeled as ignoring 0-bit writes, and yet somehow it > changes behavior. This seems to reliably fix the problems seen on many X40 laptops. Tested by many, OK beck@, "should be good to go" henning@
2007-01-28Restore spl level before exiting on error.Kenneth R Westerback
Noted by Matthew R. Dempsky.
2006-12-20syncTheo de Raadt
2006-12-20add atheros idsTheo de Raadt
2006-11-29move CSD/CID decoding to sdmmc_mem.cUwe Stuehler
2006-11-29make interrupt handler stay quiet in case of shared interruptsUwe Stuehler
2006-11-29oops, don't always enable debuggingUwe Stuehler
2006-11-29Show debug messages depending on current debug level, which may beUwe Stuehler
changed with ddb or sdio(8).
2006-11-29add ioctl hack to support the sdio(8) userland toolUwe Stuehler
2006-11-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2006-10-19s/Mhz/MHz/ in comments and printf() stringsTom Cosgrove
ok jsg@
2006-10-17dont pass a copy of sdmmcs scsi_link struct on the stack to the midlayer.David Gwynne
it triggered a panic on detach of the scsibus when it tried to use the adapters scsi_link struct that was no longer there. issue found by and this fix tested by pedro@ ok krw@ looks right deraadt@
2006-08-23Protect scsi_done() with splbio(), discussed with and okay dlg@, marco@Pedro Martelletto
and fgsch@, uwe@ time-out :(
2006-07-30more.Federico G. Schwindt
2006-07-30add some more definitions.Federico G. Schwindt
2006-07-30o Change sdhc_soft_reset() to pass the bits we want to reset and waitFederico G. Schwindt
until all bits are cleared. o Change sdhc_host_reset() to use the above function and use RESET_ALL. This avoid timeouts on TI controllers when initializing the controller but does not fix the command timeouts. uwe@ ok.
2006-07-19add some more debugging code.Federico G. Schwindt
2006-07-18syncTheo de Raadt
2006-07-18fix vendor typoTheo de Raadt
2006-07-18syncTheo de Raadt
2006-07-18mediatek/spectecTheo de Raadt
2006-07-18First and foremost, avoid an obious race between two or more processesUwe Stuehler
trying to get MMC commands through to the SD/MMC host controller via the emulated SCSI layer. This is achieved by ensuring exclusive access to the host controller for one process during any MMC command and during a sequence of commands at the sdmmc(4) layer. While at it, the command processing thread has been moved to sdmmc(4), so as to simplify the implementation of future host controller drivers. This should also pave the way for further cleanup of the code and for new drivers. Minor cleanups are included in this commit, as well.
2006-07-17silently return if sdmmc is disabled/not in the kernel. uwe@ ok.Federico G. Schwindt
2006-07-17correct the way hosts are alloc'ed. fixes crashes on controllers withFederico G. Schwindt
multiple slots. tested by me and ian@. uwe@ ok.
2006-07-17correct base freq mask per spec. sdhc found in the nx6125 now configuresFederico G. Schwindt
correctly. uwe@ ok.
2006-07-10print the frequency in mhz, really.Federico G. Schwindt
2006-06-29- Assign RCAs beginning at 1 since 0 is used to deselect all cards.Uwe Stuehler
- Always set the "SDIO function 0" pointer to something, even if it is a memory-only card to avoid further special cases in SDIO drivers.
2006-06-29Oops! Clear the "function 0" pointer when the card goes away.Uwe Stuehler
2006-06-29Thanks to ian@ who experimented a lot with his TI PCI7621 SDHC, we knowUwe Stuehler
that the controller "kind-of" works, but it does not indicate completion of the host controller reset. Thus we cannot know whether the reset was successful or not, so don't return an error if the reset timed out.
2006-06-19Appease the printf gods here tooMiod Vallat