diff options
author | Qiang Liu <qiang.liu@freescale.com> | 2013-03-14 01:48:51 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-03-25 07:05:55 (GMT) |
commit | 5c04efe80f3f0ae9449600beb5848b534cd1a613 (patch) | |
tree | 51c2dff31013b316d0fb3603b599316994d88363 /Documentation/mmc/mmc-dev-attrs.txt | |
parent | 99399318b35bce468b45db983a3deec7ea7959bc (diff) | |
download | linux-fsl-qoriq-5c04efe80f3f0ae9449600beb5848b534cd1a613.tar.xz |
SD/MMC: Add an interface to re-initialize the bounce buffer
Add bounce_size under /sys/block/mmcblk0/bouncesz. Support dynamic adjustment of
bounce buffer in run-time (include mounted or unmounted filesystem)
/sys/block/mmcblk0/bouncesz should be integer multiple of 512, the value should
be range from 4096 to 4194304
1. Use variable instead of MMC_QUEUE_BOUNCESZ
2. Re-initialize bounce buffer accorinding to new bounce size at run-time
Signed-off-by: Qiang Liu <qiang.liu@freescale.com>
Change-Id: I66849d61f4bae903c9c329cf379a55c86bb30890
Reviewed-on: http://git.am.freescale.net:8181/324
Reviewed-by: Huang Changming-R66093 <Chang-Ming.Huang@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'Documentation/mmc/mmc-dev-attrs.txt')
-rw-r--r-- | Documentation/mmc/mmc-dev-attrs.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/mmc/mmc-dev-attrs.txt b/Documentation/mmc/mmc-dev-attrs.txt index 0d98fac..492fd96 100644 --- a/Documentation/mmc/mmc-dev-attrs.txt +++ b/Documentation/mmc/mmc-dev-attrs.txt @@ -7,6 +7,8 @@ SD or MMC device. The following attributes are read/write. force_ro Enforce read-only access even if write protect switch is off. + bouncesz Support dynamic adjustment of bounce buffer size at runtime, + from 4096 to 4194304, integer multiple of 512 bytes only. SD and MMC Device Attributes ============================ |