summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-highlander.c
diff options
context:
space:
mode:
authorMichal Nazarewicz <m.nazarewicz@samsung.com>2010-03-15 21:38:31 +0100
committerStephen Rothwell <sfr@canb.auug.org.au>2010-03-30 10:59:47 +1100
commit26633bcd5e88751bb19e7f22874be5864f344674 (patch)
treea7ab69008f41e71580e01c86d66b7189e44279d8 /drivers/i2c/busses/i2c-highlander.c
parentc5f49169827de47dc739bc53ba4694fc1c35e1a3 (diff)
USB: f_mass_storage: dynamic buffers for better alignment
"Static" buffers in fsg_buffhd structure (ie. fields which are arrays rather then pointers to dynamically allocated memory) are not aligned to any "big" power of two which may lead to poor DMA performance (copying "by hand" of head or tail) or no DMA at all even if otherwise hardware supports it. Therefore, this patch makes mass storage function use kmalloc()ed buffers which are (because of their size) page aligned (which should be enough for any hardware). Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-highlander.c')
0 files changed, 0 insertions, 0 deletions