mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
swiotlb: remove unused SWIOTLB_FORCE flag
SWIOTLB_FORCE has no remaining in-tree users. Forced bouncing is now controlled through the swiotlb=force command line option via swiotlb_force_bounce. Remove the unused flag and simplify the force_bounce initialization. Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org> Link: https://lore.kernel.org/r/20260717180442.110954-24-aneesh.kumar@kernel.org Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
This commit is contained in:
committed by
Marek Szyprowski
parent
ad8d2326d2
commit
04a19b35dc
@@ -15,8 +15,7 @@ struct page;
|
||||
struct scatterlist;
|
||||
|
||||
#define SWIOTLB_VERBOSE (1 << 0) /* verbose initialization */
|
||||
#define SWIOTLB_FORCE (1 << 1) /* force bounce buffering */
|
||||
#define SWIOTLB_ANY (1 << 2) /* allow any memory for the buffer */
|
||||
#define SWIOTLB_ANY (1 << 1) /* allow any memory for the buffer */
|
||||
|
||||
/*
|
||||
* Maximum allowable number of contiguous slabs to map,
|
||||
|
||||
@@ -400,8 +400,7 @@ void __init swiotlb_init_remap(bool addressing_limit, unsigned int flags,
|
||||
if (swiotlb_force_disable)
|
||||
return;
|
||||
|
||||
io_tlb_default_mem.force_bounce =
|
||||
swiotlb_force_bounce || (flags & SWIOTLB_FORCE);
|
||||
io_tlb_default_mem.force_bounce = swiotlb_force_bounce;
|
||||
|
||||
#ifdef CONFIG_SWIOTLB_DYNAMIC
|
||||
if (!remap)
|
||||
|
||||
Reference in New Issue
Block a user