]> Pileus Git - ~andy/linux/commit
mmc: core: Remove bounce buffer in mmc_send_cxd_data()
authorKyungsik Lee <kyungsik.lee@lge.com>
Fri, 3 Aug 2012 00:58:03 +0000 (00:58 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 19 Sep 2012 08:29:42 +0000 (16:29 +0800)
commit1a41313e7f8c5b724a2e3ff66558dbe811844423
treec6a536fc3288f76049b6301c7c7a4e8ce553e067
parent8f63795c60ef5bc3dbfcbf19c1ac64ed79d23c62
mmc: core: Remove bounce buffer in mmc_send_cxd_data()

It is expected that Extended CSD register (the size of this register
is larger than CID/CSD) will be referenced more frequently as more
fields have been added to Extended CSD and it seems that it is not
a good option to double the memory used.

This patch is intended to avoid the use of bounce buffer for reading
Extended CSD register in mmc_send_cxd_data(). It will provide a better
performance gain by removing memcpy() overhead for a half KiB and
a redundant bounce buffer allocated repeatedly at the cost of providing
DMA-capable buffer from upper caller (but on-stack buffer is allowed
with no performance gain).

Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com>
Reviewed-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc_ops.c