/* If writing, bounce the data to the buffer before the request is sent to the host driver  */
void mmc_queue_bounce_pre(struct mmc_queue *mq)
/* If writing, bounce the data to the buffer before the request is sent to the host driver  */
void mmc_queue_bounce_pre(struct mmc_queue *mq)
{
	unsigned long flags;
	if (!mq->bounce_buf)
		return;
	if (rq_data_dir(mq->req) != WRITE)
		return;
	local_irq_save(flags);
	sg_copy_to_buffer(mq->bounce_sg, mq->bounce_sg_len,
		mq->bounce_buf, mq->sg[0].length);
	local_irq_restore(flags);
}