Skip to contentSkip to conversation

bounce_sg and sg in mmc_queue

DISCUSSION J Freyensee 1 participant 2 messages Sep 21, 2011 – Sep 22, 2011 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

Hello:

Could anyone tell me in struct mmc_queue, what is the difference between 'struct scatterlist *bounce_sg' and 'struct scatterlist *sg' is?

I see 'bounce_sg' get used to copy data from/to the buffer upon a host read/write operation so I assume 'bounce_sg' points to the most recent data from a host controller read/write operation.

Thanks for the help.

Signature · 3 lines
J (James/Jay) Freyensee
Storage Technology Group
Intel Corporation
#1 lore raw
Quoted 9 lines · J Freyensee

Hello:

Could anyone tell me in struct mmc_queue, what is the difference between 'struct scatterlist *bounce_sg' and 'struct scatterlist *sg' is?

I see 'bounce_sg' get used to copy data from/to the buffer upon a host read/write operation so I assume 'bounce_sg' points to the most recent data from a host controller read/write operation.

If someone actually knows this, I will send up a patch documenting this in the code. I think some of the mmc code could use a little documentation??

Quoted 2 lines

Thanks for the help.

Signature · 3 lines
J (James/Jay) Freyensee
Storage Technology Group
Intel Corporation