Skip to content

Commit 5879577

Browse files
committed
dmaengine: sdxi: Remove sdxi_dev->cxt_lock
Explicit locking may become necessary in the future, but at this point I see no need. Signed-off-by: Nathan Lynch <nathan.lynch@amd.com>
1 parent 3194067 commit 5879577

3 files changed

Lines changed: 0 additions & 8 deletions

File tree

drivers/dma/sdxi/device.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/dmapool.h>
1313
#include <linux/log2.h>
1414
#include <linux/module.h>
15-
#include <linux/mutex.h>
1615
#include <linux/pci.h>
1716
#include <linux/slab.h>
1817
#include <linux/xarray.h>
@@ -340,10 +339,6 @@ int sdxi_register(struct device *dev, const struct sdxi_bus_ops *ops)
340339
if (!sdxi)
341340
return -ENOMEM;
342341

343-
err = devm_mutex_init(dev, &sdxi->cxt_lock);
344-
if (err)
345-
return err;
346-
347342
sdxi->dev = dev;
348343
sdxi->bus_ops = ops;
349344
ida_init(&sdxi->vectors);

drivers/dma/sdxi/pci.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <linux/iomap.h>
1818
#include <linux/math64.h>
1919
#include <linux/module.h>
20-
#include <linux/mutex.h>
2120
#include <linux/pci-ats.h>
2221
#include <linux/pci.h>
2322

drivers/dma/sdxi/sdxi.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <linux/idr.h>
1717
#include <linux/io-64-nonatomic-lo-hi.h>
1818
#include <linux/module.h>
19-
#include <linux/mutex.h>
2019
#include <linux/types.h>
2120
#include <linux/xarray.h>
2221

@@ -116,7 +115,6 @@ struct sdxi_dev {
116115
u32 op_grp_cap; /* supported operatation group cap */
117116

118117
/* context management */
119-
struct mutex cxt_lock; /* context protection */
120118
struct sdxi_cxt_l2_table *L2_table;
121119
dma_addr_t L2_dma;
122120
struct sdxi_cxt_l1_table *L1_table;

0 commit comments

Comments
 (0)