Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1315939

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

From Masahiro Yamada <yamada.masahiro@socionext.com>
Newsgroups linux.kernel
Subject [MMC question] make sure to receive mrq->data->sg_len == 1
Date 2016-01-24 18:40 +0100
Message-ID <qUwNQ-8aZ-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi.


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,
respectively.
Is this correct?



-- 
Best Regards
Masahiro Yamada

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[MMC question] make sure to receive mrq->data->sg_len == 1 Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-01-24 18:40 +0100

csiph-web