]> git.baikalelectronics.ru Git - kernel.git/commit
skd: Simplify the code for allocating DMA message buffers
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:13:06 +0000 (13:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Aug 2017 14:45:29 +0000 (08:45 -0600)
commit894eae6da2fe51f6679ccea4ef3ab61e21c27023
treeb4e1001d3f89f967dab4544859b955f107ee1095
parent793e14f6947958db7eb6fe415e89a0dd315a7273
skd: Simplify the code for allocating DMA message buffers

dma_alloc_coherent() guarantees alignment on a page boundary so
no explicit alignment is needed to align on a 64 byte boundary.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c
drivers/block/skd_s1120.h