summaryrefslogtreecommitdiff
path: root/sys/dev/sdmmc
AgeCommit message (Collapse)Author
2009-04-07Remove recursion from the sdmmc locking regime.Bret Lambert
In snaps for a while. Originally hacked on phessler@'s couch. Testing by many, input from jsg@ "I'm tired of seeing the Ms" deraadt@
2009-03-24Remove redundant casts.Mark Kettenis
2009-02-20Let the sdmmc adapters tell the sdmmc layer how much sectors they canMiod Vallat
transfer with one command. Build on this and the recent minphys() changes in the sdmmc layer to crank transfers at the maximum possible size instead of a sad DEV_BSIZE. Depending on your controller, this can speed up sdmmc I/O up to 2.5 times.
2009-02-16Extend the scsi_adapter minphys() callback to take a struct scsi_link *Miod Vallat
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
2009-02-06Fix crash on zaurus when sd memory card plugged by providing an attachmentAlexander Yurchenko
structure that slave devices like sbt expect.
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).Alexander Yurchenko
No functional changes. ok krw@ miod@
2009-01-13Trivial lvalue abuse fixes, no binary changes.Alexander Yurchenko
ok millert@ tedu@
2009-01-09Explain that any check pattern will work.Jonathan Gray
Suggested by miod@
2009-01-09Add support for SDHC cards on SDHC capable host controllers.Jonathan Gray
Thanks to everyone who tested in particular jsing@ who found several problems in the initial diffs. ok dlg@ jsing@ miod@
2008-12-02backout: would have been nice if this had been tested, to see that itTheo de Raadt
crashes the moment a card is plugged in.
2008-11-24Rework sdmmc locking to remove recursionBret Lambert
Add SDMMC_ASSERT_LOCKED(), replacing many locking calls, and sprinkling the assertion to make sure that future changes don't catch us out "please commit" uwe@
2008-11-01new workq_create interface. discovered by Vladimir KirillovTed Unangst
2008-02-25Fix broken cast on 64bit platformsUwe Stuehler
2008-02-24Sync sys/netbt with NetBSDUwe Stuehler
ok deraadt@
2007-11-29unbreak the zaurus kernel build by adding a missing headerTodd T. Fries
co-discovered by robert@
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
obvious.
2007-09-17Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-09-11KNFGilles Chehade
prompted and "much better" by marco@, ok pyr@
2007-09-10more MALLOC/FREE -> malloc/free and M_ZERO changesGilles Chehade
ok pyr@
2007-09-06Don't try disabling bus power before setting the voltage onJonathan Gray
the buggy ENE controller. Tested by Alexey Suslikov <alexey.suslikov@gmail.com> who pointed out a similiar workaround in Linux. ok miod@, nit and ok kettenis@
2007-06-19Pass the correct flag to sbt_start() in sbt_start_cmd()Uwe Stuehler
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