summaryrefslogtreecommitdiff
path: root/include/linux/compiler_types.h
diff options
context:
space:
mode:
authorTom Yan <tom.ty89@gmail.com>2020-09-04 02:17:24 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-04 17:00:39 +0200
commit558033c2828f832ab3b68c6f8b8710e0de6faef0 (patch)
tree858ecb7ee111e4d93e5ffccac2dd61a5bdf2fe84 /include/linux/compiler_types.h
parent0154012f8018bba4d9971d1007c12ffd48539ddb (diff)
uas: fix sdev->host->dma_dev
Use scsi_add_host_with_dma() instead of scsi_add_host(). When the scsi request queue is initialized/allocated, hw_max_sectors is clamped to the dma max mapping size. Therefore, the correct device that should be used for the clamping needs to be set. The same clamping is still needed in uas as hw_max_sectors could be changed there. The original clamping would be invalidated in such cases. Signed-off-by: Tom Yan <tom.ty89@gmail.com> Reviewed-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20200903181725.2931-2-tom.ty89@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/compiler_types.h')
0 files changed, 0 insertions, 0 deletions