On Sat, 14 Jul 2007 15:06:42 -0700 David Brownell <[EMAIL PROTECTED]> wrote:
> @@ -302,13 +309,14 @@ static int mmc_blk_issue_rq(struct mmc_q > goto cmd_err; > } > > - if (rq_data_dir(req) != READ) { > + if (!mmc_host_is_spi(card->host) && rq_data_dir(req) != READ) { > do { > int err; > > cmd.opcode = MMC_SEND_STATUS; > cmd.arg = card->rca << 16; > - cmd.flags = MMC_RSP_R1 | MMC_CMD_AC; > + cmd.flags = MMC_RSP_SPI_R2 | MMC_RSP_R1 > + | MMC_CMD_AC; > err = mmc_wait_for_cmd(card->host, &cmd, 5); > if (err) { > printk(KERN_ERR "%s: error %d > requesting status\n", Nitpicking, but if this code isn't executed on a SPI host then a SPI response type is hardly needed. :) Otherwise ok. Rgds -- -- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org PulseAudio, core developer http://pulseaudio.org rdesktop, core developer http://www.rdesktop.org ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general