[MMC question] make sure to receive mrq->data->sg_len == 1

From: Masahiro Yamada
Date: Sun Jan 24 2016 - 12:32:53 EST


I am tackling on an MMC host controller driver for the first time.
Forgive my newbie question.

The DMA engine on my MMC host is so simple
that it can only handle one physically contiguous region
during one CMD18/CMD25 sequence.

In other words, it would be very troublesome for the driver
to receive two scatter-list entries or more.
(mrq->data->sg_len > 1).

I have not deeply dived into the MMC subsystem,
but my first guess is that "max_segs" and "max_seg_size"
are related parameters for controlling the
number of the entries and total size of the scatter-list,
Is this correct?

Best Regards
Masahiro Yamada